/* ==========================================================================
   Custom Typeface — AdobeArabic (loaded from local TTF)
   ========================================================================== */
@font-face {
    font-family: 'AdobeArabic';
    src: url('adobearabic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
    --primary-orange: #e85002;
    --light-orange:   #ff9800;
    --dark-bg:        #000000;
    --text-white:     #ffffff;
    --glass-border:   rgba(255, 255, 255, 0.2);
}


/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'AdobeArabic', 'Cairo', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-white);
    overflow-x: hidden;
}


/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    padding: 0 20px;
}

.logo-img {
    height: 50px;
}

/* Glassmorphism pill container for nav links */
.nav-links-container {
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 15px 40px;
    border-radius: 50px;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.4) 100%);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.9),
        inset 0 -1px 0 rgba(255,255,255,0.3),
        0 4px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.nav-links-container a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    transition: color 0.3s ease;
    white-space: nowrap;
    position: relative;
}

/* Animated orange underline on hover/active */
.nav-links-container a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0; right: 0;
    height: 1.5px;
    background: var(--primary-orange);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links-container a:hover::after,
.nav-links-container a.active::after {
    transform: scaleX(1);
}

.nav-links-container a:hover,
.nav-links-container a.active {
    color: var(--primary-orange);
}

/* Shared glass style used by all navbar / section buttons */
.cta-btn {
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 30px;
    color: #fff;
    font-weight: bold;
    transition: 0.3s;
    white-space: nowrap;
    font-family: 'AdobeArabic', 'Cairo', sans-serif;
    font-size: 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.4) 100%);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.9),
        inset 0 -1px 0 rgba(255,255,255,0.3),
        0 4px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cta-btn:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    box-shadow: 0 4px 15px rgba(232,80,2,0.4);
}


/* ==========================================================================
   Sections — Base
   ========================================================================== */
.section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    padding: 120px 3% 50px 3%;
    background-color: #000;
    background-image: radial-gradient(circle at 90% 0%, rgba(232, 80, 2) 0%, rgba(0, 0, 0, 1) 70%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero uses a real image layered beneath the orange gradient */
.home-section {
    background-image:
        radial-gradient(circle at 90% 0%, rgba(232, 79, 2, 0.952) 0%, rgba(0, 0, 0, 1) 65%),
        url('img/hero-section1.webp');
    background-color: #000;
    background-size: cover;
    background-position: center;
    background-blend-mode: normal;
}

/* Add section-specific background images here following the same pattern:
   .about-section    { background-image: radial-gradient(...), url('img/...'); }
   .services-section { background-image: radial-gradient(...), url('img/...'); }
   .portfolio-section { background-image: radial-gradient(...), url('img/...'); } */

.content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1300px;
}


/* ==========================================================================
   Section 1 — Hero
   ========================================================================== */
.home-section .text-content {
    flex: 0 1 calc(50% + 10px);
    z-index: 2;
    text-align: right;
}

.home-section .image-box {
    flex: 0 1 calc(50% - 10px);
}

.image-box {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    height: 700px;
}

.home-section .image-box {
    justify-content: flex-start;
    align-items: flex-end;
}

.full-person-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.english-greeting {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 400;
    text-align: left;
    margin-bottom: 25px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.main-title-en {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.1; /* intentional tight overlap with arabic title below */
    text-align: left;
    padding-top: 25px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.main-title-ar {
    font-size: 4.5rem;
    color: var(--primary-orange);
    font-weight: 900;
    margin-top: -30px; /* pulls arabic title up to visually overlap EN title */
    text-align: left;
    text-shadow: 0 4px 25px rgba(232,80,2,0.35);
}

.stats-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 40px;
}

.portfolio-badge-img img {
    height: 120px;
}

.contact-pill {
    padding: 12px 40px;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    white-space: nowrap;
    font-family: 'AdobeArabic', 'Cairo', sans-serif;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.4) 100%);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.9),
        inset 0 -1px 0 rgba(255,255,255,0.3),
        0 4px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}


/* ==========================================================================
   Section 2 — About
   ========================================================================== */

