:root {
    --main-color: #2c3e50;
    --accent-color: #e74c3c;
    --bg-color: #f4f7f6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: var(--bg-color);
}

nav {
    background: var(--main-color);
    color: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul { display: flex; list-style: none; gap: 20px; }
nav ul li a { color: white; text-decoration: none; cursor: pointer; }

.content-section { display: none; padding: 50px 5%; }
.content-section.active { display: block; }

.hero { text-align: center; padding: 50px 0; }
.profiles-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.profile-card {
    text-align: center;
    max-width: 400px;
}

.profile-img-container { width: 280px; height: 280px; border-radius: 50%; overflow: hidden; display: inline-block; margin-bottom: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); border: 8px solid white; outline: 4px solid var(--accent-color); }
.profile-img { width: 100%; height: 100%; object-fit: cover; object-position: center 10%; transition: none; }
.profile-img:hover { transform: none; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.card:hover { transform: translateY(-5px); }
.card img { width: 100%; height: 150px; object-fit: cover; }
.card h3 { padding: 10px; font-size: 1rem; }
.card a { display: block; padding: 10px; background: var(--accent-color); color: white; text-align: center; text-decoration: none; }

.sub-categories { 
    margin-bottom: 30px; 
    display: flex; 
    gap: 12px; 
    flex-wrap: wrap; 
    justify-content: center;
}

.sub-categories button { 
    padding: 12px 24px; 
    cursor: pointer; 
    border: none; 
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); 
    color: white; 
    border-radius: 8px; 
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    line-height: 1.4;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.sub-categories button:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-color: rgba(255,255,255,0.2);
}

.sub-categories button:active {
    transform: translateY(-1px);
}

/* تذييل الصفحة */
footer {
    background: var(--main-color);
    color: white;
    text-align: center;
    padding: 30px 5%;
    margin-top: 50px;
    border-top: 5px solid var(--accent-color);
}

.footer-content p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.visitor-counter {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 25px;
    border-radius: 50px;
    display: inline-block;
    font-size: 1.2rem;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.visitor-counter #count {
    color: var(--accent-color);
    margin-right: 10px;
}

/* Responsive Design for Mobile Devices */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 0;
        margin-top: 15px;
    }

    .profile-img-container {
        width: 200px;
        height: 200px;
        border-width: 5px;
        outline-width: 3px;
    }

    .content-section {
        padding: 30px 15px;
    }

    .sub-categories button {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
}

/* Photo Animation */
@keyframes moveLeftRight {
    0% { transform: translateX(0); }
    25% { transform: translateX(40vw); }
    75% { transform: translateX(-40vw); }
    100% { transform: translateX(0); }
}

@keyframes moveRightLeft {
    0% { transform: translateX(0); }
    25% { transform: translateX(-40vw); }
    75% { transform: translateX(40vw); }
    100% { transform: translateX(0); }
}

.animated-photo {
    animation: moveLeftRight 10s ease-in-out infinite;
    position: relative;
    z-index: 10;
}

.animated-photo-reverse {
    animation: moveRightLeft 10s ease-in-out infinite;
    position: relative;
    z-index: 10;
}

