@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* إيقاف الوضع الداكن نهائيًا */
:root, html, body { color-scheme: light; }

:root{
  --primary-color: #bb7000;
  --primary-hover: #a86600;
  --primary-light: #d88a00;
  --text-color: #000000;
  --text-secondary: #4d4d4d;
  --border-color: #7e7e7e;
  --bg-light: #ffffff;
  --bg-card: #f8f8f8;
  --bg-overlay: rgba(255, 255, 255, 0.95);
  --transition-speed: .35s;
  --box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  --box-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.18);
}

/* ===== Reset & Base ===== */
*{margin:0;padding:0;box-sizing:border-box}
html{font-size:63.5%;scroll-behavior:smooth}

/* Page Load Animation */
@keyframes fadeInUp{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes slideInLeft{from{opacity:0;transform:translateX(-50px)}to{opacity:1;transform:translateX(0)}}
@keyframes slideInRight{from{opacity:0;transform:translateX(50px)}to{opacity:1;transform:translateX(0)}}

body{
  background-image:url("images/background.jpg");
  background-size:cover;
  background-repeat:no-repeat;
  background-position:center;
  background-attachment:fixed;
  font-family:"Roboto",sans-serif;
  color:var(--text-color);
  min-height:100vh;
  line-height:1.65;
  backdrop-filter: brightness(0.97);
}

.container{
  margin:0 auto;
  padding:0 2rem;
  width:100%;
}

/* ===== Header - Full Width ===== */
header{
  padding:2.5rem 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border-radius: 2rem;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 10px 20px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: fadeIn 0.6s ease-out;
  position: relative;
  width: 100%;
  max-width: 100%;
}
header::before{
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  border-radius: 2rem;
  z-index: -1;
  filter: blur(10px);
}

/* ===== Logo ===== */
.left-section img{
  width:14rem;
  border:3px solid rgba(255, 255, 255, 0.3);
  border-radius:1.5rem;
  padding:.8rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow:0 6px 20px rgba(0, 0, 0, 0.15);
  transition:all var(--transition-speed) ease;
  animation: slideInLeft 0.8s ease-out;
  transform-style: preserve-3d;
}
.left-section img:hover{
  transform:scale(1.05) translateY(-5px) translateZ(10px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3), 
    0 10px 25px rgba(187, 112, 0, 0.4);
  border-color: var(--primary-color);
  filter: brightness(1.08) contrast(1.05);
}

/* ===== Navigation ===== */
.right-section{display:flex;gap:1rem;flex-wrap:wrap}
.right-section a{
  color:#000;font-size:1.8rem;font-weight:500;text-decoration:none;padding:1.2rem 2.5rem;border-radius:1.2rem;
  position:relative;overflow:hidden;background:rgba(255,255,255,.75);backdrop-filter:blur(8px);
  border:2px solid rgba(0,0,0,.08);transition:all var(--transition-speed) ease;text-shadow:none;
  animation:slideInRight .8s ease-out backwards;
  box-shadow:0 6px 15px rgba(0,0,0,.1),0 3px 8px rgba(0,0,0,.08),inset 0 1px 0 rgba(255,255,255,.8);
}
.right-section a:nth-child(1){animation-delay:.1s}
.right-section a:nth-child(2){animation-delay:.2s}
.right-section a:nth-child(3){animation-delay:.3s}
.right-section a:nth-child(4){animation-delay:.4s}
.right-section a::before{
  content:'';position:absolute;left:0;bottom:0;width:100%;height:100%;
  background:linear-gradient(135deg,var(--primary-color),var(--primary-light));
  transform:scaleX(0);transform-origin:left;transition:transform var(--transition-speed) ease;z-index:-1;
}
.right-section a:hover::before,
.right-section a.active::before{transform:scaleX(1)}
.right-section a:hover,
.right-section a.active{
  transform:translateY(-4px);
  box-shadow:0 12px 30px rgba(0,0,0,.2),0 6px 15px rgba(187,112,0,.3),inset 0 1px 0 rgba(255,255,255,.5);
  border-color:var(--primary-color);color:#fff;
}
.right-section a:focus{outline:3px solid var(--primary-color);outline-offset:3px}
.right-section a:active{
  transform:translateY(-2px);box-shadow:0 6px 15px rgba(0,0,0,.15),inset 0 2px 4px rgba(0,0,0,.15);
}

@media (max-width:550px){
  header{flex-direction:column;align-items:center}
  .right-section{
    display:grid;grid-template-columns:repeat(2,1fr);gap:2rem;width:100%;margin-top:2rem
  }
  .right-section a{width:100%;text-align:center;font-size:200%}
}

/* ===== HR Divider ===== */
hr {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  border: none;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
}

/* ===== Generic Shell ===== */
.shell{width:100%;max-width:1200px;margin:0 auto;padding:0 2rem}

/* ===== Hero Section ===== */
.hero{position:relative;isolation:isolate;padding:2rem 0}
.hero .overlay{
  position:absolute;inset:0;
  background:rgba(255,255,255,.15);
  backdrop-filter:blur(2px);
  z-index:0;
}
.hero-grid{
  position:relative;z-index:1;
  display:grid;grid-template-columns:1.15fr .85fr;gap:3rem;
  align-items:stretch;padding:4rem 0 5rem;
}
.hero-text{
  background:rgba(255, 255, 255, 0.342);
  backdrop-filter:blur(8px) saturate(120%);
  border:1px solid var(--border-color);
  border-radius:2rem;
  padding:3rem;
  box-shadow:var(--box-shadow);
  animation:fadeIn .8s ease both;
  transition:all var(--transition-speed) ease;
  transform-style: preserve-3d;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.hero-text:hover{
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.3),
    0 15px 35px rgba(187, 112, 0, 0.25);
  transform: translateY(-10px) translateZ(20px);
  border-color: var(--primary-color);
}

.eyebrow{
  font-size:1.6rem;
  font-weight:500;
  letter-spacing:.08rem;
  margin-bottom:1rem;
  color:var(--primary-color);
}
.title{
  font-size:clamp(3.6rem,5vw,5rem);
  font-weight:800;
  line-height:1.1;
  margin-bottom:1.2rem;
  color:#111;
}
.title span{color:var(--primary-color)}
.lead{
  font-size:1.8rem;
  line-height:1.7;
  margin-bottom:1rem;
  color:var(--text-secondary);
}

/* ===== CTA Row ===== */
.cta-row{
  display:flex;
  align-items:center;
  gap:1.6rem;
  margin-top:1.6rem;
  flex-wrap:wrap;
}
.btn{
  display:inline-flex;
  align-items:center;
  gap:.8rem;
  text-decoration:none;
  border-radius:1rem;
  transition:all var(--transition-speed) ease;
  transform-style: preserve-3d;
}
.btn-primary{
  background:linear-gradient(135deg,var(--primary-color),var(--primary-light));
  color:#fff;
  font-size:1.8rem;
  font-weight:700;
  padding:1.2rem 2.2rem;
  box-shadow:0 6px 15px rgba(187,112,0,.3),0 3px 8px rgba(0,0,0,.15);
}
.btn-primary:hover{
  background:linear-gradient(135deg,var(--primary-light),var(--primary-hover));
  transform:translateY(-4px) translateZ(8px);
  box-shadow:0 12px 30px rgba(187,112,0,.5),0 6px 15px rgba(0,0,0,.25);
}
.btn-primary:active{transform:translateY(-2px) translateZ(4px)}

/* ===== Social Icons ===== */
.social-inline{
  display:flex;
  gap:1.2rem;
}
.social-inline a{
  width:4.2rem;
  height:4.2rem;
  border-radius:50%;
  background:#eee;
  border:1px solid var(--border-color);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:2rem;
  color:#222;
  transition:all var(--transition-speed) ease;
  box-shadow:0 3px 8px rgba(0,0,0,.12);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}
.social-inline a::before{
  content:'';
  position:absolute;
  inset:0;
  border-radius:50%;
  background:linear-gradient(135deg,var(--primary-color),var(--primary-light));
  opacity:0;
  transition:opacity var(--transition-speed) ease;
  z-index:-1;
}
.social-inline a:hover::before{opacity:1}
.social-inline a:hover{
  color:#fff;
  border-color:var(--primary-color);
  transform:translateY(-8px) translateZ(12px) rotate(360deg);
  box-shadow:0 15px 35px rgba(187,112,0,.4),0 8px 20px rgba(0,0,0,.2);
}

/* ===== Badges ===== */
.badges {
  display:flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  list-style: none;
}
.badges li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, #443E3E, #2a2626);
  padding: 0.8rem 1.4rem;
  border-radius: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-speed) ease;
  transform-style: preserve-3d;
}
.badges li i {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--primary-color);
}
.badges li:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  transform: translateY(-5px) translateZ(8px);
  box-shadow: 0 10px 25px rgba(187, 112, 0, 0.4);
}
.badges li:hover i{
  color: #fff;
}

