:root {
    --bg: #faf9f6;
    --surface: #ffffff;
    --text: #1a1a1a;
    --text-light: #666666;
    --accent: #c9a96e;
    --accent-dark: #b8944f;
    --border: #e8e5df;
    --gold-glow: rgba(201, 169, 110, 0.25);
    --shadow-sm: 0 2px 15px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.1);
    --radius: 24px;
    --radius-sm: 14px;
    --transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Playfair Display', serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 0 60px; display: flex; justify-content: space-between; align-items: center;
    transition: var(--transition); background: transparent; height: 90px;
}
.navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--border);
    height: 75px;
}
.nav-logo {
    font-size: 24px; font-weight: 900; letter-spacing: 0.5px; color: var(--text); text-decoration: none;
}
.nav-logo span { color: var(--accent); }

/* أزرار القائمة */
.nav-links { display: flex; gap: 15px; list-style: none; align-items: center; }
.nav-links li a {
    text-decoration: none; color: var(--text); font-size: 13px; font-weight: 700;
    text-transform: uppercase; transition: var(--transition);
    padding: 10px 20px; border-radius: 30px;
    background: #f3efe6; border: 1px solid var(--border);
    display: inline-block; letter-spacing: 0.5px;
}
.nav-links li a:hover { 
    color: #fff; 
    background: var(--accent); 
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--gold-glow);
}

.menu-toggle {
    display: none; font-size: 24px; color: var(--text); cursor: pointer; transition: var(--transition); z-index: 1010;
}
.menu-toggle:hover { color: var(--accent); }

/* Sidebar للموبايل */
.sidebar {
    position: fixed; top: 0; right: -300px; width: 300px; height: 100vh;
    background: var(--surface); box-shadow: var(--shadow-lg); border-left: 1px solid var(--border);
    z-index: 1005; padding: 100px 40px; display: flex; flex-direction: column; gap: 25px;
    transition: var(--transition);
}
.sidebar.active { right: 0; }
.sidebar a {
    text-decoration: none; color: var(--text); font-size: 18px; font-weight: 600;
    text-transform: uppercase; transition: var(--transition); display: block;
}
.sidebar a:hover { color: var(--accent); padding-left: 5px; }

.sidebar-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 1002;
    opacity: 0; pointer-events: none; transition: var(--transition); backdrop-filter: blur(4px);
}
.sidebar-overlay.active { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   تطوير سيكشن الهيرو بناءً على التصميم الجديد 
   ========================================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 40px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(201, 169, 110, 0.04) 0%, transparent 70%);
}

.hero-design-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* ستايل الكلمات المتكررة الرأسية */
.hero-watermark-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(80px, 12vw, 150px);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: 2px;
    user-select: none;
    text-align: center;
    width: 100%;
}

/* الكلمة الأولى الملونة بالبني */
.solid-text {
    color: #4a3527;
}

/* الـ 3 كلمات الباقيين الشفافين والمحددين بالأسود */
.outline-text {
    color: transparent;
    -webkit-text-stroke: 2px #1a1a1a;
}

/* حاوية الصورة فوق النصوص والخلفية الدائرية */
.hero-image-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    width: 320px;
    height: 420px;
    display: flex;
    align-items: flex-end; /* عشان الصورة تطلع من تحت لفوق */
    justify-content: center;
    z-index: 15;
}

/* الدايرة الصفراء المودرن اللي ورا ضهرك */
.hero-circle-bg {
    position: absolute;
    bottom: 20px; /* مكانها في الظهر */
    width: 250px;
    height: 250px;
    background-color: #fde49e;
    border-radius: 50%;
    z-index: 1;
}

/* تظبيط صورتك عشان الرأس تطلع برا الدايرة بنجاح */
.hero-avatar {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2; /* فوق الدايرة */
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.1));
}

