/* ============================================================
   PORTFOLIO STYLESHEET
   ============================================================ */

:root {
  --orange: #FF4D00;
  --orange2: #FF7A00;
  --dark: #0a0a0a;
  --dark2: #111111;
  --dark3: #1a1a1a;
  --white: #ffffff;
  --gray: #888;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--dark);
  color: var(--white);
  font-family: 'Cairo', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* ── CURSOR ───────────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 12px; height: 12px;
  background: var(--orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}
.cursor-follow {
  position: fixed;
  width: 40px; height: 40px;
  border: 1.5px solid var(--orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.18s ease;
  mix-blend-mode: difference;
}

/* ── NAV ──────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 60px;
  background: transparent;
  transition: background 0.4s;
}
nav.scrolled { background: rgba(10,10,10,0.95); backdrop-filter: blur(12px); }
.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 3px;
  color: var(--white);
}
.logo span { color: var(--orange); }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.btn-contact {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}
.btn-contact:hover { background: var(--orange2); transform: scale(1.05); }
.btn-contact .arrow {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, #cc3300 0%, #aa2200 30%, #1a0800 70%, #0a0a0a 100%);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  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)'/%3E%3C/svg%3E");
  z-index: 1;
}

/* Hero person image — المكان يتحكم فيه config.js */
.hero-person {
  position: absolute;
  z-index: 3;
  opacity: 0;
  animation: fadeUp 1s 0.4s forwards;
  pointer-events: none;
  object-fit: contain;
  object-position: bottom center;
  /* يذيب الحواف من كل الاتجاهات */
  mask-image: radial-gradient(ellipse 80% 90% at 50% 60%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 60%, black 40%, transparent 100%);
  mix-blend-mode: lighten;
}

/* Floating shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}
.shape1 { width: 300px; height: 300px; background: var(--orange); top: 10%; right: 20%; animation-delay: 0s; }
.shape2 { width: 200px; height: 200px; background: #ff7700; bottom: 20%; left: 15%; animation-delay: 2s; }
.shape3 { width: 150px; height: 150px; background: #ff2200; top: 50%; left: 40%; animation-delay: 4s; }
@keyframes float {
  0%,100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 100px 60px 60px;
  width: 100%;
}
.hero-top-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.hero-left { flex: 1 1 auto; }
.hero-right {
  flex: 0 0 280px;
  padding-bottom: 8px;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}
.hero-right h3 { font-size: 19px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.hero-right p { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.8; }
.hero-tag {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  margin-bottom: 10px;
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(80px, 11vw, 150px);
  line-height: 0.9;
  letter-spacing: -2px;
  margin-bottom: 0;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}
.hero-title .line2 { color: var(--orange); }
.hero-services {
  display: flex;
  gap: 50px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  opacity: 0;
  animation: fadeUp 0.8s 1s forwards;
}
.service-item .num {
  font-size: 11px;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.service-item .label { font-size: 13px; color: rgba(255,255,255,0.8); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── BRANDS BAR ───────────────────────────────────────────── */
.brands-bar {
  background: var(--dark2);
  padding: 30px 60px;
  display: flex;
  align-items: center;
  gap: 60px;
  border-top: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}
.brands-label { font-size: 12px; color: var(--gray); white-space: nowrap; min-width: 120px; line-height: 1.5; }
.brands-scroll { display: flex; gap: 50px; animation: scrollBrands 18s linear infinite; }
.brand-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.5);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: color 0.3s;
}
.brand-item:hover { color: var(--white); }
.brand-icon {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
@keyframes scrollBrands {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── ABOUT ────────────────────────────────────────────────── */
.about {
  padding: 120px 60px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.section-tag {
  font-size: 12px;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.about-left h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(50px, 6vw, 80px);
  line-height: 1;
  letter-spacing: 1px;
}
.about-right p { font-size: 18px; font-weight: 700; line-height: 1.7; margin-bottom: 20px; }
.about-right .sub { font-size: 13px; color: var(--gray); font-weight: 400; }
.btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--orange);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: none;
  transition: all 0.3s;
  margin-top: 20px;
}
.btn-orange:hover { background: var(--orange2); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,77,0,0.4); }
.btn-orange .arrow { width:30px; height:30px; background:rgba(255,255,255,0.2); border-radius:50%; display:flex; align-items:center; justify-content:center; }

