/*
Theme Name: Algaladi
Theme URI: https://husamalgaladi.com
Author: Husam Algaladi
Author URI: https://husamalgaladi.com
Description: A modern, bilingual (English/Arabic) personal portfolio & consulting theme for Husam Algaladi. Features animated hero, services grid, portfolio, blog, and contact sections with full RTL support.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: algaladi
Tags: portfolio, blog, one-page, rtl-language, responsive-layout, custom-colors, featured-images
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --ink: #100F0E;
  --paper: #F5F0E8;
  --warm: #E8E0D0;
  --accent: #D4521A;
  --accent2: #2A6B7C;
  --accent3: #8B4F8A;
  --muted: #7A7065;
  --border: rgba(16,15,14,0.1);
  --border-strong: rgba(16,15,14,0.2);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cabinet Grotesk', sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  cursor: none;
}

body.show-ar {
  font-family: 'Noto Kufi Arabic', sans-serif;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s;
  mix-blend-mode: multiply;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .3s, height .3s;
  opacity: .5;
}

/* ============================================================
   LANGUAGE TOGGLE
   ============================================================ */
.lang-toggle {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  display: flex;
  background: var(--ink);
  border-radius: 100px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(16,15,14,.2);
}

.show-ar .lang-toggle {
  left: 32px;
  right: auto;
}

.lang-btn {
  padding: 11px 22px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  border: none;
  cursor: pointer;
  transition: background .25s, color .25s;
  background: transparent;
  color: rgba(245,240,232,.4);
}

.lang-btn.active {
  background: var(--accent);
  color: var(--paper);
}

#btn-en { font-family: 'Cabinet Grotesk', sans-serif; }

#btn-ar {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: .88rem;
  letter-spacing: 0;
}

/* ============================================================
   LANGUAGE VISIBILITY
   ============================================================ */
.en, .ar { display: none; }
.show-en .en { display: block; }
.show-ar .ar { display: block; }
span.en, span.ar { display: none; }
.show-en span.en, .show-ar span.ar { display: inline; }

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 60px;
  transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: rgba(245,240,232,.94);
  backdrop-filter: blur(16px);
  padding: 16px 60px;
  border-bottom-color: var(--border);
}

.nav-logo {
  font-weight: 900;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .04em;
  transition: color .2s;
}

.show-ar .nav-links a {
  letter-spacing: 0;
  font-size: .88rem;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  background: var(--ink) !important;
  color: var(--paper) !important;
  padding: 10px 22px !important;
  border-radius: 100px;
  font-weight: 700 !important;
  transition: background .2s !important;
}

.nav-cta:hover { background: var(--accent) !important; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 60px 80px;
  position: relative;
  overflow: hidden;
  gap: 60px;
}

.show-ar .hero { direction: rtl; }

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,82,26,.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  z-index: 0;
  pointer-events: none;
}

.hero-blob2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,107,124,.07) 0%, transparent 70%);
  bottom: 0;
  left: 30%;
  z-index: 0;
  pointer-events: none;
}

.hero-left, .hero-right { position: relative; z-index: 1; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--warm);
  border: 1px solid var(--border-strong);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp .7s .1s forwards;
}

.show-ar .hero-tag { letter-spacing: 0; font-size: .78rem; }

.hero-tag-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: .93;
  letter-spacing: -.04em;
  color: var(--ink);
  opacity: 0;
  animation: fadeUp .85s .25s forwards;
}

.show-ar .hero h1 { line-height: 1.15; letter-spacing: 0; }

.hero h1 .serif-word {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -.02em;
}

.show-ar .hero h1 .serif-word {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-style: normal;
  letter-spacing: 0;
}

.hero h1 .outlined {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  opacity: .3;
}

.hero-bio {
  margin-top: 28px;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 440px;
  opacity: 0;
  animation: fadeUp .85s .4s forwards;
}

.show-ar .hero-bio { line-height: 2; font-size: .95rem; }
.hero-bio strong { color: var(--ink); font-weight: 700; }
.hero-bio em { font-family: 'Instrument Serif', serif; font-style: italic; }

.show-ar .hero-bio em {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-style: normal;
  font-weight: 700;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  align-items: center;
  opacity: 0;
  animation: fadeUp .85s .55s forwards;
}

