@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)}}
@keyframes scaleIn{from{opacity:0;transform:scale(0.9)}to{opacity:1;transform:scale(1)}}

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 ===== */
.container{
  margin:0 auto;
  padding:0 2rem;
  width:100%;
  max-width: 100vw;
}

/* ===== 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;
}

/* ===== 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%;
}

/* ===== Photo Container - زي الفيديو بالظبط ===== */
.Photo-Container {
  width: 100%;
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border-radius: 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);
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: scaleIn 0.8s ease-out;
  position: relative;
  overflow: visible;
}
.Photo-Container::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);
}

/* Multiple Photos في نفس الـ Container */
.Photo-Container.multi-photo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 2rem;
}

/* ===== Photo Image - Hover خفيف زي Infrastructure ===== */
.Photo {
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  display: block;
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.2),
    inset 0 0 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  cursor: pointer;
}
.Photo:hover {
  transform: scale(1.005);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.35),
    0 10px 25px rgba(187, 112, 0, 0.3),
    inset 0 0 20px rgba(0, 0, 0, 0.1);
}

/* ===== 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);
}

/* ===== FIX HORIZONTAL SCROLL ===== */
html {
  overflow-x: hidden;
  max-width: 100vw;
}
body {
  overflow-x: hidden;
  max-width: 100vw;
}
* {
  box-sizing: border-box;
}
img, video, iframe {
  max-width: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  html {font-size: 62%}
  
  .Photo-Container {
    padding: 1.5rem;
  }
  
  .Photo-Container.multi-photo {
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  }
}

@media (max-width: 768px) {
  html {font-size: 60%}
  
  header {
    flex-direction: column;
    padding: 1.5rem;
  }
  
  .right-section {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .Photo-Container {
    margin: 2rem 0;
    padding: 1.5rem;
  }
  
  .Photo-Container.multi-photo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 550px) {
  html {font-size: 56%}
  
  header {
    flex-direction: column;
    align-items: center;
  }
  
  .left-section img {
    margin: 0 0 2rem 0;
  }
  
  .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%;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .Photo-Container {
    margin: 1.5rem 0;
    padding: 1.2rem;
  }
}

/* ===== Performance ===== */
.left-section img,.right-section a,.Photo-Container,.Photo{
  will-change:transform;
  backface-visibility:hidden;
}