/* Glass card wrapping image + text */
.about-section .content-wrapper {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0;
    overflow: hidden;
    align-items: stretch;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
}

.about-section .image-box {
    flex: 0 0 35%;
    height: auto;
    overflow: hidden;
    display: block;
}

.about-section .full-person-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    max-height: none;
    max-width: none;
    display: block;
}

/* Reverses flex order so image sits on the left (LTR visual) in RTL layout */
.reverse-layout {
    flex-direction: row-reverse;
}

.about-text {
    flex: 1;
    padding: 30px 30px 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.small-tag {
    font-size: 1.2rem;
    display: inline-block;
}

.section-title {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 0px;
}

.bio {
    font-size: 1.2rem;
    line-height: 1.4;
    color: #ddd;
    margin-bottom: 5px;
    max-width: 800px;
}

/* --- Skills & Experience Grid --- */
.skills-xp-container {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    width: 100%;
}

.tools {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* flex-start = right side in RTL */
}

.tools .icons {
    display: flex;
    flex-direction: row;
    gap: 25px;
    margin-top: 20px;
}

.tool-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), filter 0.35s ease;
}
.tool-icon:hover {
    transform: scale(1.2) translateY(-4px);
    filter: drop-shadow(0 6px 12px rgba(232,80,2,0.5));
}

/* Warm gradient label badge for the tools heading */
.tools h3 {
    background: linear-gradient(to left, rgba(60, 5, 0, 0.9), rgba(180, 50, 0, 0.4));
    padding: 3px 40px;
    border-radius: 8px;
    display: inline-block;
    font-size: 1.1em;
}

/* ==========================================================================
   Section 3 — Services
   ========================================================================== */
.services-section {
    flex-direction: column;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    width: 100%;
    margin-bottom: 40px;
}

.service-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,100,0,0.08));
    border: 1px solid rgba(230, 81, 0, 0.25);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s ease, border-color 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.service-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--primary-orange);
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,100,0,0.18));
    box-shadow: 0 12px 40px rgba(232,80,2,0.18), 0 4px 24px rgba(0,0,0,0.4);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.service-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
}

.order-btn {
    display: inline-block;
    padding: 12px 50px;
    border: 1px solid #fff;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.3s;
    font-family: 'AdobeArabic', 'Cairo', sans-serif;
    margin-top: 35px;
}
.order-btn:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}


/* ==========================================================================
   Section 4 — Portfolio Slider
   ========================================================================== */
.portfolio-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1300px;
}

.portfolio-side-badge img {
    width: 200px;
}

.slider-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    padding-left: 50px;
}

.slide-display {
    width: 800px;
    height: 450px;
    background-color: #555;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.slide-placeholder {
    width: 100%;
    height: 100%;
}

.slider-arrow {
    background: none;
    border: none;
    color: #444;
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
}

.slider-arrow:hover {
    color: var(--primary-orange);
}


/* ==========================================================================
   Footer
   ========================================================================== */

/* Diagonal cut at the top-right via clip-path creates a design accent edge */
.main-footer {
    position: relative;
    background-color: #000;
    background-image:
        radial-gradient(circle at 90% 0%, rgba(232, 80, 2) 0%, rgba(0, 0, 0, 1) 90%),
        url('bg-image.jpg'); /* replace with actual background image path */
    padding: 0px 5%;
    margin-top: -50px;
    z-index: 10;
    clip-path: polygon(0% 25%, 88% 25%, 92% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 80px;
}

.footer-btn {
    position: relative;
    padding: 10px 40px;
    font-family: 'AdobeArabic', 'Cairo', sans-serif;
    font-weight: bold;
    font-size: 15px;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.4) 100%);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.9),
        inset 0 -1px 0 rgba(255,255,255,0.3),
        0 4px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #000;
}

.footer-logo-img {
    height: 40px;
}