.show-ar .hero-actions { flex-direction: row-reverse; }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  padding: 15px 36px;
  border-radius: 100px;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .05em;
  text-decoration: none;
  transition: background .2s, transform .2s;
  display: inline-block;
}

.show-ar .btn-primary { letter-spacing: 0; font-size: .9rem; }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }

.btn-ghost {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .2s;
}

.btn-ghost:hover { color: var(--ink); }
.btn-ghost svg { transition: transform .3s; }
.btn-ghost:hover svg { transform: translateX(5px); }
.show-ar .btn-ghost svg { transform: scaleX(-1); }
.show-ar .btn-ghost:hover svg { transform: scaleX(-1) translateX(5px); }

/* ============================================================
   HERO VISUAL CARD
   ============================================================ */
.hero-visual-card {
  background: var(--warm);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp .9s .45s forwards;
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
}

.hvc-initials {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(16,15,14,.18);
  margin-bottom: 32px;
}

.show-ar .hvc-initials {
  font-family: 'Noto Kufi Arabic', sans-serif;
  letter-spacing: 0;
  font-size: 4.5rem;
  line-height: 1.25;
}

.hvc-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.show-ar .hvc-name { letter-spacing: 0; }
.hvc-role { font-size: .8rem; color: var(--muted); margin-top: 4px; margin-bottom: 32px; }
.hvc-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.hvc-chip {
  background: var(--paper);
  border: 1px solid var(--border-strong);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink);
  white-space: nowrap;
}

.show-ar .hvc-chip { letter-spacing: 0; font-size: .76rem; }
.hvc-emoji { position: absolute; top: 44px; right: 48px; font-size: 2rem; }
.show-ar .hvc-emoji { left: 48px; right: auto; }

.hvc-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hvc-stat-num {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--ink);
  line-height: 1;
}

.hvc-stat-num span { color: var(--accent); }
.hvc-stat-lbl { font-size: .65rem; font-weight: 500; color: var(--muted); letter-spacing: .06em; margin-top: 3px; }
.show-ar .hvc-stat-lbl { letter-spacing: 0; font-size: .74rem; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  overflow: hidden;
  background: var(--warm);
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}

.marquee-item {
  flex-shrink: 0;
  padding: 0 36px;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
}

.show-ar .marquee-item { letter-spacing: 0; font-size: .8rem; }

.marquee-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   SECTION DEFAULTS
   ============================================================ */
section { padding: 120px 60px; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 20px;
}

.show-ar .section-label { letter-spacing: 0; font-size: .74rem; }

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.03em;
  color: var(--ink);
}

.show-ar .section-title { line-height: 1.3; letter-spacing: 0; }

.section-title .it {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
}

.show-ar .section-title .it {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-style: normal;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about { background: var(--ink); color: var(--paper); }
.about .section-label { color: #D4521A; }
.about .section-label::before { background: #D4521A; }
.about .section-title { color: var(--paper); }

.about-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 80px;
  align-items: start;
}

.show-ar .about-inner { direction: rtl; }

.about-text p { font-size: .95rem; color: rgba(245,240,232,.6); line-height: 1.85; margin-bottom: 20px; }
.show-ar .about-text p { line-height: 2.1; font-size: .92rem; }
.about-text p strong { color: var(--paper); font-weight: 700; }
.about-text p em { font-family: 'Instrument Serif', serif; font-style: italic; color: rgba(245,240,232,.85); }

.show-ar .about-text p em {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-style: normal;
  font-weight: 700;
}

.about-quote {
  margin-top: 36px;
  padding: 28px 32px;
  background: rgba(255,255,255,.05);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
}

.show-ar .about-quote {
  border-left: none;
  border-right: 3px solid var(--accent);
  border-radius: 12px 0 0 12px;
}

.about-quote blockquote {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(245,240,232,.9);
  line-height: 1.7;
}

.show-ar .about-quote blockquote {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-style: normal;
  line-height: 2;
  font-size: 1rem;
}

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }

.stat-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 32px;
  transition: border-color .3s, background .3s;
}

