@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* ==========================================================================
   Arabic Editorial Font (Thmanyah Sans)
   ========================================================================== */
@font-face {
    font-family: 'Thmanyah Sans';
    src: url('../fonts/thmanyahsans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Thmanyah Sans';
    src: url('../fonts/thmanyahsans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Thmanyah Sans';
    src: url('../fonts/thmanyahsans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Thmanyah Sans';
    src: url('../fonts/thmanyahsans-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Thmanyah Sans';
    src: url('../fonts/thmanyahsans-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   Design Tokens & Editorial Palette
   ========================================================================== */
:root {
    --primary-bg: #FDFBF7;        /* Matte Warm Ivory / Light Beige */
    --secondary-bg: #FFFFFF;      /* Pure White for Cards & Modals */
    --text-primary: #222222;      /* Elegant Charcoal for headings/body */
    --text-secondary: #555555;    /* Muted Slate for subtitles/body */
    --brand-accent: #5F7464;      /* Sage Green for brand highlights */
    --concrete-grey: #EAEAEA;     /* Technical Drawing Line Grid Color */
    --border-color: rgba(95, 116, 100, 0.15); /* Light Sage borders */
    
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.025);
    --modal-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-sub: 'Montserrat', sans-serif;
}

/* ==========================================================================
   Reset & Global Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Apply Thmanyah Sans Globally and Bulletproof when language is Arabic (excluding FontAwesome icons) */
body.lang-ar,
body.lang-ar *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
    font-family: 'Thmanyah Sans', var(--font-body) !important;
}

/* Concrete-like Grid lines */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--concrete-grey) 1px, transparent 1px),
        linear-gradient(90deg, var(--concrete-grey) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.18;
    z-index: -2;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

button {
    font-family: var(--font-sub);
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    transition: var(--transition-smooth);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--primary-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--brand-accent);
    border-radius: 3px;
}

/* ==========================================================================
   Utility Classes & Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    transition: padding 0.3s ease;
}

.section {
    padding: 7rem 0;
    position: relative;
    transition: padding 0.3s ease;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 0;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    background: var(--brand-accent);
    margin-top: 1.2rem;
}

/* Section Title With Circular Icon Wrapper */
.section-title-with-icon {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.title-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--brand-accent);
    color: var(--brand-accent);
    font-size: 1.6rem;
    background-color: var(--secondary-bg);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--brand-accent);
    color: #fff;
    padding: 0.9rem 2.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 0;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background: var(--text-primary);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: transparent;
    color: var(--text-primary);
    padding: 0.9rem 2.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid var(--text-primary);
    border-radius: 0;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Scroll Reveal classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--concrete-grey);
    transition: var(--transition-smooth);
}

header .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: height 0.3s ease;
}

header .logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

header nav ul a {
    font-family: var(--font-sub);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

header nav ul a:hover, header nav ul a.active {
    color: var(--brand-accent);
}

/* Translation toggle and navbar CV buttons */
.nav-translate-btn {
    font-family: var(--font-sub);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--brand-accent);
    border: 1px solid var(--brand-accent);
    padding: 0.4rem 0.9rem;
    transition: var(--transition-smooth);
}

.nav-translate-btn:hover {
    background: var(--brand-accent);
    color: #fff;
}

.nav-download-cv-btn {
    font-family: var(--font-sub);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff !important;
    background: var(--brand-accent);
    padding: 0.4rem 0.9rem;
    transition: var(--transition-smooth);
}

.nav-download-cv-btn:hover {
    background: var(--text-primary);
}

.menu-toggle {
    display: none;
    font-size: 1.1rem;
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--concrete-grey);
    background-color: var(--secondary-bg);
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.menu-toggle:hover {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}