/* --- Footer Bottom Bar (copyright / legal links) --- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 28px auto 0;
    padding: 16px 0 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal,
.footer-credit {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
}

.footer-legal:hover,
.footer-credit:hover {
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-legal a:hover {
    color: var(--primary-orange);
}
.footer-divider {
    margin: 0 6px;
    color: rgba(255, 255, 255, 0.2);
}


/* ==========================================================================
   Scroll Animation System
   — Elements marked with [data-anim] start invisible and animate in
     when they enter the viewport (driven by IntersectionObserver in JS).
   — data-anim=""          → fadeUp (default)
   — data-anim="fade"      → fadeIn (no movement)
   — data-anim="scale"     → scaleIn (subtle grow + fade, used for images)
   — data-anim="slide-right" / "slide-left" → horizontal entrance
   — data-anim-delay="1–7" → stagger offset in 0.1s increments
   ========================================================================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(32px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1);    }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0);    }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0);     }
}

[data-anim] { opacity: 0; }

[data-anim].anim-visible              { animation: fadeUp      0.70s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
[data-anim="fade"].anim-visible       { animation: fadeIn      0.80s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
[data-anim="scale"].anim-visible      { animation: scaleIn     0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
[data-anim="slide-right"].anim-visible { animation: slideInRight 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
[data-anim="slide-left"].anim-visible  { animation: slideInLeft  0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

[data-anim-delay="1"].anim-visible { animation-delay: 0.1s; }
[data-anim-delay="2"].anim-visible { animation-delay: 0.2s; }
[data-anim-delay="3"].anim-visible { animation-delay: 0.3s; }
[data-anim-delay="4"].anim-visible { animation-delay: 0.4s; }
[data-anim-delay="5"].anim-visible { animation-delay: 0.5s; }
[data-anim-delay="6"].anim-visible { animation-delay: 0.6s; }
[data-anim-delay="7"].anim-visible { animation-delay: 0.7s; }


/* ==========================================================================
   Mobile Navigation — Brush Button & Sidebar
   ========================================================================== */
@keyframes linkEnter {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0);    }
}
@keyframes ctaEnter {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* Brush icon: three tapering lines mimic a paintbrush silhouette */
.menu-brush-btn {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    cursor: pointer;
    padding: 8px 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.4) 100%);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 8px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.9),
        inset 0 -1px 0 rgba(255,255,255,0.3),
        0 4px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.brush-line {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: right center;
}

.brush-line:nth-child(1) { width: 20px; }
.brush-line:nth-child(2) { width: 14px; }
.brush-line:nth-child(3) { width: 8px;  }

/* Open state: morph brush lines into an × close icon */
.menu-brush-btn.open .brush-line:nth-child(1) {
    width: 22px;
    transform: rotate(45deg) translate(4px, 7px);
}
.menu-brush-btn.open .brush-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.menu-brush-btn.open .brush-line:nth-child(3) {
    width: 22px;
    transform: rotate(-45deg) translate(4px, -7px);
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 1999;
}
.mobile-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 75vw;
    max-width: 300px;
    height: 100dvh;
    z-index: 2000;
    transform: translateX(105%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: rgba(6, 2, 0, 0.97);
    background-image: radial-gradient(circle at 50% 0%, rgba(232, 80, 2, 0.35) 0%, transparent 60%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    padding: 28px 22px 40px;
}
.mobile-sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 45px;
}
.sidebar-logo { height: 32px; }

.sidebar-close {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s;
    flex-shrink: 0;
}
.sidebar-close:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.sidebar-nav a {
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    font-family: 'AdobeArabic', 'Cairo', sans-serif;
    font-size: 1.2rem;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    opacity: 0;
    transition: color 0.2s, padding-right 0.2s;
}
.sidebar-nav a:hover {
    color: var(--primary-orange);
    padding-right: 6px;
}

/* Stagger each nav link as the sidebar slides in */
.mobile-sidebar.open .sidebar-nav a {
    animation: linkEnter 0.35s ease forwards;
}
.mobile-sidebar.open .sidebar-nav a:nth-child(1) { animation-delay: 0.12s; }
.mobile-sidebar.open .sidebar-nav a:nth-child(2) { animation-delay: 0.18s; }
.mobile-sidebar.open .sidebar-nav a:nth-child(3) { animation-delay: 0.24s; }
.mobile-sidebar.open .sidebar-nav a:nth-child(4) { animation-delay: 0.30s; }
.mobile-sidebar.open .sidebar-nav a:nth-child(5) { animation-delay: 0.36s; }

