:root {
    --bg: #0b0b0b;
    --card: #121212;
    --text: #eaeaea;
    --gold: #c9a44c;
    --gold-soft: rgba(201,164,76,0.2);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
  }
  
  body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
  }
  
  /* ===== NAVBAR ===== */
  header {
    position: fixed;
    width: 100%;
    background: rgba(11,11,11,0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--gold-soft);
  }
  
  nav {
    max-width: 1200px;
    margin: auto;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    font-size: 22px;
    letter-spacing: 3px;
    color: var(--gold);
    font-weight: 600;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
  }
  
  nav a {
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    letter-spacing: 1px;
    position: relative;
  }
  
  nav a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: 0.3s;
  }
  
  nav a:hover::after,
  nav a.active::after {
    width: 100%;
  }
  
/* ===== HERO HOME ===== */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  /* خلفية cinematic */
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.9)),
      url("images/hero.jpg") center/cover no-repeat;
    z-index: -1;
  }
  
  
  .hero-content {
    max-width: 800px;
    padding: 20px;
    animation: fadeUp 1.2s ease forwards;
  }
  
  .hero h1 {
    font-size: 64px;
    letter-spacing: 8px;
  }
  
  .hero h1 span {
    color: var(--gold);
  }
  
  .subtitle {
    margin-top: 15px;
    font-size: 16px;
    letter-spacing: 3px;
    opacity: 0.85;
  }
  
  /* Buttons */
  .hero-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  .btn.outline {
    background: transparent;
    color: var(--gold);
  }
  
  .btn.outline:hover {
    background: var(--gold);
    color: #000;
  }
  
  /* Animation */
  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .hero::before {
      background:
        linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.9)),
        url("images/hero-mobile.jpg") center/cover no-repeat;
    }
  }
  
  /* ===== SECTIONS ===== */
  .section {
    padding: 120px 20px;
    max-width: 1000px;
    margin: auto;
    text-align: center;
  }
  
  .section h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: var(--gold);
    letter-spacing: 3px;
  }
  
  /* ===== BUTTON ===== */
  .btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 2px;
    transition: 0.3s;
  }
  
  .btn:hover {
    background: var(--gold);
    color: #000;
  }
  
  /* ===== ABOUT ===== */
  #about p {
    max-width: 750px;
    margin: auto;
    opacity: 0.85;
  }
  
  .profiles {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 40px;
  }
  
  .profiles a {
    display: block;
    border: 1px solid var(--gold-soft);
    padding: 15px 25px;
    border-radius: 15px;
    transition: 0.3s;
  }
  
  .profiles a:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
  }
  
  .profiles img {
    width: 120px;
    filter: grayscale(100%);
    transition: 0.3s;
  }
  
  .profiles a:hover img {
    filter: grayscale(0);
  }
  
  /* ===== CINEMATIC GALLERY ===== */
  #gallery {
    display: flex;
    flex-direction: column;
    justify-content: center;  /* vertical center */
    align-items: center;      /* horizontal center */
    min-height: 80vh;
    padding: 40px 20px;
  }
  
  .gallery-simple {
    position: relative;
    width: 400px;
    height: 500px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 15px;
    background: #121212;
  }
  
  .gallery-simple img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: opacity 0.8s ease-in-out; /* smooth transition */
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .gallery-simple img.active {
    opacity: 1;
    position: relative; /* الصورة الحالية تكون فوق */
  }
  
  /* Buttons */
  .gallery-simple button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gold);
    border: none;
    color: #000;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 8px;
    opacity: 0.8;
  }
  
  #prev { left: 10px; }
  #next { right: 10px; }
  
  .gallery-simple button:hover { opacity: 1; }  
/* ===== WORKS SECTION ===== */
#works {
    max-width: 1200px;
  }
  
  /* Grid */
  .works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    justify-items: center;
  }
  
  /* ===== WORK CARD ===== */
  .work-card {
    background: #111;
    border-radius: 20px;
    padding: 16px;
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--gold-soft);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }

  .work-images img {
    width: 100%;
    max-width: 200px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    filter: grayscale(50%);
    transition: 0.4s;
    border: 1px solid var(--gold-soft);
}

  .work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(201,164,76,0.25);
  }
  
  /* Cover portrait */
  .work-cover {
    width: 100%;
    height: 340px;
    border-radius: 15px;
    overflow: hidden;
  }
  
  .work-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .work-card:hover .work-cover img {
    transform: scale(1.05);
  }
  
  /* Tag */
  .work-tag {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
  }
  
  /* Title */
  .work-card h3 {
    font-size: 16px;
    margin: 5px 0;
  }
  
  /* Description */
  .work-card p {
    font-size: 13px;
    color: #bbb;
  }
  
/* ===== CONTACT ===== */
form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  input, textarea {
    background: #0f0f0f;
    border: 1px solid var(--gold-soft);
    padding: 12px;
    color: var(--text);
    border-radius: 8px;
    font-size: 14px;
  }
  
  textarea {
    resize: vertical;
    min-height: 100px;
  }
  
  button {
    background: var(--gold);
    border: none;
    color: #000;
    padding: 12px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
    border-radius: 8px;
  }
  
  button:hover {
    background: #c9a44cdd;
  }
  
  .socials {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .socials a {
    color: var(--gold);
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
  }
  
  .socials a:hover {
    transform: scale(1.1);
  }
  #experience p {
    max-width: 750px;
    margin: 10px auto;
    font-size: 15px;
    opacity: 0.85;
    line-height: 1.6;
  }
  
  #experience a {
    color: var(--gold);
    text-decoration: none;
  }
  
  #experience a:hover {
    text-decoration: underline;
  }
    
  /* ===== FOOTER ===== */
  footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--gold-soft);
    font-size: 13px;
    opacity: 0.7;
  }
  
  /* ===== BACK TO TOP BUTTON ===== */
  #backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 999;
  }
  
  #backToTop:hover {
    background: var(--gold);
    color: #000;
  }
  
  /* ===== RESPONSIVE ===== */
  @media (max-width: 768px) {
    .hero h1 {
      font-size: 40px;
    }
    nav ul {
      gap: 15px;
    }
    .gallery-line {
      width: 300px;
      height: 400px;
    }
  }
  /* ===== LOGO IMAGE ===== */
.logo {
    display: flex;
    align-items: center;
  }
  
  .logo img {
    height: 42px;           /* تنجم تبدّلها */
    width: auto;
    transition: 0.3s;
  }
  
  .logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 6px rgba(201,164,76,0.6));
  }
  
  