/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: #e74c3c;
    --secondary-color: #2c3e50;
    --background-color: #f5f6fa;
    --text-color: #2c3e50;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    min-height: 100vh;
    background: var(--background-color);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 260px;
    background: var(--white);
    padding: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 1000;
}

.sidebar.close {
    width: 65px;
}

.logo_items {
    gap: 8px;
}

.logo_name {
    font-size: 22px;
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition);
}

.sidebar.close .logo_name,
.sidebar.close #lock-icon {
    opacity: 0;
    pointer-events: none;
}

#lock-icon, #sidebar-close {
    padding: 10px;
    color: var(--text-color);
    font-size: 25px;
    cursor: pointer;
    transition: var(--transition);
}

#lock-icon:hover, #sidebar-close:hover {
    color: var(--primary-color);
}

.menu_container {
    margin-top: 25px;
    height: calc(100% - 140px);
    overflow: auto;
    scrollbar-width: none;
}

.menu_container::-webkit-scrollbar {
    display: none;
}

.menu_title {
    position: relative;
    height: 50px;
    width: 55px;
}

.menu_title .title {
    margin-left: 15px;
    transition: var(--transition);
}

.sidebar.close .title {
    opacity: 0;
}

.menu_title .line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 20px;
    border-radius: 25px;
    background: var(--primary-color);
    transition: var(--transition);
}

.menu_title .line {
    opacity: 0;
}

.sidebar.close .line {
    opacity: 1;
}

.item {
    list-style: none;
}

.link {
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.link:hover {
    background: var(--primary-color);
    color: var(--white);
}

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

.link span {
    white-space: nowrap;
}

.sidebar.close .link span {
    opacity: 0;
}

/* Main Content Styles */
.content-area {
    margin-left: 260px;
    padding: 30px;
    transition: var(--transition);
}

.sidebar.close ~ .content-area {
    margin-left: 65px;
}

.flex {
    display: flex;
    align-items: center;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.content-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.content-card:hover {
    transform: translateY(-5px);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(231, 76, 60, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    transition: var(--transition);
    padding: 20px;
    text-align: center;
}

.content-card:hover .card-overlay {
    bottom: 0;
}

.card-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Quick Links */
.quick-links {
    margin-top: 50px;
    padding: 30px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.quick-links h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--background-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.quick-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.quick-link i {
    font-size: 1.5rem;
}

/* Scroll Indicator */
.scroll-indicator {
    text-align: center;
    margin-top: 30px;
    color: var(--text-light);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Featured Sections */
.featured-section {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.section-content {
    padding: 40px;
}

.section-content h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 2rem;
}

.section-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.section-content ul {
    list-style: none;
    margin-bottom: 25px;
}

.section-content ul li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--text-color);
}

.section-content ul li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.section-link {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
}

.section-link:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.section-image {
    position: relative;
    min-height: 300px;
    overflow: hidden;
}

.section-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.section-image:hover img {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .featured-section {
        grid-template-columns: 1fr;
    }

    .section-image {
        min-height: 250px;
    }

    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .content-area {
        margin-left: 0;
        padding: 20px;
    }

    .sidebar.close ~ .content-area {
        margin-left: 0;
    }

    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

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

.content-section {
    animation: fadeIn 0.5s ease-out;
}

/* Nav Image */
.nav_image {
    min-width: 45px;
    display: flex;
    justify-content: center;
}

.nav_image img {
    width: 45px;
    border-radius: 50%;
    object-fit: cover;
}

/* Import Google font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

/* Add custom font */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    min-height: 100vh;
    background: var(--body-bg);
    color: var(--text-color);
    transition: var(--transition);
}

/* Pre CSS */
.flex {
    display: flex;
    align-items: center;
}

.nav_image {
    display: flex;
    min-width: 55px;
    justify-content: center;
}

.nav_image img {
    height: 35px;
    width: 35px;
    border-radius: 50%;
    object-fit: cover;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 270px;
    background: var(--sidebar-bg);
    padding: 15px 10px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.sidebar.close {
    width: 60px;
}

.menu_content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 15px;
}

.menu_items {
    padding-left: 0;
}

.item {
    list-style: none;
    margin-bottom: 8px;
}

.item a {
    display: flex;
    align-items: center;
    padding: 14px 12px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-color);
    white-space: nowrap;
}

.item a:hover {
    background-color: var(--hover-bg);
    color: var(--text-color);
}

.item a i {
    font-size: 20px;
    margin-right: 15px;
}

.item a span {
    transition: opacity 0.3s ease;
}

.sidebar.close .item a span {
    opacity: 0;
    pointer-events: none;
}

.item a.active {
    background-color: var(--primary-color);
    color: white;
}

.bottom_content {
    margin-top: auto;
}

.bottom {
    position: relative;
    display: flex;
    align-items: center;
    padding: 14px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-color);
}

.bottom:hover {
    background-color: var(--hover-bg);
    color: var(--text-color);
}

.bottom span {
    transition: opacity 0.3s ease;
}

.sidebar.close .bottom span {
    opacity: 0;
    pointer-events: none;
}

.bottom i {
    font-size: 20px;
    margin-right: 15px;
}

.collapse_sidebar {
    display: none;
}

.sidebar.close .expand_sidebar {
    display: none;
}

.sidebar.close .collapse_sidebar {
    display: flex;
}

.logo_items {
    gap: 8px;
}

.logo_name {
    font-size: 17px;
    color: var(--text-color);
    font-weight: 500px;
    transition: all 0.3s ease;
}

.sidebar.close .logo_name,
.sidebar.close #lock-icon,
.sidebar.close #sidebar-close {
    opacity: 0;
    pointer-events: none;
}