.sidebar-cta-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 50px;
    color: #fff;
    font-family: 'AdobeArabic', 'Cairo', sans-serif;
    font-size: 1.05rem;
    margin-top: 25px;
    opacity: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.4) 100%);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.9),
        inset 0 -1px 0 rgba(255,255,255,0.3),
        0 4px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.3s, border-color 0.3s;
}
.sidebar-cta-btn:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}
.mobile-sidebar.open .sidebar-cta-btn {
    animation: ctaEnter 0.35s ease 0.42s forwards;
}


/* ==========================================================================
   Responsive — Breakpoint: 900px
   ========================================================================== */
@media (max-width: 900px) {

    /* --- Navbar --- */
    .navbar {
        justify-content: space-between;
        padding: 0 15px;
    }
    .nav-links-container { display: none; }
    .cta-btn             { display: none; }
    .logo                { display: block; }
    .logo-img            { height: 36px; }
    .menu-brush-btn      { display: flex; }

    /* --- Hero --- */
    .content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .reverse-layout {
        flex-direction: column;
    }
    .image-box {
        height: 300px;
        width: 100%;
        order: -1;
        justify-content: center;
    }
    .home-section .image-box {
        justify-content: center;
    }
    .english-greeting {
        font-size: 1.6rem;
        text-align: center;
        margin-bottom: 10px;
    }
    .main-title-en {
        font-size: 2.2rem;
        text-align: center;
    }
    .main-title-ar {
        font-size: 2.5rem;
        margin-top: -15px;
        text-align: center;
    }
    .stats-box {
        justify-content: center;
        gap: 20px;
    }
    .portfolio-badge-img img {
        height: 80px;
    }
    .contact-pill {
        font-size: 0.9rem;
        padding: 10px 24px;
    }

    /* --- About --- */
    .about-section .content-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .about-section .image-box {
        flex: 0 0 auto;
        height: 520px;
        width: 100%;
        display: flex;
        justify-content: center;
        overflow: hidden;
    }
    .about-section .full-person-img {
        object-position: top center;
    }
    .about-text {
        padding: 20px;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .bio {
        font-size: 1rem;
    }
    .small-tag {
        font-size: 1rem;
    }
    .skills-xp-container {
        flex-direction: column;
        gap: 20px;
    }

    /* --- Services: 2-column grid --- */
    .services-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .service-card {
        padding: 22px 16px;
        min-height: 130px;
    }
    .service-card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    .service-card p {
        font-size: 0.8rem;
    }

    /* --- Portfolio Slider --- */
    .portfolio-section {
        min-height: auto;
        padding: 80px 3% 50px;
    }
    .portfolio-wrapper {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    .slider-area {
        width: 100%;
        padding-left: 0;
        gap: 10px;
    }
    .slide-display {
        width: 100%;
        height: 56vw;
        max-height: 320px;
        border-radius: 14px;
    }
    .slider-arrow {
        font-size: 1.5rem;
        color: #fff;
    }

    /* --- Buttons --- */
    .order-btn  { font-size: 1rem; }
    .footer-btn { font-size: 1rem; }

    /* --- Footer --- */
    .main-footer {
        clip-path: none;
        border-radius: 20px 20px 0 0;
        padding: 40px 5% 20px;
        margin-top: 0;
    }
    .footer-content {
        flex-direction: column;
        gap: 32px;
        align-items: center;
        padding-top: 0;
    }
    /* Reorder footer blocks: logo → social → CTA */
    .footer-logo   { order: 1; }
    .social-icons  { order: 2; }
    .footer-cta    { order: 3; }

    .footer-bottom {
        flex-direction: column-reverse;
        gap: 8px;
        align-items: center;
        text-align: center;
        margin-top: 24px;
        padding-top: 14px;
    }
}

