:root {
    --dark: #2D2D2D;
    --beige: #D7C9AE;
    --cream: #E9E0D2;
    --brown: #A68763;
    --glass-bg: rgba(233, 224, 210, 0.05);
    --glass-border: rgba(215, 201, 174, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', 'Tajawal', sans-serif;
    background-color: var(--dark);
    color: var(--cream);
}

html[lang="ar"] {
    direction: rtl;
    text-align: right;
}

body {
    overflow-x: hidden;
    position: relative;
}

/* Motif d'arrière-plan (Pattern) */
.pattern-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('pattern.svg');
    background-repeat: repeat;
    background-size: 400px;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
    transform: translateZ(0); /* Harware accel for iOS Safari */
    -webkit-transform: translateZ(0);
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    color: var(--beige);
}

p {
    line-height: 1.8;
    color: var(--cream);
    opacity: 0.85;
}

/* Shared Components & Layout */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--brown);
    border-radius: 2px;
}
html[lang="ar"] .section-title::after {
    left: auto;
    right: 0;
}

.text-center {
    text-align: center;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}
html[lang="ar"] .text-center .section-title::after {
    right: 50%;
    transform: translateX(50%);
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.primary-btn {
    background-color: var(--brown);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(166, 135, 99, 0.2);
}

.primary-btn:hover {
    background-color: var(--beige);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(215, 201, 174, 0.3);
}

/* Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(255, 255, 255, 0.05), transparent 40%);
    z-index: -1;
    transition: opacity 0.5s;
    opacity: 0;
    pointer-events: none;
}
.glass-card:hover::before {
    opacity: 1;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(166, 135, 99, 0.5);
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 16px 0;
    background: rgba(35, 35, 35, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(215, 201, 174, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

nav.scrolled {
    background: rgba(25, 25, 25, 0.95);
    padding: 12px 0;
    border-bottom-color: rgba(215, 201, 174, 0.25);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--beige);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--cream);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
    font-size: 1rem;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brown);
    transition: width 0.3s ease;
}
html[lang="ar"] .nav-links a::after {
    left: auto;
    right: 0;
}

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

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Lang Switcher */
.lang-switcher {
    display: flex;
    gap: 5px;
    margin-left: 20px;
}
html[lang="ar"] .lang-switcher {
    margin-left: 0;
    margin-right: 20px;
}

.lang-switcher button {
    background: transparent;
    color: var(--cream);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    padding: 4px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.lang-switcher button:hover, .lang-switcher button.active {
    background: var(--brown);
    color: var(--dark);
    border-color: var(--brown);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--beige);
    transition: 0.3s all ease;
    border-radius: 3px;
}

/* ═══ HERO SECTION ═══ */
/* ═══ HERO SECTION ═══ */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 100px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ── Bloc Logo de Marque Homogène & Agrandie ── */
.hero-brand-block {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 34px;
}

/* Aura lumineuse dorée noble et calme */
.hero-brand-aura {
    position: absolute;
    width: 360px;
    height: 250px;
    background: radial-gradient(ellipse at center, rgba(166, 135, 99, 0.24) 0%, rgba(215, 201, 174, 0.05) 50%, transparent 70%);
    filter: blur(28px);
    pointer-events: none;
    border-radius: 50%;
    z-index: 0;
}

/* Emblème agrandi de façon homogène */
.hero-brand-emblem {
    width: 295px;
    height: auto;
    max-height: 195px;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 12px 28px rgba(166, 135, 99, 0.45));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.hero-brand-block:hover .hero-brand-emblem {
    transform: translateY(-2px);
    filter: drop-shadow(0 14px 34px rgba(215, 201, 174, 0.65)) drop-shadow(0 0 16px rgba(166, 135, 99, 0.5));
}

/* Texte IMAGIN'ART en dessous de l'icône */
.hero-brand-text {
    height: 46px;
    width: auto;
    margin-top: 18px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 10px rgba(166, 135, 99, 0.4));
    transition: filter 0.3s ease;
}