#lock-icon,
#sidebar-close {
    padding: 10px;
    color: var(--primary-color);
    font-size: 25px;
    cursor: pointer;
    margin-left: -4px;
    transition: all 0.3s ease;
}

#sidebar-close {
    display: none;
    color: var(--text-color);
}

.menu_container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 20px;
    overflow-y: auto;
    height: calc(100% - 82px);
}

.menu_container::-webkit-scrollbar {
    display: none;
}

.menu_title {
    position: relative;
    height: 50px;
    width: 55px;
}

.menu_title .title {
    margin-left: 15px;
    transition: all 0.3s ease;
}

.sidebar.close .title {
    opacity: 0;
}

.menu_title .line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 20px;
    border-radius: 25px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.menu_title .line {
    opacity: 0;
}

.sidebar.close .line {
    opacity: 1;
}

.sidebar_profile {
    padding-top: 15px;
    margin-top: 15px;
    gap: 15px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.sidebar_profile .name {
    font-size: 18px;
    color: var(--text-color);
}

.sidebar_profile .email {
    font-size: 15px;
    color: var(--text-color);
}

/* Content Area Styles */
.content-area {
    position: absolute;
    top: 0;
    left: 270px;
    right: 0;
    min-height: 100vh;
    background: var(--body-bg);
    padding: 20px;
    transition: left 0.4s ease;
}

.sidebar.close ~ .content-area {
    left: 60px;
}

.nav {
    padding: 15px 20px;
    border-bottom: 1px solid #e2e2e2;
}

.content-section {
    padding: 20px;
    animation: fadeIn 0.5s ease forwards;
}

.content-section h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 2rem;
    text-align: center;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
}

.content-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    transform: translateY(30px);
    opacity: 0;
    animation: slideUp 0.5s ease forwards;
    height: 250px;
}

.content-card:nth-child(1) { animation-delay: 0.1s; }
.content-card:nth-child(2) { animation-delay: 0.2s; }
.content-card:nth-child(3) { animation-delay: 0.3s; }
.content-card:nth-child(4) { animation-delay: 0.4s; }
.content-card:nth-child(5) { animation-delay: 0.5s; }
.content-card:nth-child(6) { animation-delay: 0.6s; }