/* ===== Hero Media ===== */
.hero-media{
  width:100%;
  aspect-ratio:4/5;
  border-radius:2rem;
  overflow:hidden;
  border:1px solid var(--border-color);
  box-shadow:var(--box-shadow);
  background:rgba(0,0,0,.1);
  transition:all var(--transition-speed) ease;
  transform-style: preserve-3d;
}
.hero-media:hover{
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.25),
    0 10px 25px rgba(187, 112, 0, 0.2);
  transform: translateY(-8px) translateZ(15px);
  border-color: var(--primary-color);
}
.hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform var(--transition-speed) ease;
}
.hero-media:hover img{
  transform:scale(1.05);
}

/* ===== Stats Section ===== */
.stats{padding:2.4rem 0}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.6rem}
.stat{
  background:rgba(255,255,255,.7);
  backdrop-filter:blur(6px);
  border:1px solid var(--border-color);
  border-radius:1.2rem;
  padding:2rem;
  text-align:center;
  box-shadow:var(--box-shadow);
  transition:all var(--transition-speed) ease;
  transform-style: preserve-3d;
}
.stat:hover{
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.22),
    0 10px 20px rgba(187, 112, 0, 0.15);
  transform: translateY(-8px) translateZ(15px);
  border-color: var(--primary-color);
}
.stat .num{
  font-size:2.4rem;
  font-weight:800;
  color:var(--primary-color);
}
.stat .label{
  font-size:1.4rem;
  color:var(--text-secondary);
  margin-top:.4rem;
}