/* ==========================================================================
   Hero Section with Enlarged Subtitle
   ========================================================================== */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 90px;
    text-align: center;
    background-image: 
        linear-gradient(rgba(253, 251, 247, 0.75), rgba(253, 251, 247, 0.75)),
        url('../assets/extracted/banner_1.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero-subtitle {
    font-family: var(--font-sub);
    font-size: 1.3rem; /* Enlarged subtitle */
    color: var(--brand-accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

body.lang-ar .hero-subtitle {
    font-size: 1.6rem;
}

.hero-title {
    font-size: 5rem;
    font-weight: 500;
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    transition: font-size 0.3s ease;
}

.hero-desc {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 3rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-socials {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 3rem;
}

.hero-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--concrete-grey);
    border-radius: 50%;
    background: var(--secondary-bg);
    color: var(--text-secondary);
    font-size: 1rem;
}

.hero-socials a:hover {
    color: #fff;
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    transform: translateY(-3px);
}

/* ==========================================================================
   Profile Metadata Bar (Grid Based, Fully Responsive & Wrap-Safe)
   ========================================================================== */
.profile-meta-bar {
    background-color: #063D25; /* Dark Forest Green */
    color: #FFFFFF;
    padding: 1.8rem 0;
    border-bottom: 2px solid var(--brand-accent);
}

.profile-meta-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Equal 5 columns */
    gap: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0; /* Prevents overflow inside grid */
}

.meta-item i {
    font-size: 1.4rem;
    color: #FFFFFF;
    flex-shrink: 0;
}

.meta-item div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.meta-label {
    font-family: var(--font-sub);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.75;
    letter-spacing: 0.05em;
}

.meta-val {
    font-size: 0.95rem;
    font-weight: 500;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Safe truncate for very long strings */
}

.meta-item a.meta-val {
    color: #FFFFFF;
    transition: opacity 0.3s ease;
    white-space: normal; /* Allow wrapping on phone for email */
    word-break: break-all; /* Break long email string */
}

.meta-item a.meta-val:hover {
    opacity: 0.85;
    text-decoration: underline;
}

/* ==========================================================================
   About & Education
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: start;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.about-text p {
    margin-bottom: 2rem;
    text-align: justify;
}

.education-block {
    border-left: 2px solid var(--concrete-grey);
    padding-left: 2.5rem;
}

body.lang-ar .education-block {
    border-left: none;
    border-right: 2px solid var(--concrete-grey);
    padding-left: 0;
    padding-right: 2.5rem;
}

.education-block h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.8rem;
}

.edu-item {
    margin-bottom: 2.5rem;
}

.edu-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.edu-inst {
    font-family: var(--font-sub);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--brand-accent);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.edu-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    list-style-type: none;
}

.edu-meta li {
    margin-bottom: 0.4rem;
}

/* ==========================================================================
   Skills Sections (Thicker bars for better visual presentation)
   ========================================================================== */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.skills-group {
    border-bottom: 1px solid var(--concrete-grey);
    padding-bottom: 2.5rem;
}

.skills-group:last-of-type {
    border-bottom: none;
}

.skills-group-title {
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.skills-group-subtitle {
    font-family: var(--font-sub);
    font-size: 0.95rem;
    color: var(--brand-accent);
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skills-category-block {
    background: var(--secondary-bg);
    border: 1px solid var(--concrete-grey);
    border-radius: 8px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
}

.skills-category-title {
    font-family: var(--font-sub);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    border-bottom: 1px dashed var(--concrete-grey);
    padding-bottom: 0.5rem;
}

.skills-category-grid {
    display: grid;
    gap: 2.5rem;
}

.grid-3-col {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2-col {
    grid-template-columns: repeat(2, 1fr);
}

.grid-1-col {
    grid-template-columns: 1fr;
}

.skill-bar-row {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-family: var(--font-sub);
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.skill-percent {
    font-family: var(--font-sub);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--brand-accent);
}

.skill-line-track {
    width: 100%;
    height: 8px;
    background-color: var(--concrete-grey);
    position: relative;
    border-radius: 4px;
}

.skill-line-fill {
    height: 8px;
    width: 0;
    background-color: var(--brand-accent);
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 4px;
    transition: width 3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Advanced Drafting & Additional Work Timeline Lists
   ========================================================================== */
.timeline-bullets-list {
    position: relative;
    list-style: none;
    padding-left: 2.5rem;
    margin-top: 1.5rem;
}

.timeline-bullets-list::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 4px;
    width: 2px;
    height: calc(100% - 14px);
    background-color: var(--brand-accent);
}

body.lang-ar .timeline-bullets-list {
    padding-left: 0;
    padding-right: 2.5rem;
}

body.lang-ar .timeline-bullets-list::before {
    left: auto;
    right: 4px;
}

.timeline-bullet-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-bullet-item::before {
    content: '';
    position: absolute;
    top: 8px;
    left: -38px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-bg);
    border: 2px solid var(--brand-accent);
    z-index: 2;
}

body.lang-ar .timeline-bullet-item::before {
    left: auto;
    right: -38px;
}

.timeline-bullet-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
}

.timeline-bullet-item strong {
    font-style: normal;
    color: var(--text-primary);
}

.additional-work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    margin-bottom: 0.6rem;
}