.card-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.content-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.card-overlay h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.card-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.modal-content {
    position: relative;
    background: var(--card-bg);
    width: 90%;
    max-width: 1000px;
    margin: 50px auto;
    border-radius: 15px;
    overflow: hidden;
    transform: translateY(-50px);
    opacity: 0;
    animation: modalSlideIn 0.5s ease forwards;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 2rem;
}

.modal-body {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.modal-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.info-section {
    margin-bottom: 30px;
}

.info-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-section h3 i {
    font-size: 1.5rem;
}

.ingredients {
    list-style: none;
    padding: 0;
}

.ingredients li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.ingredients li:last-child {
    border-bottom: none;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Section Animations */
.content-section {
    opacity: 0;
    animation: none;
}

.content-section[style*="display: block"] {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Grid Layout */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    animation: fadeInUp 0.5s ease 0.2s forwards;
}

.content-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 30px 0;
    animation: fadeInDown 0.5s ease forwards;
}

.content-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    transform: translateY(30px);
    opacity: 0;
    animation: slideUp 0.5s ease forwards;
}

.content-card:nth-child(1) { animation-delay: 0.1s; }
.content-card:nth-child(2) { animation-delay: 0.2s; }
.content-card:nth-child(3) { animation-delay: 0.3s; }
.content-card:nth-child(4) { animation-delay: 0.4s; }
.content-card:nth-child(5) { animation-delay: 0.5s; }
.content-card:nth-child(6) { animation-delay: 0.6s; }

.card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.content-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.card-overlay h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.card-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Welcome Section */
.welcome-section {
    display: none;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px;
}

.welcome-section.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s ease;
}

.welcome-content {
    text-align: center;
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-content h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    animation: fadeInDown 1s ease;
}

.welcome-text {
    margin-bottom: 50px;
    animation: fadeIn 1s ease 0.3s both;
}

.welcome-text p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    margin: 10px 0;
}

.welcome-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    animation: fadeInUp 1s ease 0.6s both;
}

.welcome-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.welcome-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.welcome-card:hover img {
    transform: scale(1.1);
}

.welcome-card h3 {
    padding: 20px;
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    background: linear-gradient(to right, var(--card-bg), var(--card-bg));
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Content Cards */
.content-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    text-align: center;
    padding: 20px;
}

.content-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay h3 {
    transform: translateY(20px);
    transition: all 0.3s ease;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.card-overlay p {
    transform: translateY(20px);
    transition: transform 0.3s ease;
    margin: 10px 0 0;
    font-size: 16px;
    opacity: 0.9;
}

.content-card:hover .card-overlay h3,
.content-card:hover .card-overlay p {
    transform: translateY(0);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background: var(--card-bg);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 20px 40px;
    color: white;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.modal-body {
    padding: 30px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
    display: flex;
    gap: 30px;
}

.modal-image {
    flex: 0 0 45%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modal-image:hover img {
    transform: scale(1.05);
}

.modal-info {
    flex: 1;
}

.info-section {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.info-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.info-section h3 i {
    font-size: 24px;
}

.info-section p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

.ingredients {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.ingredients li {
    padding: 8px 15px;
    background: var(--card-bg);
    border-radius: 20px;
    color: var(--text-color);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.ingredients li::before {
    content: '•';
    color: var(--primary-color);
    font-size: 20px;
}

@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
    }
    
    .modal-image {
        flex: 0 0 200px;
    }
    
    .ingredients {
        grid-template-columns: 1fr;
    }
}

/* Card hover effects */
.card-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    text-align: center;
    padding: 20px;
}

.card-image:hover .card-overlay {
    opacity: 1;
}

.card-overlay h3 {
    transform: translateY(20px);
    transition: all 0.3s ease;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.card-overlay p {
    transform: translateY(20px);
    transition: transform 0.3s ease;
    margin: 10px 0 0;
    font-size: 16px;
    opacity: 0.9;
}

.card-image:hover .card-overlay h3,
.card-image:hover .card-overlay p {
    transform: translateY(0);
}

/* Animations */
@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Adjust sidebar close state */
.sidebar.close + .content-area {
    left: 95px;
}

/* Responsive adjustments */
@media screen and (max-width: 800px) {
    .content-area {
        left: 0;
        padding: 15px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media screen and (max-width: 1100px) {
    .navbar {
        left: 65%;
    }
}

@media screen and (max-width: 800px) {
    .sidebar {
        left: 0;
        z-index: 1000;
    }

    .sidebar.close {
        left: -100%;
    }

    #sidebar-close {
        display: block;
    }

    #lock-icon {
        display: none;
    }

    #sidebar-open {
        display: block;
    }
}

/* Welcome Container Styles */
.welcome-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    color: var(--text-color);
}

/* Main Title Section */
.main-title {
    text-align: center;
    margin-bottom: 4rem;
}

.main-title h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.title-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
}

.title-separator .line {
    height: 2px;
    width: 100px;
    background: var(--primary-color);
    opacity: 0.5;
}

.title-separator i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Introduction Cards */
.intro-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 4rem 0;
}