/* نصوص الهيرو السفلية */
.hero-text-content {
    text-align: center; 
    max-width: 750px; 
    margin-top: 40px; 
    z-index: 20;
}
.hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.hero-text-content h1 { font-size: 42px; font-weight: 900; margin-bottom: 12px; color: var(--text); letter-spacing: -0.5px; }
.hero-text-content h1 .accent { color: var(--accent); }
.hero-text-content .subtitle { font-size: 19px; font-weight: 600; color: var(--text-light); margin-bottom: 16px; }
.hero-text-content .bio { font-size: 16px; font-style: italic; color: #666; max-width: 580px; margin: 0 auto; line-height: 1.8; }

/* Reveal Animation */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

section { padding: 100px 60px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--accent); text-align: center; margin-bottom: 12px; }
.section-heading { font-size: 36px; font-weight: 700; text-align: center; margin-bottom: 60px; color: var(--text); }

/* About Section */
.about-flex { display: flex; flex-direction: row; align-items: stretch; gap: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.about-image-col { flex: 0 0 45%; position: relative; min-height: 520px; overflow: hidden; }
.about-image-col img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.about-divider { width: 1px; background: var(--border); flex: 0 0 1px; }
.about-info-col { flex: 1; padding: 60px; display: flex; flex-direction: column; justify-content: center; text-align: right; }
.about-info-col .about-title { font-size: 34px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.about-info-col .role { color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px; }
.about-info-col p { color: var(--text-light); font-size: 15px; margin-bottom: 20px; line-height: 1.8; }
.about-details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; direction: rtl; }
.about-detail-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); font-weight: 600; }
.about-detail-item i { color: var(--accent); }

/* Services Section */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 30px; text-align: center; transition: var(--transition); }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-icon { font-size: 32px; color: var(--accent); margin-bottom: 16px; }
.service-card h4 { font-size: 20px; margin-bottom: 10px; font-weight: 700; }
.service-card p { font-size: 14px; color: var(--text-light); }