/* ===== Cards (Services) ===== */
.cards{padding:3.2rem 0}
.cards-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.6rem}
.card{
  background:rgba(41,41,41,.95);
  color:#fff;
  border-radius:1.6rem;
  padding:2.4rem;
  box-shadow:var(--box-shadow);
  transition:all var(--transition-speed) ease;
  min-height:18rem;
  border:1px solid rgba(255,255,255,.05);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}
.card::before{
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(187, 112, 0, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.card:hover::before{
  opacity: 1;
}
.card:hover{
  background:rgba(51,51,51,.98);
  transform:translateY(-10px) translateZ(20px);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.4),
    0 15px 35px rgba(187, 112, 0, 0.25);
  border-color: var(--primary-color);
}
.card i{
  font-size:3.2rem;
  color:var(--primary-color);
  margin-bottom:1.2rem;
  display:block;
  transition:all var(--transition-speed) ease;
}
.card:hover i{
  transform:scale(1.2) translateZ(8px);
  filter: drop-shadow(0 3px 10px rgba(187, 112, 0, 0.6));
}
.card h3{
  font-size:1.9rem;
  margin-bottom:.8rem;
}
.card p{
  font-size:1.5rem;
  line-height:1.6;
  color:#eaeaea;
}

/* ===== About Brief ===== */
.about-brief{padding:3.2rem 0}
.about-grid{display:flex;gap:2rem;align-items:center}
.about-text{
  background:rgba(255,255,255,.7);
  backdrop-filter:blur(6px);
  border:1px solid var(--border-color);
  border-radius:1.6rem;
  padding:2.4rem;
  box-shadow:var(--box-shadow);
  transition:all var(--transition-speed) ease;
  transform-style: preserve-3d;
}
.about-text:hover{
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.22),
    0 10px 20px rgba(187, 112, 0, 0.15);
  transform: translateY(-8px) translateZ(15px);
  border-color: var(--primary-color);
}
.about-text h2{
  font-size:2.6rem;
  margin-bottom:1rem;
  color:var(--primary-color);
}
.about-text p{
  font-size:1.7rem;
  line-height:1.7;
  color:var(--text-secondary);
  margin-bottom:1.2rem;
}
.link-more{
  font-size:1.6rem;
  text-decoration:none;
  color:var(--primary-color);
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  transition:all var(--transition-speed) ease;
}
.link-more:hover{
  gap:1rem;
  text-decoration:underline;
}