.intro-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.intro-card:hover {
    transform: translateY(-10px);
}

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

.card-icon i {
    font-size: 2.5rem;
    color: white;
}

.intro-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.intro-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link:hover {
    text-decoration: underline;
}

/* Featured Sections */
.featured-sections {
    margin: 6rem 0;
}

.featured-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: center;
}

.featured-section:nth-child(even) {
    direction: rtl;
}

.featured-section:nth-child(even) .section-content {
    direction: ltr;
}

.section-content {
    padding: 2rem;
}

.section-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.section-content p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-list li i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.section-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.section-link:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.dark .section-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.section-content ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.section-content ul li {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
    color: var(--text-color);
    font-size: 1rem;
}

.section-content ul li i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

body.dark .section-content ul li {
    color: var(--text-light);
}

.section-image {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.section-image:hover img {
    transform: scale(1.05);
}

/* Quick Links */
.quick-links {
    text-align: center;
    margin: 4rem 0;
}

.quick-links h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.quick-link i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.quick-link span {
    color: var(--text-color);
    font-weight: 600;
}

/* Scroll Indicator */
.scroll-indicator {
    text-align: center;
    margin-top: 4rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-title h1 {
        font-size: 3rem;
    }
    
    .featured-section {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .intro-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .featured-section:nth-child(even) {
        direction: ltr;
    }
    
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-title h1 {
        font-size: 2.5rem;
    }
    
    .intro-cards {
        grid-template-columns: 1fr;
    }
    
    .section-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .main-title h1 {
        font-size: 2rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .section-content {
        padding: 1rem;
    }
}

/* Custom Variables */
:root {
    /* Light Theme Colors */
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-rgb: 76, 175, 80;
    --text-color: #333;
    --text-light: #f1f1f1;
    --body-bg: #f4f4f4;
    --card-bg: #fff;
    --sidebar-bg: #fff;
    --hover-bg: #f0f0f0;
    
    /* Dark Theme Colors */
    --dark-primary: #1a1a1a;
    --dark-secondary: #2d2d2d;
    --dark-hover: #3d3d3d;
    --dark-text: #f1f1f1;
    --dark-muted: #a0a0a0;
    --dark-border: #404040;
    --dark-card: #2d2d2d;
    
    /* Common */
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Dark mode adjustments */
body.dark {
    --body-bg: var(--dark-primary);
    --text-color: var(--dark-text);
    --card-bg: var(--dark-card);
    --sidebar-bg: var(--dark-secondary);
    --hover-bg: var(--dark-hover);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

body.dark .sidebar {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--dark-border);
}

body.dark .nav_items a {
    color: var(--text-color);
}

body.dark .nav_items a:hover {
    background: var(--hover-bg);
}

body.dark .nav_items a.active {
    background: var(--primary-color);
    color: white;
}

body.dark .intro-card {
    background: var(--dark-secondary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

body.dark .card-icon {
    background: var(--dark-hover);
    color: var(--primary-color);
}

body.dark .section-content {
    background: var(--dark-secondary);
}

body.dark .section-image img {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

body.dark input,
body.dark textarea,
body.dark select {
    background: var(--dark-secondary);
    color: var(--text-light);
    border-color: var(--dark-hover);
}

body.dark .button {
    background: var(--primary-color);
    color: white;
}

body.dark .button:hover {
    background: var(--primary-dark);
}

/* Story Page Dark Mode Styles */
body.dark .story-container {
    background-color: var(--dark-primary);
}

body.dark .story-container .card,
body.dark .story-timeline .timeline-item {
    background: var(--dark-card);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--dark-border);
}

body.dark .story-container h1,
body.dark .story-container h2,
body.dark .story-container h3,
body.dark .story-container h4,
body.dark .story-container h5,
body.dark .story-container h6 {
    color: var(--dark-text);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.dark .story-container p,
body.dark .story-container span,
body.dark .story-container li {
    color: var(--dark-muted);
}

body.dark .story-container .card:hover,
body.dark .story-timeline .timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Story Timeline Dark Mode */
body.dark .story-timeline::before {
    background-color: var(--dark-border);
}

body.dark .story-timeline .timeline-dot {
    background: var(--primary-color);
    border: 4px solid var(--dark-secondary);
}

body.dark .story-timeline .timeline-content {
    background: var(--dark-card);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.dark .story-timeline .timeline-content h3 {
    color: var(--dark-text);
}

body.dark .story-timeline .timeline-content p {
    color: var(--dark-muted);
}

/* Story Cards Specific Styles */
body.dark .story-card {
    background: var(--dark-card);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.dark .story-card h2,
body.dark .story-card h3 {
    color: var(--dark-text);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.dark .story-card p {
    color: var(--dark-muted);
}

body.dark .story-card .read-more {
    color: var(--primary-color);
}

/* Story Tabs Dark Mode */
body.dark .story-tabs {
    background: var(--dark-secondary);
    border: 1px solid var(--dark-border);
}

body.dark .story-tab {
    color: var(--dark-text);
    background: var(--dark-secondary);
    border: 1px solid var(--dark-border);
}

body.dark .story-tab.active {
    background: var(--primary-color);
    color: white;
}

body.dark .story-tab:hover:not(.active) {
    background: var(--dark-hover);
}

/* Story Sections Dark Mode */
body.dark .story-section {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
}

body.dark .story-section h2 {
    color: var(--dark-text);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

body.dark .story-section p {
    color: var(--dark-muted);
    line-height: 1.6;
}

/* Story Grid Dark Mode */
body.dark .story-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Story Images Dark Mode */
body.dark .story-image {
    border: 1px solid var(--dark-border);
    border-radius: 10px;
    overflow: hidden;
}

body.dark .story-image img {
    filter: brightness(0.9) contrast(1.1);
}

/* Story Lists Dark Mode */
body.dark .story-list {
    list-style: none;
    padding: 0;
}

body.dark .story-list li {
    border-bottom: 1px solid var(--dark-border);
}

body.dark .story-list li:last-child {
    border-bottom: none;
}

/* Story Buttons Dark Mode */
body.dark .story-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.dark .story-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Story Modal Dark Mode */
body.dark .story-modal {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
}

body.dark .story-modal-header {
    border-bottom: 1px solid var(--dark-border);
}

body.dark .story-modal-title {
    color: var(--dark-text);
}

body.dark .story-modal-content {
    color: var(--dark-muted);
}

/* Ensure all story elements transition smoothly */
.story-container *,
.story-timeline *,
.story-card *,
.story-section * {
    transition: all 0.3s ease;
}

/* Player Cards Dark Mode */
body.dark .player-card {
    background: var(--dark-card);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.dark .player-info h3,
body.dark .player-info h4 {
    color: var(--dark-text);
}

body.dark .player-info p {
    color: var(--dark-muted);
}

body.dark .player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Language Cards Dark Mode */
body.dark .language-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.dark .language-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Language Card Content */
body.dark .language-card h3,
body.dark .language-title,
body.dark .language-header h2 {
    color: var(--dark-text);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.dark .language-card p,
body.dark .language-description,
body.dark .language-content p {
    color: var(--dark-muted);
}

/* Language Grid */
body.dark .language-grid {
    background: transparent;
}

/* Language Sections */
body.dark .language-section {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
}

/* Language Lists */
body.dark .language-list {
    color: var(--dark-text);
}

body.dark .language-list li {
    border-bottom: 1px solid var(--dark-border);
}

body.dark .language-list li:last-child {
    border-bottom: none;
}

/* Language Examples */
body.dark .language-example {
    background: var(--dark-secondary);
    border: 1px solid var(--dark-border);
    padding: 1rem;
    border-radius: 8px;
}

body.dark .language-example h4 {
    color: var(--dark-text);
}

body.dark .language-example p {
    color: var(--dark-muted);
}

/* Language Tables */
body.dark .language-table {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
}

body.dark .language-table th {
    background: var(--dark-secondary);
    color: var(--dark-text);
    border-bottom: 2px solid var(--dark-border);
}

body.dark .language-table td {
    color: var(--dark-muted);
    border-bottom: 1px solid var(--dark-border);
}

/* Language Buttons */
body.dark .language-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.dark .language-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Language Info Boxes */
body.dark .language-info-box {
    background: var(--dark-secondary);
    border: 1px solid var(--dark-border);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
}

body.dark .language-info-box h4 {
    color: var(--dark-text);
}

body.dark .language-info-box p {
    color: var(--dark-muted);
}

/* Language Navigation */
body.dark .language-nav {
    background: var(--dark-secondary);
    border-bottom: 1px solid var(--dark-border);
}

body.dark .language-nav-item {
    color: var(--dark-text);
}

body.dark .language-nav-item:hover,
body.dark .language-nav-item.active {
    color: var(--primary-color);
    background: var(--dark-hover);
}

/* Language Images */
body.dark .language-image {
    border: 1px solid var(--dark-border);
    border-radius: 10px;
    overflow: hidden;
}

body.dark .language-image img {
    filter: brightness(0.9) contrast(1.1);
}

/* Ensure smooth transitions */
.language-container *,
.language-card *,
.language-section * {
    transition: all 0.3s ease;
}

/* Language Cards and Phrases Dark Mode Fix */
body.dark .language-card,
body.dark .phrase-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Fix text visibility in cards */
body.dark .language-card h3,
body.dark .language-card h4,
body.dark .phrase-card h3,
body.dark .phrase-card h4 {
    color: var(--dark-text);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.dark .language-card p,
body.dark .phrase-card p,
body.dark .language-card span,
body.dark .phrase-card span {
    color: var(--dark-muted);
}

/* Fix navigation pills/tabs */
body.dark .nav-pills .nav-link {
    color: var(--dark-text);
    background: var(--dark-secondary);
    border: 1px solid var(--dark-border);
}

body.dark .nav-pills .nav-link:hover {
    background: var(--dark-hover);
}

body.dark .nav-pills .nav-link.active {
    background: var(--primary-color);
    color: white;
}

/* Fix phrases section */
body.dark .phrases-section {
    background: var(--dark-primary);
}

body.dark .phrase-grid {
    background: transparent;
}

/* Fix individual phrase items */
body.dark .phrase-item {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    padding: 1rem;
    border-radius: 8px;
}

body.dark .phrase-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

body.dark .phrase-item h4 {
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

body.dark .phrase-item .amazigh-text {
    color: var(--primary-color);
    font-weight: 600;
}

body.dark .phrase-item .translation {
    color: var(--dark-muted);
    font-style: italic;
}

/* Fix pronunciation text */
body.dark .pronunciation {
    color: var(--dark-text);
    opacity: 0.8;
    font-size: 0.9em;
}

/* Ensure proper spacing and transitions */
.language-card,
.phrase-card,
.phrase-item {
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

/* Fix category headers */
body.dark .category-header {
    color: var(--dark-text);
    border-bottom: 2px solid var(--dark-border);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
}

/* Theme Switcher Styles */
.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-button {
    width: 80px;
    height: 40px;
    background: linear-gradient(145deg, #e1e1e1, #fff);
    border: none;
    padding: 5px;
    border-radius: 30px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

body.dark .theme-button {
    background: linear-gradient(145deg, #2c2c2c, #363636);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.theme-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.theme-ball {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body.dark .theme-ball {
    transform: translateX(40px);
}

.light-icon,
.dark-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    transition: all 0.3s ease;
}

.light-icon {
    left: 10px;
    color: #ffd43b;
    opacity: 1;
}

.dark-icon {
    right: 10px;
    color: #6c757d;
    opacity: 0.3;
}

body.dark .light-icon {
    opacity: 0.3;
}

body.dark .dark-icon {
    opacity: 1;
    color: #f1f1f1;
}

/* Fullscreen and Animation Improvements */
html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Enhanced Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Apply animations to elements */
.page-transition {
    animation: fadeIn 0.5s ease-out;
}

.actor-card, .content-card {
    animation: scaleIn 0.5s ease-out;
}

.sidebar.show {
    animation: slideIn 0.3s ease-out;
}

/* Mobile Fullscreen Improvements */
@media screen and (max-width: 768px) {
    body {
        position: fixed;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .main-container {
        height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .actors-grid, .content-section {
        padding: 1rem;
        height: auto;
        min-height: 100%;
    }

    .actor-card, .content-card {
        width: 100%;
        margin-bottom: 1rem;
        transform: none;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .actor-card:active, .content-card:active {
        transform: scale(0.98);
    }

    .modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2000;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
        background: #fff;
        border-radius: 15px;
        padding: 1.5rem;
        position: relative;
        animation: scaleIn 0.3s ease-out;
    }

    .close-button {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        font-size: 24px;
        color: #fff;
        cursor: pointer;
        z-index: 2001;
    }

    /* Grid Improvements */
    .grid-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
        padding: 1rem;
        width: 100%;
    }

    /* Image Optimizations */
    .actor-image, .content-image {
        width: 100%;
        height: auto;
        position: relative;
        overflow: hidden;
    }

    .actor-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        transition: transform 0.3s ease;
    }

    /* Text Improvements */
    .actor-content, .content-text {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.95);
    }

    h1, h2, h3 {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 0.5rem;
    }

    p {
        font-size: clamp(0.9rem, 4vw, 1rem);
        line-height: 1.5;
    }

    /* Navigation Improvements */
    .nav_link {
        padding: 12px 15px;
        margin: 5px 0;
        border-radius: 10px;
    }

    .nav_link:active {
        background: rgba(0, 0, 0, 0.1);
    }

    /* Smooth Scrolling */
    * {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
}

/* Landscape Mode Optimizations */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .actor-image, .content-image {
        height: 150px;
    }

    .modal-content {
        width: 90%;
        height: 85vh;
    }
}

/* Desktop version on mobile improvements */
@media screen and (max-width: 768px) and (min-resolution: 192dpi) {
    body {
        -webkit-text-size-adjust: 100%;
        touch-action: manipulation;
    }

    .sidebar {
        position: fixed;
        width: 270px;
        height: 100%;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-container {
        height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .actors-grid, .content-section {
        padding: 1rem;
        height: auto;
        min-height: 100%;
    }

    .actor-card, .content-card {
        width: 100%;
        margin-bottom: 1rem;
        transform: none;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .actor-card:active, .content-card:active {
        transform: scale(0.98);
    }

    .modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2000;
    }

    .modal-content {
        width: 90%;
        max-height: 90vh;
        overflow-y: auto;
        background: #fff;
        border-radius: 15px;
        padding: 1.5rem;
        position: relative;
        animation: scaleIn 0.3s ease-out;
    }

    .close-button {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        font-size: 24px;
        color: #fff;
        cursor: pointer;
        z-index: 2001;
    }

    /* Grid Improvements */
    .grid-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        padding: 0.5rem;
        width: 100%;
    }

    /* Image Optimizations */
    .actor-image, .content-image {
        width: 100%;
        height: 250px;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    /* Text Improvements */
    .actor-content, .content-text {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.95);
    }

    h1, h2, h3 {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 0.5rem;
    }

    p {
        font-size: clamp(0.9rem, 4vw, 1rem);
        line-height: 1.5;
    }

    /* Navigation Improvements */
    .nav_link {
        padding: 12px 15px;
        margin: 5px 0;
        border-radius: 10px;
    }

    .nav_link:active {
        background: rgba(0, 0, 0, 0.1);
    }

    /* Smooth Scrolling */
    * {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
}

/* High resolution displays */
@media screen and (min-resolution: 192dpi) {
    .actor-image img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Landscape mode adjustments */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .actors-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .modal-content {
        max-height: 90vh;
    }

    .actor-image {
        height: 200px;
    }
}

/* Actors Grid Styles */
.actors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.actor-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    height: auto;
    max-width: 100%;
}

.actor-image {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
}

.actor-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.actor-info {
    padding: 1.5rem;
    text-align: center;
}

.info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.key-facts {
    background: rgba(52, 152, 219, 0.1);
    border-left: 4px solid #3498db;
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

.key-facts h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.key-facts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-facts li {
    margin: 0.5rem 0;
    color: #34495e;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.key-facts li:before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    margin-right: 0.5rem;
}

.language-section {
    margin: 3rem 0;
    padding: 0 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin: 2rem 0;
    position: relative;
    padding-bottom: 1rem;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    border-radius: 2px;
}

.dictionary-category {
    margin: 2rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.category-header {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.dictionary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.dictionary-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid #e0e0e0;
}

.dictionary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dictionary-card .arabic {
    font-size: 1.4rem;
    color: #2c3e50;
    text-align: right;
    font-family: 'Traditional Arabic', 'Arial', sans-serif;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.dictionary-card .amazigh-text {
    font-size: 1.3rem;
    color: #3498db;
    text-align: center;
    margin: 0.5rem 0;
}

.dictionary-card .latin-text {
    font-size: 1.1rem;
    color: #7f8c8d;
    text-align: center;
    font-style: italic;
}

@media (max-width: 768px) {
    .dictionary-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .dictionary-card .arabic {
        font-size: 1.2rem;
    }
    
    .dictionary-card .amazigh-text {
        font-size: 1.1rem;
    }
    
    .dictionary-card .latin-text {
        font-size: 1rem;
    }
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 2rem;
    background: linear-gradient(45deg, var(--primary-color-light) 0%, var(--primary-color) 100%);
    border-radius: 20px;
    margin: 2rem;
    overflow: hidden;
    position: relative;
}

.hero-content {
    flex: 1;
    padding-right: 3rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.primary-btn, .secondary-btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.primary-btn {
    background: var(--accent-color);
    color: #fff;
    border: none;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

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

/* Featured Categories */
.featured-categories {
    padding: 4rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Playfair Display', serif;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--accent-color);
    margin: 1rem auto;
}

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

.category-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}

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

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.card-content p {
    color: var(--text-color-light);
    line-height: 1.6;
}

/* Cultural Highlights */
.cultural-highlights {
    display: flex;
    gap: 4rem;
    padding: 4rem 2rem;
    background: var(--secondary-bg);
    border-radius: 20px;
    margin: 2rem;
}

.highlight-content {
    flex: 1;
}

.highlight-content h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.highlight-content p {
    color: var(--text-color-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.highlight-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feature p {
    color: var(--text-color-light);
    font-size: 0.9rem;
}

.highlight-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-main {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Dark Mode Styles */
body.dark .category-card {
    background: var(--dark-card-bg);
}

body.dark .feature {
    background: var(--dark-card-bg);
}

body.dark .card-content h3,
body.dark .card-content p,
body.dark .feature h3,
body.dark .feature p {
    color: var(--dark-text);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 3rem 1rem;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .cultural-highlights {
        flex-direction: column;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .highlight-features {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-section {
        margin: 1rem;
    }

    .cultural-highlights {
        margin: 1rem;
    }
}