.additional-work-role {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
}

.additional-work-date {
    font-family: var(--font-sub);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-accent);
}

.additional-work-company {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--concrete-grey);
    padding-bottom: 0.6rem;
}

.additional-work-box {
    background: var(--secondary-bg);
    border: 1px solid var(--concrete-grey);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
}

/* ==========================================================================
   divider banners with low contrast
   ========================================================================== */
.divider-banner-1 {
    height: 250px;
    background-image: 
        linear-gradient(rgba(253, 251, 247, 0.15), rgba(253, 251, 247, 0.15)),
        url('../assets/extracted/banner_2.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-top: 1px solid var(--concrete-grey);
    border-bottom: 1px solid var(--concrete-grey);
    opacity: 1.0;
}

/* ==========================================================================
   Projects Gallery (Masonry Grid)
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--secondary-bg);
    border: 1px solid var(--concrete-grey);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
    border-color: var(--brand-accent);
}

.project-image-box {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background-color: #f7f5f2;
}

.project-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-card:hover .project-image-box img {
    transform: scale(1.03);
}

.project-details {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-tag {
    font-family: var(--font-sub);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--brand-accent);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.project-card-title {
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.project-desc-short {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   Technical timeline
   ========================================================================== */
.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 3rem;
    border-bottom: 1px solid var(--concrete-grey);
    padding-bottom: 2rem;
}

.timeline-row:last-child {
    border-bottom: none;
}

.timeline-year {
    font-family: var(--font-sub);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.timeline-body h3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.timeline-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Modals system (Fills viewport)
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(34, 34, 34, 0.4);
    backdrop-filter: blur(5px);
    z-index: 200;
    display: none; /* Controlled by JS */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--secondary-bg);
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    border-radius: 0;
    box-shadow: var(--modal-shadow);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.2rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 210;
    line-height: 1;
    transition: var(--transition-smooth);
}

body.lang-ar .modal-close {
    right: auto;
    left: 25px;
}

.modal-header {
    padding: 2.5rem 3rem 1.5rem;
    border-bottom: 1px solid var(--concrete-grey);
}

.modal-project-tag {
    font-family: var(--font-sub);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--brand-accent);
    letter-spacing: 0.05em;
}

.modal-project-title {
    font-size: 2.2rem;
    font-weight: 500;
    margin-top: 0.2rem;
}

.modal-body-scroll {
    flex-grow: 1;
    overflow-y: auto;
    padding: 3rem;
}

/* ==========================================================================
   Graduation Modal Content (Inside modal scrolling)
   ========================================================================== */
.modal-report-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    align-items: start;
    height: 100%;
}

.modal-report-sidebar {
    position: sticky;
    top: 0;
    border-right: 1px solid var(--concrete-grey);
    padding-right: 1.5rem;
}

body.lang-ar .modal-report-sidebar {
    border-right: none;
    border-left: 1px solid var(--concrete-grey);
    padding-right: 0;
    padding-left: 1.5rem;
}

.modal-report-sidebar h3 {
    font-size: 0.95rem;
    font-family: var(--font-sub);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.2rem;
}

.modal-report-menu {
    list-style: none;
}

.modal-report-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: block;
    padding: 0.3rem 0;
    border-left: 2px solid transparent;
}

body.lang-ar .modal-report-link {
    border-left: none;
    border-right: 2px solid transparent;
}

.modal-report-link:hover, .modal-report-link.active {
    color: var(--brand-accent);
    padding-left: 0.5rem;
}

body.lang-ar .modal-report-link:hover, body.lang-ar .modal-report-link.active {
    padding-left: 0;
    padding-right: 0.5rem;
}

