/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #f39c12;
    --accent-color: #8d6748;
    --wine-color: #721B2E;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* شريط التنقل */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 65px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    transition: var(--transition);
}

.logo-image:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* القسم الرئيسي */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, rgba(30, 32, 34, 0.55) 0%, rgba(60, 60, 60, 0.35) 100%), url('https://egysketch.com/wp-content/uploads/2022/08/%D8%B4%D8%B1%D9%83%D8%A7%D8%AA-%D8%AA%D8%B5%D9%85%D9%8A%D9%85-%D8%AF%D8%A7%D8%AE%D9%84%D9%8A-%D9%81%D9%8A-%D8%A7%D9%84%D8%B1%D9%8A%D8%A7%D8%B6-1-1-1024x768.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title,
.hero-subtitle,
.hero-description {
    color: #222;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: 'Amiri', serif;
    text-shadow: 0 2px 8px rgba(255,255,255,0.7), 0 0 2px #fff;
}

.highlight {
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #22180e;
    margin-bottom: 20px;
    font-weight: 700;
}

.dark-mode .hero .hero-subtitle {
    color: #fff;
    font-weight: 700;
}

.hero-description {
    color: #111;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-shape {
    width: 240px;
    height: 240px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-hover);
    animation: float 6s ease-in-out infinite;
    overflow: hidden;
}

.hero-logo {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
}

.hero-shape i {
    font-size: 4rem;
    color: var(--white);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* الأقسام العامة */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: 'Amiri', serif;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* قسم عني */
.about {
    position: relative;
    padding: 100px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-family: 'Amiri', serif;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill {
    text-align: center;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 15px;
    transition: var(--transition);
}

.skill:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.skill i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.skill h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.skill p {
    color: var(--text-light);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.about::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("data:image/svg+xml;utf8,<svg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'><circle cx='6' cy='6' r='2' fill='%238d6748' fill-opacity='0.25'/></svg>");
    opacity: 0.5;
    pointer-events: none;
    animation: dots-move 12s linear infinite;
}

@keyframes dots-move {
    0% { background-position: 0 0; }
    100% { background-position: 80px 40px; }
}

/* قسم المشاريع */
.projects {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(200,200,200,0.3) 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background-attachment: fixed;
}

.projects::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("data:image/svg+xml;utf8,<svg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'><circle cx='6' cy='6' r='2' fill='%238d6748' fill-opacity='0.25'/></svg>");
    opacity: 0.5;
    pointer-events: none;
    animation: dots-move 12s linear infinite;
}

@keyframes dots-move {
    0% { background-position: 0 0; }
    100% { background-position: 80px 40px; }
}

.projects > * {
    position: relative;
    z-index: 1;
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 25px;
    background: var(--white);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card,
.project-card-link .project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}

.project-card.visible,
.project-card-link .project-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    text-align: center;
    padding: 20px;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: 'Amiri', serif;
}

.project-overlay p {
    color: var(--white);
    margin-bottom: 20px;
    opacity: 0.9;
}

.project-link {
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--white);
    color: var(--secondary-color);
}

/* قسم التواصل */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(200,200,200,0.3) 100%), url('https://decorious.com/public/blogs/February2023/the-most-important-basics-of-interior-design-and-the-art-of-decoration.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-family: 'Amiri', serif;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    width: 50px;
    height: 50px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    border: none;
    font-size: 1.1rem;
}

/* الفوتر */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 16px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left h3 {
    font-family: 'Amiri', serif;
    margin-bottom: 10px;
}

.footer-left p {
    opacity: 0.8;
}

.footer-right p {
    opacity: 0.8;
}

/* الاستجابة للشاشات */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-content {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-shape {
        width: 200px;
        height: 200px;
    }
    
    .hero-shape i {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .skills {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .about-stats {
        flex-direction: column;
    }
    
    .projects-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* زر تبديل اللغة والوضع */
.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-right: 15px;
}

.nav-action-btn {
    background: var(--light-bg);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.nav-action-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

/* الوضع الليلي */
.dark-mode {
    --primary-color: #f5f7fa;
    --secondary-color: #f39c12;
    --accent-color: #8d6748;
    --text-color: #f5f7fa;
    --text-light: #c3cfe2;
    --white: #222831;
    --light-bg: #23272f;
    background-color: #181c23;
    color: var(--text-color);
}

.dark-mode body,
body.dark-mode {
    background-color: #181c23;
    color: var(--text-color);
}

.dark-mode .navbar,
.dark-mode .nav-menu,
.dark-mode .nav-action-btn {
    background: #23272f !important;
    color: var(--text-color) !important;
    border-color: var(--accent-color) !important;
}

.dark-mode .nav-link,
.dark-mode .nav-link.active {
    color: var(--text-color) !important;
}

.dark-mode .nav-link:hover,
.dark-mode .nav-link.active {
    color: var(--secondary-color) !important;
}

.dark-mode .hero,
.dark-mode .about,
.dark-mode .projects,
.dark-mode .contact,
.dark-mode .footer {
    background: #23272f !important;
    color: var(--text-color) !important;
}

.dark-mode .btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.dark-mode .btn-primary:hover {
    background: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.dark-mode .btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.dark-mode .btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.dark-mode .hero {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8) 0%, rgba(40, 40, 40, 0.6) 100%), url('https://antonovich-design.ae/uploads/post/2022/4/antonovich-design-2022jop06RiUGi2E.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
}

.dark-mode .hero .hero-title,
.dark-mode .hero .hero-subtitle,
.dark-mode .hero .hero-description {
    color: var(--primary-color);
}

.dark-mode .hero .hero-description {
    color: #fff;
    font-weight: 600;
}

/* Make Contact Me button more prominent */
.btn.btn-secondary[data-i18n="btn_contact_me"] {
    background: #fff;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 2px 12px rgba(44,62,80,0.10);
    font-weight: bold;
    transition: var(--transition);
}
.btn.btn-secondary[data-i18n="btn_contact_me"]:hover {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

.dark-mode .about {
    background: var(--white) !important;
}

.dark-mode .contact {
    background: url('https://radyinterior.ae/wp-content/uploads/2024/07/interior-design-neoclassical-style-with-furnishings-decor_23-2151199345-1024x574.jpg.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    position: relative;
}
.dark-mode .contact::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, rgba(30,30,30,0.8) 0%, rgba(60,60,60,0.5) 100%);
    pointer-events: none;
}
.dark-mode .contact > * {
    position: relative;
    z-index: 1;
}

.dark-mode .projects {
    background: linear-gradient(135deg, rgba(30,30,30,0.8) 0%, rgba(60,60,60,0.5) 100%);
    background-size: cover !important;
    background-position: center !important;
}

.services {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(200,200,200,0.3) 100%), url('https://elegant.decorexpro.com/wp-content/uploads/2019/03/dizajn-v-temnyh-tonah-16-e1552250272280.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.dark-mode .services {
    background: url('https://saadihg.com/wp-content/uploads/2024/03/girl1-1-1.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    position: relative;
}
.dark-mode .services::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, rgba(30,30,30,0.8) 0%, rgba(60,60,60,0.5) 100%);
    pointer-events: none;
}
.dark-mode .services > * {
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.service-card {
    background: rgba(255,255,255,0.85);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}
.service-icon {
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.service-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}
.service-desc {
    color: var(--text-light);
    font-size: 1.05rem;
}
.dark-mode .service-card {
    background: rgba(34,40,49,0.92);
}
.dark-mode .service-title {
    color: var(--secondary-color);
}

@keyframes fadeup {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fadeup {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeup 1.3s cubic-bezier(.4,0,.2,1) forwards;
}