/* ===== Featured Projects ===== */
.featured{padding:3.2rem 0}
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin-bottom:1.6rem;
}
.section-head h2{
  font-size:2.6rem;
  color:var(--primary-color);
}
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.6rem;
}
.proj{
  display:block;
  background:rgba(255,255,255,.7);
  backdrop-filter:blur(6px);
  border:1px solid var(--border-color);
  border-radius:1.6rem;
  overflow:hidden;
  box-shadow:var(--box-shadow);
  text-decoration:none;
  color:inherit;
  transition:all var(--transition-speed) ease;
  transform-style: preserve-3d;
}
.proj:hover{
  box-shadow: 
    0 20px 45px rgba(0, 0, 0, 0.3),
    0 10px 25px rgba(187, 112, 0, 0.25);
  transform:translateY(-10px) translateZ(20px);
  border-color: var(--primary-color);
}
.proj img{
  width:100%;
  aspect-ratio:10/11;
  object-fit:cover;
  border-bottom:4px solid var(--primary-color);
  display:block;
  transition:transform var(--transition-speed) ease;
}
.proj:hover img{
  transform:scale(1.05);
}
.proj .meta{padding:1.4rem}
.proj .tag{
  display:inline-block;
  background:linear-gradient(135deg, #111, #2a2626);
  color:#fff;
  font-size:1.2rem;
  border-radius:999px;
  padding:.4rem 1rem;
  margin-bottom:.6rem;
}
.proj h3{
  font-size:1.8rem;
  color:#111;
  transition:color var(--transition-speed) ease;
}
.proj:hover h3{
  color:var(--primary-color);
}

/* ===== Footer ===== */
/* ===== Footer ===== */
.site-footer{
  padding:1.5rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border:1px solid rgba(255, 255, 255, 0.15);
  border-radius:2rem;
  margin:2rem 2rem;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 10px 20px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  width:calc(100% - 4rem);
  position: relative;
}
.site-footer::before{
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  border-radius: 2rem;
  z-index: -1;
  filter: blur(10px);
}
.footer-grid{
  display:grid;
  grid-template-columns:1fr 2fr 1fr;
  gap:1.2rem;
  align-items:center;
  position: relative;
  z-index: 1;
}
.foot-brand img{
  width:10rem;
  border:2px solid var(--border-color);
  border-radius:1rem;
  padding:.5rem;
  background:#fff;
  transition:all var(--transition-speed) ease;
  transform-style: preserve-3d;
}
.foot-brand img:hover{
  transform:scale(1.1) translateZ(15px);
  box-shadow:0 15px 35px rgba(187,112,0,.5);
  border-color: var(--primary-color);
}
.foot-links{
  display:flex;
  gap:1.2rem;
  justify-content:center;
  flex-wrap:wrap;
}
.foot-links a{
  font-size:1.5rem;
  text-decoration:none;
  color:#111;
  display:inline-flex;
  gap:.6rem;
  align-items:center;
  transition:all var(--transition-speed) ease;
}
.foot-links a:hover{
  color:var(--primary-color);
  transform:translateY(-2px);
}
.foot-copy{
  text-align:right;
  font-size:1.4rem;
  color:var(--text-secondary);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-track{
  background:rgba(0,0,0,.05);
  border-radius:5px;
}
::-webkit-scrollbar-thumb{
  background:linear-gradient(135deg,var(--primary-color),var(--primary-light));
  border-radius:5px;
  border:1px solid rgba(255,255,255,.1);
  transition: all 0.3s ease;
}
::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(135deg,var(--primary-light),var(--primary-hover));
  box-shadow: 0 0 10px rgba(187, 112, 0, 0.5);
}

/* ===== Responsive ===== */
@media (max-width:992px){
  .hero-grid{grid-template-columns:1fr;gap:2rem}
  .hero-media{aspect-ratio:auto}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
  .cards-grid{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:768px){
  html{font-size:60%}
  .shell{padding:0 1.6rem}
  .proj-grid{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr;text-align:center}
  .foot-copy{text-align:center}
}


/* ===== FIX HORIZONTAL SCROLL ONLY ===== */
html {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
}

* {
  box-sizing: border-box;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* ===== Responsive - Font Size ONLY ===== */

@media (max-width: 992px) {
  html {font-size: 62%}
}

@media (max-width: 768px) {
  html {font-size: 60%}
  
  header {
    flex-direction: column;
    padding: 1.5rem;
  }
  
  .right-section {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 550px) {
  html {font-size: 56%}
  
  header {
    flex-direction: column;
    align-items: center;
  }
  
  .right-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
  }
  
  .right-section a {
    width: 100%;
    text-align: center;
    font-size: 200%;
  }
}

/* ===== Performance ===== */
.card,.btn,.social-inline a,.stat,.proj,.hero-text,.hero-media,.about-text,.foot-brand img{
  will-change:transform;
  backface-visibility:hidden;
}