.modal-report-sub-menu {
    list-style: none;
    padding-left: 1rem;
    margin-bottom: 0.6rem;
}

body.lang-ar .modal-report-sub-menu {
    padding-left: 0;
    padding-right: 1rem;
}

.modal-report-sub-link {
    font-size: 0.75rem;
    color: #999999;
    display: block;
    padding: 0.15rem 0;
}

.modal-report-sub-link:hover, .modal-report-sub-link.active {
    color: var(--brand-accent);
}

.modal-report-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.modal-report-chapter {
    border-bottom: 1px solid var(--concrete-grey);
    padding-bottom: 3rem;
}

.modal-report-chapter:last-child {
    border-bottom: none;
}

.modal-report-sec {
    margin-top: 2rem;
    scroll-margin-top: 30px;
}

.modal-report-sec h4 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.modal-report-img-box {
    margin: 2rem 0;
    background-color: #f7f5f2;
    padding: 1.5rem;
    border: 1px dashed var(--brand-accent);
    text-align: center;
}

.modal-report-img-box img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.modal-report-caption {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.8rem;
    font-style: italic;
}

/* ==========================================================================
   Blueprint Modal Viewport
   ========================================================================== */
.modal-blueprint-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-blueprint-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid var(--concrete-grey);
    padding-bottom: 1rem;
}

.modal-blueprint-tab {
    background: #f4f2ee;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-family: var(--font-sub);
    font-weight: 500;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.modal-blueprint-tab.active, .modal-blueprint-tab:hover {
    background: var(--brand-accent);
    color: #fff;
    border-color: var(--brand-accent);
}

.modal-zoom-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: #f7f5f2;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    border: 1px solid var(--concrete-grey);
}

.modal-zoom-container:active {
    cursor: grabbing;
}

.modal-zoom-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: 0 0;
    transition: transform 0.1s ease-out;
}

.modal-zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

body.lang-ar .modal-zoom-controls {
    right: auto;
    left: 20px;
}

.modal-zoom-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--concrete-grey);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border-radius: 50%;
}

.modal-zoom-btn:hover {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}

.modal-lens {
    position: absolute;
    border: 2px solid var(--brand-accent);
    border-radius: 50%;
    width: 130px;
    height: 130px;
    display: none;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 15;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.modal-blueprint-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 1rem;
}

.modal-blueprint-text {
    max-width: 70%;
}

.modal-blueprint-sheet-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.modal-blueprint-sheet-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Footer & Contact Section with Background Banner 3
   ========================================================================== */
#contact {
    background-image: 
        linear-gradient(rgba(253, 251, 247, 0.82), rgba(253, 251, 247, 0.82)),
        url('../assets/extracted/banner_3.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-top: 1px solid var(--concrete-grey);
    border-bottom: 1px solid var(--concrete-grey);
}