/* Projects Section */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.portfolio-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: var(--transition); text-decoration: none; color: inherit; display: block; }
.portfolio-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.portfolio-thumb { height: 220px; background: #f3f1ec; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-body { padding: 22px; text-align: center; }
.portfolio-body h4 { font-size: 18px; margin-bottom: 4px; font-weight: 700; }
.portfolio-body span { font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

/* كود حركة دوران الساعة الرملية */
.hourglass-anim { font-size: 40px; color: var(--accent); display: inline-block; animation: hourglassRotate 3s infinite steps(2, end); }
@keyframes hourglassRotate {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(0deg) translateY(-5px); }
    50% { transform: rotate(180deg); }
    75% { transform: rotate(180deg) translateY(-5px); }
    100% { transform: rotate(360deg); }
}
.coming-soon-sub { font-size: 13px; color: #888; font-weight: 700; margin-top: 5px; display: block; }

/* Skills Section */
.skills-flex-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.skills-heading-col { font-size: 22px; font-weight: 700; margin-bottom: 25px; color: var(--text); border-bottom: 2px solid var(--border); padding-bottom: 8px; }
.skill-item { margin-bottom: 22px; }
.skill-info { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; text-transform: uppercase; margin-bottom: 6px; }
.skill-track { height: 6px; background: #e8e5df; border-radius: 10px; overflow: hidden; }
.skill-fill { height: 100%; background: var(--accent); border-radius: 10px; width: 0%; transition: width 2s cubic-bezier(0.25, 1, 0.5, 1); }

/* Connect Section */
.connect-flex { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; background: var(--surface); padding: 60px 50px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.connect-left-side { display: flex; flex-direction: column; justify-content: center; }
.connect-left-side h3 { font-size: 30px; margin-bottom: 12px; font-weight: 700; }
.connect-left-side p { color: var(--text-light); font-size: 15px; margin-bottom: 30px; }
.connect-form-box form { display: flex; flex-direction: column; gap: 15px; }
.connect-form-box input, .connect-form-box textarea { width: 100%; padding: 15px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: 'Playfair Display', serif; font-size: 14px; background: var(--bg); color: var(--text); outline: none; transition: var(--transition); }
.connect-form-box input:focus, .connect-form-box textarea:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.06); }
.connect-form-box button { background: var(--accent); color: #fff; border: none; padding: 15px 30px; border-radius: 50px; font-size: 14px; font-weight: 600; text-transform: uppercase; cursor: pointer; transition: var(--transition); align-self: flex-start; }
.connect-form-box button:hover { background: var(--accent-dark); box-shadow: 0 6px 20px var(--gold-glow); }

.connect-right-orbit-side { display: flex; align-items: center; justify-content: center; position: relative; min-height: 360px; }
.image-center-container { position: relative; width: 220px; height: 220px; z-index: 5; }
.connect-circle-img-box { width: 220px; height: 220px; border-radius: 50%; overflow: hidden; border: 6px solid var(--bg); box-shadow: var(--shadow-md); }
.connect-circle-img-box img { width: 100%; height: 100%; object-fit: cover; }

.orbit-link { position: absolute; display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--text); transition: var(--transition); z-index: 6; }
.orbit-link .icon-box { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: var(--transition); box-shadow: var(--shadow-sm); }
.orbit-link span { position: absolute; font-size: 12px; font-weight: 700; background: var(--surface); padding: 4px 10px; border-radius: 10px; border: 1px solid var(--border); opacity: 0; transition: var(--transition); pointer-events: none; white-space: nowrap; }
.orbit-link:hover span { opacity: 1; }
.orbit-link:hover .icon-box { background: var(--accent); color: #fff; border-color: transparent; transform: scale(1.1); box-shadow: 0 4px 12px var(--gold-glow); }

/* إحداثيات الأوربت */
.orb-1 { top: calc(50% - 23px); left: calc(50% - 160px); } .orb-1 span { right: 55px; }
.orb-2 { top: calc(50% - 120px); left: calc(50% - 120px); } .orb-2 span { right: 55px; }
.orb-3 { top: calc(50% + 74px); left: calc(50% - 120px); } .orb-3 span { right: 55px; }
.orb-4 { top: calc(50% - 160px); left: calc(50% - 23px); } .orb-4 span { bottom: 55px; }
.orb-5 { top: calc(50% + 114px); left: calc(50% - 23px); } .orb-5 span { top: 55px; }

/* Footer */
footer { text-align: center; padding: 40px; border-top: 1px solid var(--border); color: #aaa; font-size: 13px; text-transform: uppercase; background: var(--surface); font-weight: 600; }
footer span { color: var(--accent); font-weight: 700; }

/* ==========================================================================
   Media Queries Responsive
   ========================================================================= */
@media (max-width: 1024px) {
    .navbar { padding: 0 30px; }
    .nav-links { display: none; } 
    .menu-toggle { display: block; } 
    
    section { padding: 80px 30px; }
    
    .about-flex { flex-direction: column; }
    .about-image-col { min-height: 380px; flex: 0 0 100%; }
    .about-divider { display: none; }
    .about-info-col { padding: 40px 24px; text-align: center; }
    .about-details { justify-content: center; }
    
    .services-grid, .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .skills-flex-layout { grid-template-columns: 1fr; gap: 40px; }
    
    .connect-flex { grid-template-columns: 1fr; padding: 30px; gap: 40px; }
    .connect-right-orbit-side { order: -1; min-height: 340px; }
}

@media (max-width: 768px) {
    .hero { padding: 100px 20px 30px; }
    .hero-image-wrapper { width: 240px; height: 320px; transform: translate(-50%, -50%); }
    .hero-circle-bg { width: 180px; height: 180px; bottom: 10px; }
    .hero-text-content { margin-top: 20px; }
    .hero-text-content h1 { font-size: clamp(26px, 8vw, 36px); }
    
    .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .about-details { grid-template-columns: 1fr; }
}