.stat-card:hover {
  background: rgba(212,82,26,.08);
  border-color: rgba(212,82,26,.3);
}

.stat-number {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--paper);
  line-height: 1;
  letter-spacing: -.05em;
}

.stat-number span { color: var(--accent); }

.stat-label {
  margin-top: 6px;
  font-size: .7rem;
  color: rgba(245,240,232,.4);
  letter-spacing: .08em;
  font-weight: 500;
}

.show-ar .stat-label { letter-spacing: 0; font-size: .78rem; }

.about-personal {
  margin-top: 36px;
  padding: 28px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
}

.about-personal-title {
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(245,240,232,.35);
  font-weight: 600;
  margin-bottom: 14px;
}

.show-ar .about-personal-title { letter-spacing: 0; font-size: .74rem; }
.about-personal-items { display: flex; flex-direction: column; gap: 10px; }

.api { display: flex; align-items: center; gap: 12px; font-size: .82rem; color: rgba(245,240,232,.65); }
.show-ar .api { font-size: .88rem; line-height: 1.7; }
.api-icon { font-size: 1rem; flex-shrink: 0; }

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 60px;
}

.service-card {
  background: var(--warm);
  border: 1px solid var(--border);
  padding: 44px 36px;
  transition: background .3s, border-color .3s, transform .3s;
}

.service-card:hover {
  background: var(--paper);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.show-ar .service-card { text-align: right; }

.service-num {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: .6rem;
  letter-spacing: .22em;
  color: var(--accent);
  margin-bottom: 28px;
  font-weight: 700;
}

.service-icon { width: 38px; height: 38px; margin-bottom: 20px; color: var(--accent); }
.service-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -.02em; color: var(--ink); }
.show-ar .service-title { letter-spacing: 0; font-size: 1.1rem; }
.service-desc { font-size: .82rem; color: var(--muted); line-height: 1.75; }
.show-ar .service-desc { line-height: 2; font-size: .86rem; }

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
.projects { background: var(--warm); }

.projects-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3px;
  margin-top: 60px;
}

.show-ar .projects-grid { direction: rtl; }

.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 3px;
}

.project-card:hover .project-overlay { opacity: 1; }
.project-card:hover .project-img-bg { transform: scale(1.06); }

.project-img-bg {
  position: absolute;
  inset: 0;
  transition: transform .6s ease;
}

.project-card:nth-child(1) .project-img-bg { background: linear-gradient(135deg, rgba(212,82,26,.2) 0%, rgba(16,15,14,.6) 100%); }
.project-card:nth-child(2) .project-img-bg { background: linear-gradient(135deg, rgba(42,107,124,.25) 0%, rgba(16,15,14,.6) 100%); }
.project-card:nth-child(3) .project-img-bg { background: linear-gradient(135deg, rgba(139,79,138,.22) 0%, rgba(16,15,14,.6) 100%); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(212,82,26,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .4s;
}

.project-overlay-icon {
  width: 48px;
  height: 48px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  transform: scale(.8);
  transition: transform .4s;
}

.project-card:hover .project-overlay-icon { transform: scale(1); }

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  background: linear-gradient(to top, rgba(16,15,14,.92) 0%, transparent 100%);
  color: var(--paper);
}

.show-ar .project-info { text-align: right; }
.project-tag { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; font-weight: 700; }
.show-ar .project-tag { letter-spacing: 0; font-size: .7rem; }
.project-name { font-size: 1rem; font-weight: 800; color: var(--paper); }
.project-desc { margin-top: 5px; font-size: .76rem; color: rgba(245,240,232,.55); }
.projects-right { display: flex; flex-direction: column; gap: 3px; }
.projects-right .project-card { aspect-ratio: auto; flex: 1; }

/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 60px;
}

.blog-card {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 36px 30px;
  transition: border-color .3s, transform .3s;
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 3px;
}