.contact-box {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.contact-desc {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 3rem;
}

.contact-channels {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

footer {
    padding: 4rem 0 3rem;
    background-color: var(--primary-bg);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    border-top: 1px solid var(--concrete-grey);
    padding-top: 2rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Full-width Video Section
   ========================================================================== */
.video-showcase-section {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background-color: #000;
}

.showcase-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   Media Queries & Mobile Responsiveness
   ========================================================================== */
@media (max-width: 1024px) {
    .profile-meta-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .skills-list {
        grid-template-columns: 1fr;
        row-gap: 1.8rem;
    }
    
    .timeline-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-report-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-report-sidebar {
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--concrete-grey);
        padding-right: 0;
        padding-bottom: 1.5rem;
    }
    
    body.lang-ar .modal-report-sidebar {
        border-left: none;
        padding-left: 0;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .additional-work-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem; /* Clean, compact margins on mobile */
    }

    .section {
        padding: 4rem 0; /* Proportional, breathable vertical heights */
    }

    .profile-meta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
    }

    /* Hero Text Wrapping fixes */
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.25;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        letter-spacing: 0.12em;
        margin-bottom: 1rem;
    }

    body.lang-ar .hero-subtitle {
        font-size: 1.15rem;
    }

    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        padding: 0.9rem 0;
    }

    /* Section titles responsive scaling */
    .section-title {
        font-size: 1.8rem;
    }

    .section-title-with-icon {
        gap: 1rem;
        margin-bottom: 2.5rem;
    }

    .title-icon-circle {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    /* About Section spacing */
    .about-grid {
        gap: 2.5rem;
    }

    .education-block {
        padding-left: 1.25rem;
    }

    body.lang-ar .education-block {
        padding-right: 1.25rem;
    }

    /* Skills Showcase improvements */
    .skills-group-title {
        font-size: 1.6rem;
    }

    .skills-category-block {
        padding: 1.25rem;
    }

    .skills-category-grid {
        gap: 1.5rem;
    }

    /* Additional Work box padding */
    .additional-work-box {
        padding: 1.5rem;
    }

    /* Modal controls */
    .modal-body-scroll {
        padding: 1.5rem;
    }
    
    .modal-header {
        padding: 2rem 1.5rem 1rem;
    }
    
    .modal-zoom-container {
        height: 350px;
    }
    
    .modal-blueprint-meta {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .modal-blueprint-text {
        max-width: 100%;
    }
    
    .video-showcase-section {
        height: 60vh;
    }
}

@media (max-width: 480px) {
    header .logo {
        font-size: 0.95rem; /* Clean fit for the full name */
    }

    .profile-meta-grid {
        grid-template-columns: 1fr; /* Stacks to single column for wrapping safety */
        gap: 1.5rem;
    }
}

/* ==========================================================================
   Bimodal View System & Switcher Styles
   ========================================================================== */
.page-view {
    display: none;
}
.page-view.active {
    display: block;
}

.site-mode-switcher {
    display: inline-flex;
    background: rgba(95, 116, 100, 0.08);
    border-radius: 30px;
    padding: 3px;
    border: 1px solid rgba(95, 116, 100, 0.15);
    margin-left: 1.5rem;
    align-items: center;
    gap: 2px;
}

body.lang-ar .site-mode-switcher {
    margin-left: 0;
    margin-right: 1.5rem;
}

.mode-switch-btn {
    font-family: var(--font-sub);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.mode-switch-btn.active {
    background-color: var(--brand-accent);
    color: #FFFFFF;
}

/* ==========================================================================
   Section 1: Hero Studio Styles
   ========================================================================== */
#hero-studio {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, #FFFFFF 0%, #FDFBF7 100%);
    position: relative;
    text-align: center;
    padding-top: 90px;
}

.hero-studio-content {
    max-width: 950px;
    z-index: 2;
}

.pulsing-cta {
    position: relative;
    animation: pulsing-glow 2.2s infinite ease-in-out;
    box-shadow: 0 0 0 0 rgba(95, 116, 100, 0.5);
    background-color: #D96E56 !important; /* Standout Coral color for digital services ordering */
}

@keyframes pulsing-glow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(217, 110, 86, 0.6);
    }
    70% {
        transform: scale(1.03);
        box-shadow: 0 0 0 16px rgba(217, 110, 86, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(217, 110, 86, 0);
    }
}

/* ==========================================================================
   Section 2: Code vs Clean UI Grid Styles
   ========================================================================== */
.code-ui-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.code-matrix-container {
    background: #111111;
    border-radius: 12px;
    border: 1px solid #252826;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    color: #63C38C;
    height: 380px;
    overflow: hidden;
    position: relative;
    text-align: left;
    direction: ltr;
}

.code-matrix-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid #252826;
    padding-bottom: 0.6rem;
    align-items: center;
}