/* ── STATS ────────────────────────────────────────────────── */
.stats {
  background: var(--dark2);
  padding: 80px 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.stat-item { text-align: center; }
.stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 72px; color: var(--orange); line-height: 1; }
.stat-label { font-size: 14px; color: var(--gray); margin-top: 8px; }

/* ── WORK ─────────────────────────────────────────────────── */
.work { padding: 40px 60px 120px; max-width: 1400px; margin: 0 auto; }
.work-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; }
.work-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(50px, 6vw, 80px); line-height: 1; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: none;
  background: var(--dark3);
}
.work-card:first-child { grid-row: span 2; aspect-ratio: auto; }
.work-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: grayscale(100%);
}
.work-card:hover .work-card-bg { transform: scale(1.07); filter: grayscale(30%); }
.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  transition: opacity 0.3s;
}
.work-card:hover .work-card-overlay { opacity: 0.8; }
.work-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 30px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.work-card:hover .work-card-info { transform: translateY(0); opacity: 1; }
.work-card:first-child .work-card-info { transform: translateY(0); opacity: 1; }
.work-card-cat { font-size: 11px; color: var(--orange); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.work-card-title { font-size: 22px; font-weight: 700; }
.work-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 80px; opacity: 0.15; }

/* ── SERVICES ─────────────────────────────────────────────── */
.services { padding: 120px 60px; max-width: 1200px; margin: 0 auto; }
.services-header { text-align: center; margin-bottom: 80px; }
.services-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(50px, 7vw, 90px); line-height: 1; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.service-card {
  background: var(--dark2);
  padding: 50px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--orange);
  transition: height 0.4s;
}
.service-card:hover { background: var(--dark3); }
.service-card:hover::before { height: 100%; }
.service-num { font-family: 'Bebas Neue', sans-serif; font-size: 60px; color: rgba(255,255,255,0.05); position: absolute; top: 20px; right: 30px; line-height: 1; }
.service-icon { width: 56px; height: 56px; background: rgba(255,77,0,0.1); border: 1px solid rgba(255,77,0,0.3); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 24px; }
.service-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.service-card p { font-size: 14px; color: var(--gray); line-height: 1.8; }

/* ── TESTIMONIAL ──────────────────────────────────────────── */
.testimonial { padding: 80px 60px; background: var(--dark2); text-align: center; position: relative; overflow: hidden; }
.testimonial::before { content: '"'; font-family: 'Bebas Neue', sans-serif; font-size: 300px; color: rgba(255,77,0,0.05); position: absolute; top: -60px; left: 50%; transform: translateX(-50%); line-height: 1; }
.testimonial blockquote { font-size: clamp(22px, 3vw, 36px); font-weight: 700; line-height: 1.5; max-width: 800px; margin: 0 auto 30px; position: relative; z-index: 1; }
.testimonial cite { font-size: 14px; color: var(--orange); font-style: normal; font-weight: 700; letter-spacing: 2px; }

/* ── CONTACT ──────────────────────────────────────────────── */
.contact { padding: 140px 60px; text-align: center; position: relative; overflow: hidden; }
.contact::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(255,77,0,0.08) 0%, transparent 70%); }
.contact-tag { position: relative; z-index: 1; }
.contact h2 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(60px, 10vw, 140px); line-height: 0.9; position: relative; z-index: 1; }
.contact h2 span { color: var(--orange); }
.contact p { font-size: 16px; color: var(--gray); max-width: 500px; margin: 30px auto; position: relative; z-index: 1; }
.contact-email { font-family: 'Bebas Neue', sans-serif; font-size: clamp(20px, 3vw, 40px); color: var(--white); text-decoration: none; letter-spacing: 2px; position: relative; z-index: 1; transition: color 0.3s; display: block; margin-bottom: 50px; }
.contact-email:hover { color: var(--orange); }

/* ── FOOTER ───────────────────────────────────────────────── */
footer { background: var(--dark2); padding: 40px 60px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.05); }
footer .logo { font-size: 22px; }
footer p { font-size: 12px; color: var(--gray); }
.social-links { display: flex; gap: 16px; }
.social-link { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gray); text-decoration: none; font-size: 16px; transition: all 0.3s; }
.social-link:hover { border-color: var(--orange); color: var(--orange); }

