:root {
    --primary-color: #d4af37;
    --secondary-color: #007a5e;
    --accent-color: #c53030;
    --background: #f5f0e1;
    --text-color: #2c2723;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--background);
    color: var(--text-color);
    line-height: 1.8;
}

/* الصفحة الرئيسية */
.main-page {
    background: linear-gradient(rgba(245, 240, 225, 0.9), rgba(245, 240, 225, 0.9)), 
                url('https://images.unsplash.com/photo-1562832135-14a35d25edef?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.top-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.dev-info-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.dev-info-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.logo {
    width: 200px;
    height: 200px;
    margin: 40px auto;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: block;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.main-btn, .about-btn {
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.4em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.main-btn {
    background: linear-gradient(45deg, var(--primary-color), #b8860b);
    color: white;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.about-btn {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 8px 25px rgba(0,122,94,0.4);
}

.main-btn:hover, .about-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

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

.modal-content {
    background: white;
    margin: 50px auto;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

.close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 30px;
    cursor: pointer;
    color: var(--accent-color);
}

.modal h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8em;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-body ul {
    list-style-type: none;
    padding: 0;
}

.modal-body li {
    margin: 10px 0;
    padding-right: 20px;
    position: relative;
}

.modal-body li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    right: 0;
}

/* Developer Info Styles */
.dev-info {
    text-align: center;
}

.dev-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid var(--primary-color);
}

.dev-title {
    color: var(--secondary-color);
    margin: 10px 0;
}

.dev-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.skill-tag {
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

.dev-description {
    text-align: justify;
    line-height: 1.6;
}

/* تنسيق الهيروغليفية */
.hieroglyph-header {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hieroglyph {
    font-size: 2.5em;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.hieroglyph:hover {
    transform: scale(1.2);
}

/* صفحة المواقع */
.locations-page {
    padding: 20px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.location-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.location-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 4px solid var(--primary-color);
}

.location-info {
    padding: 20px;
}

.location-info h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.4em;
}

/* صفحة التفاصيل */
.detail-page header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.back-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary-color);
}

.back-btn .material-icons {
    font-size: 30px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
}

.gallery-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background: white;
}

.gallery-slider {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease;
}

.gallery-slider img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    flex-shrink: 0;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-btn:hover {
    background: var(--primary-color);
}

.nav-btn .material-icons {
    font-size: 24px;
}

.prev { right: 20px; }
.next { left: 20px; }

.gallery-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

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

.content-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* تنسيق القوائم المنسدلة */
.accordion {
    margin-top: 20px;
}

.accordion-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background: rgba(212, 175, 55, 0.1);
}

.accordion-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
    font-size: 1.2em;
    margin: 0;
}

.accordion-header .material-icons {
    color: var(--primary-color);
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 20px;
}

/* تحسينات البحث */
.search-container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    padding: 0 20px;
}

.search-box {
    position: relative;
    margin-bottom: 15px;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-size: 1.1em;
    background: white;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* تنسيق أزرار التصفية */
.search-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.filter-btn {
    font-family: 'Cairo', sans-serif;
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    background: white;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

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

.filter-btn.active {
    background: var(--primary-color);
    color: white;
}
.button {
    display: inline-block;
    padding: 5px 10px;
    margin: 5px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    border-radius: 3px;
}
.facebook {
    background-color: #3b5998;
}
.whatsapp {
    background-color: #25D366;
}

.whatsapp-link {
    display: inline-block;
    padding: 10px 15px;
    font-size: 18px;
    color: white;
    background-color: #25D366;
    text-decoration: none;
    border-radius: 5px;
}

/* التنسيق للجوال */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .gallery-slider img {
        height: 300px;
    }
    
    .main-btn, .about-btn {
        font-size: 1.2em;
        padding: 15px 30px;
    }

    .hieroglyph {
        font-size: 2em;
    }

    .modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 20px;
    }

    .dev-photo {
        width: 120px;
        height: 120px;
    }

    .search-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 6px 15px;
        font-size: 0.85em;
    }
}