.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.code-dot.red { background-color: #ff5f56; }
.code-dot.yellow { background-color: #ffbd2e; }
.code-dot.green { background-color: #27c93f; }

.code-matrix-title {
    font-size: 0.72rem;
    color: #888888;
    margin-left: 0.5rem;
    font-weight: 600;
}

.code-matrix-body {
    font-size: 0.8rem;
    line-height: 1.6;
    white-space: pre-wrap;
    height: calc(100% - 40px);
    overflow-y: hidden;
}

.clean-ui-container {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid var(--concrete-grey);
    box-shadow: var(--card-shadow);
    padding: 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.clean-ui-item {
    border-bottom: 1px solid var(--concrete-grey);
    padding-bottom: 1.2rem;
}
.clean-ui-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.clean-ui-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.clean-ui-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Section 3: E-Commerce Playground & Animations
   ========================================================================== */
.playground-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    background: #FFFFFF;
    border: 1px solid var(--concrete-grey);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    position: relative;
}

.playground-controls {
    border-right: 1px solid var(--concrete-grey);
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

body.lang-ar .playground-controls {
    border-right: none;
    border-left: 1px solid var(--concrete-grey);
    padding-right: 0;
    padding-left: 2rem;
}

.playground-control-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.playground-control-title {
    font-family: var(--font-sub);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-accent);
}

.playground-btn {
    background: #f4f2ee;
    color: var(--text-secondary);
    padding: 0.6rem 1rem;
    font-size: 0.76rem;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: 4px;
    text-align: left;
    transition: var(--transition-smooth);
}

body.lang-ar .playground-btn {
    text-align: right;
}

.playground-btn.active, .playground-btn:hover {
    background: var(--brand-accent);
    color: #FFFFFF;
}

.playground-display {
    position: relative;
    min-height: 520px;
    background: #FDFBF7;
    border: 1px dashed var(--brand-accent);
    border-radius: 8px;
    overflow: hidden;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

/* Simulated Header & Footer Styles inside Playground */
.sim-header {
    border-bottom: 1px solid var(--concrete-grey);
    padding-bottom: 0.8rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.sim-header.minimal {
    border-bottom: none;
    padding-bottom: 0;
    justify-content: center;
    gap: 2rem;
}

.sim-header.bold {
    background: var(--brand-accent);
    color: #FFFFFF;
    padding: 0.8rem 1.2rem;
    margin-left: -2rem;
    margin-right: -2rem;
    margin-top: -2rem;
}

.sim-header.bold .sim-nav a {
    color: #FFFFFF;
}

.sim-logo {
    font-family: var(--font-heading);
    font-weight: 600;
}

.sim-nav {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    font-size: 0.75rem;
}

.sim-nav a {
    font-weight: 500;
    color: var(--text-secondary);
}

.sim-footer {
    border-top: 1px solid var(--concrete-grey);
    padding-top: 0.8rem;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.sim-footer.minimal {
    border-top: none;
    justify-content: center;
}

.sim-footer.bold {
    background: #222222;
    color: #888888;
    padding: 1.2rem;
    margin-left: -2rem;
    margin-right: -2rem;
    margin-bottom: -2rem;
}

/* Product Card simulated page layouts */
.sim-product-body {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.sim-product-scroll {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
    max-width: 500px;
}

.sim-product-slider {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.sim-product-image {
    width: 180px;
    height: 180px;
    background-color: var(--secondary-bg);
    border: 1px solid var(--concrete-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--brand-accent);
    flex-shrink: 0;
}

.sim-product-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: left;
}

body.lang-ar .sim-product-details {
    text-align: right;
}

.sim-product-title {
    font-size: 1.35rem;
    font-weight: 600;
}
.sim-product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-accent);
}
.sim-product-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Simulated cart options */
.sim-cart-drawer {
    position: absolute;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: #FFFFFF;
    box-shadow: -5px 0 20px rgba(0,0,0,0.05);
    z-index: 100;
    padding: 1.5rem;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sim-cart-drawer.active {
    right: 0;
}

.sim-cart-modal {
    position: absolute;
    top: -220px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    background: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 101;
    padding: 1.5rem;
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 8px;
    border: 1px solid var(--concrete-grey);
}
.sim-cart-modal.active {
    top: 20px;
}

.sim-cart-float {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--brand-accent);
    color: #FFFFFF;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(95, 114, 100, 0.4);
    z-index: 99;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.sim-cart-float.show {
    display: flex;
}
.sim-cart-float:hover {
    transform: scale(1.08);
}

.sim-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #D96E56;
    color: #FFFFFF;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
}

.fly-item {
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: var(--brand-accent);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.success-checkout-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(253, 251, 247, 0.96);
    z-index: 105;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.success-checkout-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-check-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(39, 201, 63, 0.1);
    color: #27c93f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    animation: scaleIn 0.5s ease-out forwards;
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* ==========================================================================
   Section 4: Dashboard & Automation Styles
   ========================================================================== */
.dashboard-layout {
    background: #FFFFFF;
    border: 1px solid var(--concrete-grey);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 3rem;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: #FDFBF7;
    border: 1px solid var(--concrete-grey);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition-smooth);
}
.stat-card:hover {
    border-color: var(--brand-accent);
}

.stat-val {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--brand-accent);
    margin-bottom: 0.2rem;
    font-family: var(--font-heading);
}

.stat-label {
    font-family: var(--font-sub);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.dash-orders-box {
    border: 1px solid var(--concrete-grey);
    border-radius: 8px;
    padding: 1.5rem;
}

.dash-orders-title {
    font-family: var(--font-sub);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.dash-order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.dash-order-table th {
    text-align: left;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--concrete-grey);
    color: var(--text-secondary);
    font-weight: 600;
}
body.lang-ar .dash-order-table th {
    text-align: right;
}

.dash-order-table td {
    padding: 0.8rem;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.dash-order-table tr:last-child td {
    border-bottom: none;
}

.order-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    font-size: 0.68rem;
    font-family: var(--font-sub);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 30px;
    letter-spacing: 0.02em;
}

.order-badge.completed {
    background-color: rgba(39, 201, 63, 0.08);
    color: #1a7a28;
}

.order-badge.pending {
    background-color: rgba(255, 189, 46, 0.08);
    color: #b5800d;
}

.order-badge.canceled {
    background-color: rgba(217, 110, 86, 0.08);
    color: #a63a23;
}

.order-action-btn {
    background: #f4f2ee;
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid var(--concrete-grey);
}
.order-action-btn:hover {
    background: var(--brand-accent);
    color: #FFFFFF;
}

/* WhatsApp Live Simulator preview */
.whatsapp-demo-box {
    background: #e5ddd5;
    border-radius: 8px;
    border: 1px solid var(--concrete-grey);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 380px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.whatsapp-header {
    background-color: #075e54;
    color: #FFFFFF;
    padding: 0.7rem 1.2rem;
    margin: -1.5rem -1.5rem 0.5rem -1.5rem;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.whatsapp-header i {
    font-size: 1.1rem;
}

.whatsapp-chats-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
    overflow-y: auto;
}

.whatsapp-msg {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 0.8rem;
    max-width: 85%;
    align-self: flex-start;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    position: relative;
    font-size: 0.78rem;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

body.lang-ar .whatsapp-msg {
    align-self: flex-end;
    background: #dcf8c6; /* Green bubble for sent messages in Arabic context */
}

.whatsapp-msg.active {
    opacity: 1;
    transform: translateY(0);
}

.whatsapp-msg::after {
    content: '';
    position: absolute;
    top: 0;
    left: -6px;
    border-top: 8px solid #FFFFFF;
    border-left: 8px solid transparent;
}

body.lang-ar .whatsapp-msg::after {
    left: auto;
    right: -6px;
    border-top: 8px solid #dcf8c6;
    border-right: 8px solid transparent;
    border-left: none;
}

.whatsapp-time {
    display: block;
    font-size: 0.62rem;
    color: #888888;
    margin-top: 0.4rem;
    text-align: right;
}

/* ==========================================================================
   Section 5: Unbeatable Offers Styles
   ========================================================================== */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.offer-card {
    background: #FFFFFF;
    border: 2px solid var(--text-primary);
    padding: 3.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    transition: var(--transition-smooth);
}

.offer-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-accent);
    box-shadow: var(--card-shadow);
}

.offer-num {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-style: italic;
    color: var(--brand-accent);
    font-weight: 500;
}

.offer-title {
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.3;
}

.offer-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Digital Studio Responsiveness overrides
   ========================================================================== */
@media (max-width: 900px) {
    .code-ui-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .playground-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .playground-controls {
        border-right: none;
        border-bottom: 1px solid var(--concrete-grey);
        padding-right: 0;
        padding-bottom: 2rem;
    }
    
    body.lang-ar .playground-controls {
        border-left: none;
        border-bottom: 1px solid var(--concrete-grey);
        padding-left: 0;
        padding-bottom: 2rem;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .offers-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .dashboard-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .sim-product-slider {
        flex-direction: column;
        text-align: center;
    }

    body.lang-ar .sim-product-details {
        text-align: center;
    }

    .sim-product-image {
        margin: 0 auto;
    }
}

/* ==========================================================================
   Custom Navigation Enhancements & Direct Contact Section (Bimodal portfolio)
   ========================================================================== */

/* Prevent wrapping of text in navigation elements */
header nav ul a,
.nav-translate-btn,
.nav-download-cv-btn {
    white-space: nowrap !important;
}

/* Mobile Navigation Breakpoint (Triggers hamburger menu at 1024px to prevent header crowding) */
@media (max-width: 1024px) {
    header .nav-container {
        height: 75px;
    }

    header .logo {
        font-size: 1.1rem;
    }

    .menu-toggle {
        display: inline-flex;
    }

    header nav {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        height: calc(100vh - 75px);
        background: var(--primary-bg);
        transition: var(--transition-smooth);
        padding: 3rem 1.5rem;
        border-top: 1px solid var(--concrete-grey);
        transform: translateX(-100%);
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        z-index: 99;
    }
    
    header nav.active {
        transform: translateX(0);
    }
    
    body.lang-ar header nav {
        transform: translateX(100%);
    }
    
    body.lang-ar header nav.active {
        transform: translateX(0);
    }

    header nav ul {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
        width: 100%;
    }

    header nav ul li {
        width: 100%;
        border-bottom: 1px solid var(--concrete-grey);
        padding-bottom: 0.6rem;
    }

    header nav ul li:last-child {
        border-bottom: none;
    }

    header nav ul a {
        font-size: 1.05rem;
        display: block;
        width: 100%;
    }

    .nav-translate-btn, 
    .nav-download-cv-btn {
        display: inline-flex !important;
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 0.8rem 0 !important;
        font-size: 0.9rem !important;
    }
}

/* Squeezing styles on desktop screens between 1025px and 1250px to ensure perfect header fit */
@media (min-width: 1025px) and (max-width: 1250px) {
    header nav ul {
        gap: 0.75rem;
    }
    header .nav-container {
        padding: 0 1rem;
    }
    header .logo {
        font-size: 1.25rem;
    }
    .site-mode-switcher {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    body.lang-ar .site-mode-switcher {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    header nav ul a {
        font-size: 0.72rem;
    }
    .nav-translate-btn,
    .nav-download-cv-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.7rem;
    }
}

/* Large Direct Contact Buttons styling */
.large-contact-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .large-contact-buttons {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.large-contact-btn {
    display: flex;
    align-items: center;
    padding: 2rem;
    background: #FFFFFF;
    border: 1px solid var(--concrete-grey);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.large-contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.large-contact-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.large-contact-btn.whatsapp-btn:hover {
    border-color: #25D366;
    background: #f4fbf6;
}

.large-contact-btn.email-btn:hover {
    border-color: #D96E56;
    background: #fdf8f6;
}

.large-contact-btn .contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.8rem;
    margin-right: 1.5rem;
    transition: all 0.3s ease;
}

body.lang-ar .large-contact-btn .contact-icon {
    margin-right: 0;
    margin-left: 1.5rem;
}

.large-contact-btn.whatsapp-btn .contact-icon {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
}

.large-contact-btn.whatsapp-btn:hover .contact-icon {
    background: #25D366;
    color: #FFFFFF;
    transform: scale(1.1);
}

.large-contact-btn.email-btn .contact-icon {
    background: rgba(217, 110, 86, 0.1);
    color: #D96E56;
}

.large-contact-btn.email-btn:hover .contact-icon {
    background: #D96E56;
    color: #FFFFFF;
    transform: scale(1.1);
}

.large-contact-btn .contact-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.large-contact-btn .contact-lbl {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 600;
}

.large-contact-btn .contact-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.large-contact-btn .arrow-icon {
    font-size: 1.2rem;
    color: var(--concrete-grey);
    transition: all 0.3s ease;
}

body.lang-ar .large-contact-btn .arrow-icon i {
    transform: rotate(180deg);
}

.large-contact-btn:hover .arrow-icon {
    color: var(--text-primary);
    transform: translateX(5px);
}

body.lang-ar .large-contact-btn:hover .arrow-icon {
    transform: translateX(-5px);
}

