/* --- بداية الكود --- */
:root {
    --brown-bg: #D2B48C;
    --dark-brown: #4A2C2A;
    --medium-brown: #8B4513;
    --light-cream: #F5F5DC;
    --gold: #C5B358;
}

/* --- باقي الأكواد --- */

.hero-section h1 {
    font-size: 3em;
    margin-bottom: 5px;
}

/* New Style for the Nickname */
.nickname {
    font-size: 1.4em;
    color: var(--medium-brown);
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.hero-section .job-title {
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 30px;
}

/* --- باقي الأكواد تبقى كما هي --- */
/* --- يمكنك نسخ هذا الكود كاملاً ولصقه في ملف style.css لديك --- */
/* (الكود الكامل للملف أدناه للتأكيد) */
:root {
    --brown-bg: #D2B48C;
    --dark-brown: #4A2C2A;
    --medium-brown: #8B4513;
    --light-cream: #F5F5DC;
    --gold: #C5B358;
}

* {
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    background-color: var(--light-cream);
    color: var(--dark-brown);
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrap {
    flex: 1;
}

.section {
    padding: 80px 20px;
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

h1, h2, h3 {
    color: var(--dark-brown);
}

.btn {
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn.primary {
    background-color: var(--dark-brown);
    color: #fff;
}

.btn.primary:hover {
    background-color: var(--medium-brown);
}

.btn.secondary {
    background-color: transparent;
    border: 2px solid var(--dark-brown);
    color: var(--dark-brown);
}

.btn.secondary:hover {
    background-color: var(--dark-brown);
    color: #fff;
}

.btn.tertiary {
    background-color: var(--medium-brown);
    color: #fff;
    border: none;
}

#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
    background-color: rgba(210, 180, 140, 0);
    transform: translateY(-100%);
    box-shadow: none;
}

#main-header.scrolled {
    transform: translateY(0);
    background-color: rgba(210, 180, 140, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-scroll {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1100px;
    margin: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.favicon-img {
    height: 30px;
    border-radius: 50%;
}

.logo-name {
    font-size: 1.5em;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-brown);
    font-weight: bold;
    position: relative;
}
.lang-switcher {
    background: var(--dark-brown);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    margin-left: 10px;
}
.header-controls {
    display: flex;
    align-items: center;
}

#hero-section {
    padding-top: 150px;
    padding-bottom: 80px;
    background-color: var(--brown-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-img {
    width: 200px;
    height: auto;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero-section h1 {
    font-size: 3em;
    margin-bottom: 5px;
}

.nickname {
    font-size: 1.4em;
    color: var(--medium-brown);
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.hero-section .job-title {
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.divider {
    width: 50px;
    height: 3px;
    background-color: var(--medium-brown);
    margin: 30px auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    text-align: right;
    margin-top: 40px;
}

.service-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2.5em;
    color: var(--medium-brown);
    margin-bottom: 15px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.portfolio-item {
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.portfolio-item:hover img {
    opacity: 0.8;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.contact-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: var(--dark-brown);
    color: #fff;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.contact-icon:hover {
    background-color: var(--medium-brown);
    transform: scale(1.1);
}

.contact-icon i {
    font-size: 1.5em;
    color: #fff;
}

.contact-number {
    font-size: 1.5em;
    font-weight: bold;
    direction: ltr;
}

footer {
    text-align: center;
    padding: 15px;
    background-color: var(--dark-brown);
    color: #fff;
    font-size: 0.9em;
    margin-top: auto;
}

.developer-info {
    font-size: 0.8em;
    margin-top: 10px;
    color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dev-social-icon {
    color: #fff;
    margin: 0 5px;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.dev-social-icon:hover {
    color: var(--medium-brown);
}

.portfolio-header {
    text-align: center;
    padding: 80px 20px 40px;
    background-color: var(--brown-bg);
}

.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--dark-brown);
    color: #fff;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.1s;
    cursor: pointer;
    border: none;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--medium-brown);
}

.portfolio-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

.portfolio-full-item {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
    text-align: right;
    cursor: pointer;
}

.portfolio-full-item:hover {
    transform: translateY(-8px);
}

.portfolio-full-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.portfolio-full-item h3 {
    font-size: 1.2rem;
    padding: 0 15px 5px;
    margin: 0;
}

.portfolio-full-item p {
    font-size: 0.9rem;
    padding: 0 15px 15px;
    margin: 0;
    color: #6b6b6b;
}

.portfolio-full-item .category-tag {
    display: inline-block;
    font-size: 0.75rem;
    background: var(--brown-bg);
    color: var(--dark-brown);
    padding: 4px 10px;
    margin-right: 15px;
    margin-top: 15px;
    margin-bottom: 10px;
    border-radius: 50px;
    font-weight: 600;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s linear;
}

.lightbox-overlay.visible {
    visibility: visible;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: -30px;
    right: 0px;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    transition: transform 0.2s;
}
.lightbox-close:hover {
   transform: scale(1.2);
}


@media (max-width: 768px) {
    .navbar-scroll {
        flex-direction: column;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .desktop-links {
        display: none;
    }
    .logo {
        justify-content: center;
    }
    .hero-section h1 {
        font-size: 2.5em;
    }
    .hero-section .job-title {
        font-size: 1em;
    }
    .section {
        padding: 60px 15px;
    }
    .services-grid, .portfolio-grid, .portfolio-full-grid {
        grid-template-columns: 1fr;
    }
    .contact-links {
        gap: 15px;
    }
    .portfolio-header {
        padding-top: 100px;
    }
}

@media (min-width: 769px) {
    .logo-name {
        display: none;
    }
}