.hero-brand-block:hover .hero-brand-text {
    filter: drop-shadow(0 2px 14px rgba(215, 201, 174, 0.55));
}

/* ── Nom Agrandi au Milieu ── */
.hero-center-name {
    font-size: clamp(2.5rem, 5.8vw, 4.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: 2px;
    display: inline-block;
}

/* ── Tag Line Sous le Nom ── */
.hero-tag {
    font-size: clamp(0.72rem, 1.3vw, 0.88rem);
    font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--brown);
    margin-bottom: 24px;
    opacity: 0.92;
}

.hero-firstname {
    color: var(--cream);
    background: linear-gradient(135deg, var(--cream) 0%, var(--beige) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lastname {
    color: var(--beige);
    background: linear-gradient(135deg, var(--beige) 0%, var(--brown) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Séparateur Doré */
.hero-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--brown), transparent);
    margin: 0 auto 28px;
    border-radius: 2px;
}

/* ── Bouton Après le Nom ── */
.hero-cta-box {
    margin-bottom: 34px;
}

.hero-main-btn {
    padding: 16px 42px;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 20px rgba(166, 135, 99, 0.35);
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-main-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 30px rgba(215, 201, 174, 0.45);
}

/* ── Slide-up ── */
.hero-typewriter-p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    margin-bottom: 36px;
    color: var(--cream);
    font-weight: 400;
    min-height: 1.6em;
    opacity: 0.92;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
}

.typewriter-prefix {
    display: inline-block;
    opacity: 0.75;
    margin-right: 6px;
}

/* ── Chips Stats ── */
.hero-chips {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 34px;
}

.hero-chip {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.chip-num {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--brown);
}

.chip-label {
    font-size: 0.76rem;
    color: var(--cream);
    opacity: 0.58;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-chip-sep {
    color: rgba(166, 135, 99, 0.35);
    font-size: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.3rem;
    color: var(--brown);
    opacity: 0.4;
    animation: bounce 2s infinite ease-in-out;
    z-index: 1;
}


/* Stats Band */
.stats-band {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px 40px;
    background: rgba(166, 135, 99, 0.06);
    border-top: 1px solid rgba(166, 135, 99, 0.14);
    border-bottom: 1px solid rgba(166, 135, 99, 0.14);
}
.stat-item { display: flex; align-items: baseline; gap: 6px; }
.stat-num  { font-size: 1.45rem; font-weight: 800; color: var(--brown); }
.stat-label { font-size: 0.76rem; color: var(--cream); opacity: 0.65; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }
.stat-sep  { color: rgba(166,135,99,0.35); font-size: 1.1rem; }

/* Animations */
.fade-in        { opacity: 0; transform: translateY(30px); animation: fadeInUp 1s forwards; }
.fade-in-delay  { opacity: 0; transform: translateY(30px); animation: fadeInUp 1s 0.2s forwards; }
.fade-in-delay-2 { opacity: 0; transform: translateY(30px); animation: fadeInUp 1s 0.4s forwards; }
.fade-in-delay-3 { opacity: 0; transform: translateY(30px); animation: fadeInUp 1s 0.6s forwards; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50%       { transform: translate(-50%, 15px); }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.core-disciplines h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.disciplines-list {
    list-style: none;
    margin-top: 10px;
}

.discipline-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 1.1rem;
    color: var(--cream);
    transition: all 0.3s ease;
}

.discipline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.discipline-item:first-child {
    padding-top: 0;
}

.discipline-item:hover {
    color: var(--beige);
    transform: translateX(10px);
}
html[lang="ar"] .discipline-item:hover {
    transform: translateX(-10px);
}

.discipline-icon {
    color: var(--brown);
    font-size: 1.3rem;
}

.signature-font {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--beige);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
}
html[lang="ar"] .signature-font {
    letter-spacing: 0;
    font-size: 1.1em;
}