.show-ar .blog-card { text-align: right; direction: rtl; }
.blog-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.blog-date { font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.show-ar .blog-date { letter-spacing: 0; font-size: .7rem; }
.blog-title { font-size: .98rem; font-weight: 800; line-height: 1.35; margin-bottom: 12px; letter-spacing: -.01em; color: var(--ink); }
.show-ar .blog-title { letter-spacing: 0; line-height: 1.6; font-size: .95rem; }
.blog-excerpt { font-size: .8rem; color: var(--muted); line-height: 1.75; }
.show-ar .blog-excerpt { line-height: 2; font-size: .82rem; }

.blog-read {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .68rem;
  color: var(--accent);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
}

.show-ar .blog-read { flex-direction: row-reverse; letter-spacing: 0; font-size: .76rem; }
.blog-read svg { transition: transform .3s; }
.blog-card:hover .blog-read svg { transform: translateX(5px); }
.show-ar .blog-read svg { transform: scaleX(-1); }
.show-ar .blog-card:hover .blog-read svg { transform: scaleX(-1) translateX(5px); }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact { background: var(--ink); color: var(--paper); }
.contact .section-label { color: var(--accent); }
.contact .section-label::before { background: var(--accent); }
.contact .section-title { color: var(--paper); }
.contact .section-title .it { color: rgba(245,240,232,.6); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.show-ar .contact-inner { direction: rtl; }
.contact-left p { font-size: .95rem; color: rgba(245,240,232,.55); line-height: 1.85; margin: 20px 0 36px; }
.show-ar .contact-left p { line-height: 2.1; }
.contact-socials { display: flex; gap: 12px; }

.social-link {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245,240,232,.45);
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}

.social-link:hover { border-color: var(--accent); color: var(--accent); background: rgba(212,82,26,.1); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(245,240,232,.35); font-weight: 600; }
.show-ar .form-group label { letter-spacing: 0; font-size: .74rem; text-align: right; }

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--paper);
  padding: 15px 18px;
  font-size: .88rem;
  outline: none;
  resize: none;
  transition: border-color .25s, background .25s;
  border-radius: 8px;
  font-family: inherit;
}

.show-ar .form-group input,
.show-ar .form-group textarea {
  text-align: right;
  direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(212,82,26,.06);
}

.form-group textarea { min-height: 120px; }

.form-submit {
  background: var(--accent);
  color: var(--paper);
  border: none;
  padding: 16px 36px;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s, transform .2s;
  border-radius: 100px;
  align-self: flex-start;
  font-family: inherit;
}

.show-ar .form-submit { letter-spacing: 0; font-size: .9rem; align-self: flex-end; }
.form-submit:hover { background: #b8421a; transform: translateY(-2px); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 40px 60px;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--paper);
}

.show-ar footer { direction: rtl; }
.footer-logo { font-weight: 900; font-size: .98rem; color: var(--paper); text-decoration: none; }
.footer-logo span { color: var(--accent); }
.footer-copy { font-size: .7rem; color: rgba(245,240,232,.35); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: .72rem; color: rgba(245,240,232,.35); text-decoration: none; transition: color .2s; font-weight: 500; }
.footer-links a:hover { color: var(--paper); }

/* ============================================================
   ANIMATIONS & REVEAL
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: .5; transform: scale(1); }
  50%       { opacity: 1; transform: scale(1.3); }
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }

/* ============================================================
   WORDPRESS CORE STYLES
   ============================================================ */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.screen-reader-text { position: absolute; left: -9999px; }

/* Single post styles */
.single-post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 140px 60px 80px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
}

.single-post-content h1,
.single-post-content h2,
.single-post-content h3 { font-weight: 900; letter-spacing: -.03em; margin: 2rem 0 1rem; }

.single-post-content p { margin-bottom: 1.5rem; color: var(--muted); }
.single-post-content a { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  nav { padding: 20px 28px; }
  nav.scrolled { padding: 14px 28px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding: 100px 28px 60px; gap: 40px; }
  .hero-right { display: none; }
  section { padding: 80px 28px; }
  .about-inner, .contact-inner, .projects-grid { grid-template-columns: 1fr; }
  .services-grid, .blog-grid { grid-template-columns: 1fr; }
  .projects-right { flex-direction: row; }
  footer { flex-direction: column; gap: 16px; text-align: center; padding: 36px 28px; }
  .footer-links { justify-content: center; }
  .lang-toggle { bottom: 20px; right: 20px; }
  .show-ar .lang-toggle { left: 20px; right: auto; }
}