/* ── SCROLL INDICATOR ─────────────────────────────────────── */
.scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 10; opacity: 0; animation: fadeIn 1s 1.5s forwards; }
.scroll-line { width: 1px; height: 50px; background: linear-gradient(to bottom, var(--orange), transparent); animation: scrollDown 1.5s ease-in-out infinite; }
.scroll-text { font-size: 10px; color: var(--gray); letter-spacing: 2px; }
@keyframes scrollDown { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ── ANIMATIONS ───────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(60px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.orange-line { display: inline-block; position: relative; }
.orange-line::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 3px; background: var(--orange); }

/* ── HAMBURGER ────────────────────────────────────────────── */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; z-index: 200; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; position: fixed; inset: 0; background: rgba(10,10,10,0.98); backdrop-filter: blur(16px); z-index: 150; flex-direction: column; align-items: center; justify-content: center; gap: 40px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: 'Bebas Neue', sans-serif; font-size: 48px; color: var(--white); text-decoration: none; letter-spacing: 3px; transition: color 0.3s; }
.mobile-menu a:hover { color: var(--orange); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* TABLET */
@media (max-width: 1024px) {
  nav { padding: 20px 30px; }
  .hero-content { padding: 100px 30px 60px; }
  .about { padding: 80px 30px; gap: 50px; }
  .work { padding: 40px 30px 80px; }
  .services { padding: 80px 30px; }
  .stats { padding: 60px 30px; }
  .brands-bar { padding: 24px 30px; gap: 30px; }
  .contact { padding: 100px 30px; }
  footer { padding: 30px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card:first-child { grid-row: span 1; aspect-ratio: 3/4; }
}

/* MOBILE */
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-follow { display: none; }
  nav { padding: 18px 20px; }
  .nav-links { display: none; }
  .btn-contact { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: 100svh; }
  .hero-content { padding: 90px 20px 50px; }
  .hero-top-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-right { flex: unset; width: 100%; }
  .hero-right h3 { font-size: 17px; }
  /* hero-person mobile — يتحكم فيه config.js */
  .hero-title { font-size: clamp(70px, 20vw, 100px); letter-spacing: -1px; }
  .hero-services { flex-wrap: wrap; gap: 16px; margin-top: 28px; padding-top: 22px; }
  .service-item { flex: 1 1 40%; }
  .service-item .label { font-size: 12px; }
  .brands-bar { padding: 20px; gap: 16px; }
  .brands-label { display: none; }
  .about { grid-template-columns: 1fr; gap: 30px; padding: 70px 20px; }
  .about-left h2 { font-size: clamp(50px, 14vw, 70px); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 0; padding: 0; }
  .stat-item { padding: 40px 20px; border: 1px solid rgba(255,255,255,0.05); }
  .stat-num { font-size: 56px; }
  .work { padding: 50px 20px 70px; }
  .work-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .work-title { font-size: clamp(44px, 12vw, 60px); }
  .work-grid { grid-template-columns: 1fr; gap: 16px; }
  .work-card:first-child { grid-row: span 1; aspect-ratio: 4/3; }
  .work-card { aspect-ratio: 4/3; }
  .work-card-info { transform: translateY(0); opacity: 1; }
  .services { padding: 60px 20px; }
  .services-title { font-size: clamp(44px, 13vw, 70px); }
  .services-grid { grid-template-columns: 1fr; gap: 2px; }
  .service-card { padding: 36px 24px; }
  .testimonial { padding: 60px 24px; }
  .testimonial blockquote { font-size: clamp(18px, 5vw, 24px); }
  .testimonial::before { font-size: 180px; top: -30px; }
  .contact { padding: 80px 20px; }
  .contact h2 { font-size: clamp(52px, 16vw, 90px); }
  .contact-email { font-size: clamp(14px, 4vw, 20px); word-break: break-all; }
  footer { flex-direction: column; gap: 20px; text-align: center; padding: 30px 20px; }
}

/* SMALL MOBILE */
@media (max-width: 400px) {
  .hero-title { font-size: 65px; }
  .about-left h2 { font-size: 50px; }
  .service-item { flex: 1 1 100%; }
}

#hero-photo {
  z-index: 10 !important;
  position: absolute !important;
  mix-blend-mode: normal !important;
} 