/* Story Section */
.story-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.25rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 24px;
    justify-content: center;
    max-width: 920px;
    margin: 0 auto;
}

.skill-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 26px 18px;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.skill-item:hover {
    background: rgba(166, 135, 99, 0.12);
    transform: translateY(-8px);
    border-color: var(--beige);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.skill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.software-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.skill-item:hover .software-logo {
    transform: scale(1.12);
    filter: drop-shadow(0 6px 16px rgba(166, 135, 99, 0.45));
}

.skill-name {
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.skill-sub {
    font-size: 0.78rem;
    color: var(--brown);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.ai-mention {
    margin-top: 50px;
    font-size: 1.05rem;
    color: var(--beige);
    opacity: 0.8;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.empty-projects {
    text-align: center;
    color: var(--beige);
    opacity: 0.6;
    padding: 50px;
    font-style: italic;
    grid-column: 1 / -1;
    font-size: 1.2rem;
    border: 2px dashed var(--glass-border);
    border-radius: 20px;
}

.project-card {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--beige);
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 25px 25px;
    background: linear-gradient(to top, rgba(45,45,45,0.95), transparent);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-info {
    transform: translateY(0);
}

.project-title {
    font-size: 1.4rem;
    color: var(--beige);
    margin-bottom: 8px;
}

.project-category {
    font-size: 0.95rem;
    color: var(--brown);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Section */
.contact-card {
    max-width: 650px;
    margin: 0 auto;
    padding: 4rem;
}

.form-group {
    margin-bottom: 25px;
}

input, textarea {
    width: 100%;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--cream);
    font-family: inherit;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--brown);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(166, 135, 99, 0.1);
}

.submit-btn {
    width: 100%;
    font-size: 1.15rem;
    padding: 18px;
    margin-top: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid var(--glass-border);
}

footer p {
    font-size: 0.95rem;
    opacity: 0.7;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.social-links a {
    color: var(--beige);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-links a svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    background: var(--brown);
    color: var(--dark);
    transform: translateY(-5px);
    border-color: var(--brown);
}

.social-links a:hover svg {
    transform: scale(1.1);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--brown);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

html[lang="ar"] .back-to-top {
    right: auto;
    left: 30px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--beige);
    transform: translateY(-5px);
}

.back-to-top svg {
    width: 25px;
    height: 25px;
}

/* Slide-up Words (remplace typewriter) */
.slide-words-wrap {
    display: inline-flex;
    align-items: baseline;
    overflow: hidden;
    vertical-align: baseline;
    height: 1.35em;
    line-height: 1.35em;
}

.slide-word {
    display: inline-block;
    color: var(--beige);
    font-weight: 600;
    line-height: 1.35em;
    opacity: 0;
    transform: translateY(20px);
    transition: none;
}

.slide-word.slide-enter {
    animation: slideWordIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.slide-word.slide-exit {
    animation: slideWordOut 0.35s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes slideWordIn {
    0%   { opacity: 0; transform: translateY(18px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideWordOut {
    0%   { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-16px); }
}

/* Manifeste d'Atelier */
.about-bio {
    margin-bottom: 40px;
    font-size: 1.05rem;
}

/* Bloc unique Ce que je conçois */
.scope-card {
    padding: 3rem;
    margin-bottom: 36px;
}

.scope-card-title {
    font-size: 1.6rem;
    color: var(--beige);
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 12px;
}

.scope-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--brown);
    border-radius: 2px;
}

.scope-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.manifeste-philo {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.15rem;
    text-align: center;
}

/* Projects Placeholder */
.projects-placeholder {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
}

.projects-placeholder-inner {
    border: 1.5px dashed rgba(166, 135, 99, 0.45);
    border-radius: 24px;
    padding: 60px 48px;
    text-align: center;
    max-width: 560px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.placeholder-icon {
    width: 56px;
    height: 56px;
    color: var(--brown);
    opacity: 0.65;
    margin-bottom: 8px;
}

.placeholder-title {
    font-size: 1.35rem;
    color: var(--beige);
    font-weight: 700;
    margin: 0;
}

.placeholder-sub {
    font-size: 0.95rem;
    color: var(--cream);
    opacity: 0.6;
    max-width: 400px;
    margin: 0;
    line-height: 1.7;
}

/* Quotes / Expertise Marquee */
.marquee-container {
    width: 100%;
    max-width: 1100px;
    margin: 28px auto 6px;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-content {
    display: inline-flex;
    flex-wrap: nowrap;
    width: max-content;
    align-items: center;
    animation: marquee 30s linear infinite;
    will-change: transform;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.expertise-tag {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--beige);
    white-space: nowrap;
    font-family: 'Outfit', sans-serif;
}

.expertise-sep {
    color: var(--brown);
    margin: 0 32px;
    font-size: 0.9rem;
    opacity: 0.8;
    flex-shrink: 0;
}

html[lang="ar"] .marquee-content {
    animation-direction: reverse;
}


/* Tooltips */
[data-tooltip] {
    position: relative;
    cursor: none;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(20, 18, 16, 0.95);
    color: var(--cream);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    pointer-events: none;
    z-index: 100;
}
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Responsive Variables */
@media (max-width: 1024px) {
    .scope-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 768px) {
    body, html {
        overflow-x: hidden;
    }
    
    .section-container { padding: 60px 16px; }
    .glass-card { padding: 1.5rem; }
    .contact-card { padding: 1.5rem; }
    
    .hero-section {
        min-height: auto;
        padding: 95px 16px 55px;
    }

    .hero-logo-interactive-wrap {
        width: 195px;
        height: 145px;
        margin-bottom: 16px;
    }

    .hero-brand-emblem {
        width: 190px;
        max-height: 125px;
    }

    .hero-brand-text {
        height: 30px;
        margin-top: 10px;
    }

    .hero-brand-aura {
        width: 240px;
        height: 170px;
    }

    .hero-tag {
        font-size: 0.68rem;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }

    .hero-center-name {
        font-size: clamp(1.9rem, 8vw, 2.7rem);
        margin-bottom: 16px;
        letter-spacing: 1px;
    }

    .hero-divider {
        margin: 0 auto 18px;
    }

    .hero-cta-box {
        margin-bottom: 22px;
    }

    .hero-main-btn {
        padding: 13px 30px;
        font-size: 0.95rem;
    }

    .hero-typewriter-p {
        font-size: 0.95rem;
        margin-bottom: 24px;
        text-align: center;
    }

    .hero-chips {
        justify-content: center;
        gap: 10px;
    }

    .chip-num {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
    
    .hamburger { display: flex; }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(30, 30, 30, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        padding: 24px 0;
        gap: 20px;
        clip-path: circle(0% at top right);
        transition: all 0.4s ease-in-out;
        border-bottom: 1px solid var(--brown);
    }
    
    .nav-links.active {
        clip-path: circle(150% at top right);
    }

    .hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    
    /* Mobile Size Fixes */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .skill-item.glass-card {
        padding: 14px 8px;
        gap: 8px;
    }
    .skill-name {
        font-size: 0.82rem;
    }
    
    .marquee-container {
        width: 100%;
        margin: 20px 0 40px;
    }

    .expertise-tag {
        font-size: 0.72rem;
        letter-spacing: 2px;
    }

    .expertise-sep {
        margin: 0 18px;
    }

    .scope-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .scope-card {
        padding: 2rem 1.4rem;
    }

    .projects-placeholder-inner {
        padding: 40px 24px;
    }
    
    .pattern-bg { opacity: 0.08; }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-num { font-size: 1.2rem; }
    .stat-label { font-size: 0.68rem; }
}


