/* =========================================================
   باسل الصايدي — Nature Photographer Portfolio
   Design tokens
   ========================================================= */
:root{
  --orange: #D4762C;      /* هدهد orange — primary */
  --orange-deep: #B75F1E;
  --gold: #9B6E4D;        /* golden brown — secondary */
  --ink: #2D1B17;         /* charcoal black — text */
  --ivory: #F4F0E8;       /* light ivory — background */
  --ivory-deep: #EAE2D3;
  --cream-line: rgba(45,27,23,0.12);
  --white: #FFFFFF;

  --font-display-ar: 'Amiri', serif;
  --font-body-ar: 'Tajawal', sans-serif;
  --font-display-en: 'Fraunces', serif;
  --font-body-en: 'Work Sans', sans-serif;

  --container: 1180px;
  --radius: 4px;
  --dur: .6s;
  --ease: cubic-bezier(.22,.9,.32,1);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--ivory);
  color:var(--ink);
  font-family:var(--font-body-ar);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
html[lang="en"] body{ font-family:var(--font-body-en); }

h1,h2,h3,h4{
  font-family:var(--font-display-ar);
  margin:0;
  font-weight:700;
  letter-spacing:.2px;
}
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] h4{
  font-family:var(--font-display-en);
}
p{margin:0;}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
button{font-family:inherit; cursor:pointer;}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 28px;
}

/* ---------- feather divider (signature motif) ---------- */
.feather-divider{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin: 0 auto;
}
.feather-divider .line{
  height:1px; width:56px; background:var(--cream-line);
}
.feather-divider svg{ width:22px; height:22px; color:var(--orange); }

/* ---------- eyebrow / labels ---------- */
.eyebrow{
  font-family:var(--font-body-en);
  font-size:12px;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:var(--gold);
  font-weight:600;
}
html[lang="ar"] .eyebrow{ letter-spacing:.08em; }

/* =========================================================
   NAV
   ========================================================= */
.nav{
  position:fixed;
  top:0; left:0; right:0;
  z-index:100;
  padding:18px 0;
  transition:background var(--dur) var(--ease), padding var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav.scrolled{
  background:rgba(244,240,232,0.92);
  backdrop-filter:blur(10px);
  padding:12px 0;
  box-shadow:0 1px 0 var(--cream-line);
}
.nav .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-display-ar);
  font-size:20px;
  font-weight:700;
  color:var(--ink);
}
html[lang="en"] .brand{ font-family:var(--font-display-en); }
.brand img{ height:34px; width:34px; object-fit:contain; }
.nav.scrolled .brand img{ filter:none; }
.nav-links{
  display:flex; align-items:center; gap:30px;
  list-style:none; margin:0; padding:0;
}
.nav-links a{
  font-size:14px;
  font-weight:600;
  position:relative;
  padding-bottom:4px;
  color:var(--ink);
  opacity:.85;
}
.nav-links a:hover{opacity:1;}
.nav-links a::after{
  content:"";
  position:absolute; bottom:0; left:0; right:0;
  height:2px; background:var(--orange);
  transform:scaleX(0); transform-origin:center;
  transition:transform .35s var(--ease);
}
.nav-links a:hover::after{ transform:scaleX(1); }

.nav-right{ display:flex; align-items:center; gap:16px; }
.lang-toggle{
  border:1px solid var(--cream-line);
  background:transparent;
  color:var(--ink);
  border-radius:999px;
  padding:7px 16px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.05em;
  transition:all .3s var(--ease);
}
.lang-toggle:hover{ border-color:var(--orange); color:var(--orange); }

.nav-burger{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none; border:none; padding:6px;
}
.nav-burger span{ width:22px; height:2px; background:var(--ink); display:block; }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  background:#100c0a;
}
.hero-media{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center 60%;
  transform:scale(1.08);
  animation:heroZoom 16s var(--ease) forwards;
}
@keyframes heroZoom{ to{ transform:scale(1); } }
.hero::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(16,12,10,.35) 0%, rgba(16,12,10,.15) 30%, rgba(16,12,10,.75) 100%);
}
.hero-content{
  position:relative; z-index:2;
  width:100%;
  padding-bottom:min(9vh,90px);
  color:var(--ivory);
  text-align:center;
}
.hero-logo{
  height:74px; width:74px; object-fit:contain;
  margin:0 auto 22px;
  opacity:0; transform:translateY(14px);
  animation:riseIn .9s var(--ease) .3s forwards;
}
.hero-title{
  font-size:clamp(42px,7vw,88px);
  color:var(--ivory);
  line-height:1.05;
  opacity:0; transform:translateY(18px);
  animation:riseIn .9s var(--ease) .5s forwards;
}
.hero-sub{
  margin-top:16px;
  font-family:var(--font-body-en);
  font-size:clamp(13px,1.6vw,16px);
  letter-spacing:.3em;
  text-transform:uppercase;
  color:var(--orange-light,#EFC79A);
  opacity:0; transform:translateY(14px);
  animation:riseIn .9s var(--ease) .7s forwards;
}
html[lang="ar"] .hero-sub{ letter-spacing:.12em; }
.hero-desc{
  max-width:560px; margin:22px auto 0;
  color:rgba(244,240,232,.82);
  font-size:16px;
  opacity:0; transform:translateY(14px);
  animation:riseIn .9s var(--ease) .85s forwards;
}
@keyframes riseIn{ to{opacity:1; transform:translateY(0);} }

.hero-scroll{
  position:absolute; bottom:26px; left:50%; transform:translateX(-50%);
  z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:8px;
  color:rgba(244,240,232,.75);
  opacity:0; animation:fadeIn 1s ease forwards;
  animation-delay:1.2s;
}
@keyframes fadeIn{ to{opacity:1;} }
.hero-scroll .stem{
  width:1px; height:36px;
  background:linear-gradient(180deg, rgba(244,240,232,.9), transparent);
  animation:stemPulse 1.8s ease-in-out infinite;
}
@keyframes stemPulse{ 0%,100%{opacity:.4;} 50%{opacity:1;} }

/* =========================================================
   SECTION shared
   ========================================================= */
.section{ padding:110px 0; position:relative; }
.section-tight{ padding:80px 0; }
.section-head{
  text-align:center;
  max-width:640px;
  margin:0 auto 56px;
}
.section-head h2{
  font-size:clamp(30px,4vw,46px);
  margin-top:14px;
  color:var(--ink);
}
.section-head p{
  margin-top:16px;
  color:var(--gold);
  font-size:16px;
}
.alt-bg{ background:var(--ivory-deep); }

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid{
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:64px;
  align-items:center;
}
.about-photo-wrap{
  position:relative;
}
.about-photo-frame{
  position:relative;
  border:1px solid var(--cream-line);
  padding:18px;
}
.about-photo-frame img{
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
}
.about-photo-tag{
  position:absolute;
  bottom:-18px;
  background:var(--orange);
  color:var(--ivory);
  padding:12px 22px;
  font-family:var(--font-display-en);
  font-style:italic;
  font-size:14px;
  letter-spacing:.02em;
  box-shadow:0 10px 24px rgba(212,118,44,.35);
}
html[lang="ar"] .about-photo-tag{ right:24px; font-family:var(--font-display-ar); font-style:normal; }
html[lang="en"] .about-photo-tag{ left:24px; }

.about-name{ font-size:clamp(28px,3.4vw,40px); }
.about-role{
  margin-top:8px;
  color:var(--orange-deep);
  font-weight:700;
  font-size:14px;
  letter-spacing:.05em;
}
.about-bio{ margin-top:22px; color:var(--ink); font-size:16px; }
.about-bio p{ margin-bottom:14px; }
.about-meta{
  margin-top:28px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px 28px;
}
.about-meta div{
  border-top:1px solid var(--cream-line);
  padding-top:10px;
}
.about-meta .label{
  font-size:11px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--gold); font-weight:700;
}
.about-meta .val{ margin-top:4px; font-weight:600; }

.about-socials{
  margin-top:32px;
  display:flex; gap:14px; flex-wrap:wrap;
}
.social-btn{
  display:flex; align-items:center; gap:8px;
  border:1px solid var(--cream-line);
  padding:10px 16px;
  border-radius:999px;
  font-size:13px; font-weight:700;
  transition:all .3s var(--ease);
}
.social-btn svg{ width:16px; height:16px; }
.social-btn:hover{
  background:var(--orange);
  border-color:var(--orange);
  color:var(--ivory);
  transform:translateY(-2px);
}

/* =========================================================
   PLACES VISITED
   ========================================================= */
.places-wrap{
  display:flex; flex-wrap:wrap; gap:12px; justify-content:center;
}
.place-chip{
  border:1px solid var(--cream-line);
  padding:10px 18px;
  font-size:14px; font-weight:600;
  background:var(--ivory);
  transition:all .3s var(--ease);
}
.place-chip.featured{
  background:var(--orange);
  color:var(--ivory);
  border-color:var(--orange);
}
.place-chip:hover{ border-color:var(--orange); transform:translateY(-2px); }

/* =========================================================
   GALLERY / CAROUSEL
   ========================================================= */
.gallery-tabs{
  display:flex; justify-content:center; gap:10px; margin-bottom:44px; flex-wrap:wrap;
}
.gallery-tab{
  border:1px solid var(--cream-line);
  background:transparent;
  padding:10px 22px;
  font-size:13px; font-weight:700;
  letter-spacing:.03em;
  color:var(--ink);
  border-radius:999px;
  transition:all .3s var(--ease);
}
.gallery-tab.active, .gallery-tab:hover{
  background:var(--ink); border-color:var(--ink); color:var(--ivory);
}

.carousel{ position:relative; display:none; }
.carousel.active{ display:block; }
.carousel-track-wrap{ overflow:hidden; }
.carousel-track{
  display:flex;
  transition:transform .6s var(--ease);
}
html[dir="rtl"] .carousel-track{
    flex-direction:row-reverse;
}
.carousel-slide{
  flex:0 0 100%;
  display:flex;
  justify-content:center;
}
.carousel-slide img{
  border-radius:2px;
  box-shadow:0 24px 60px rgba(45,27,23,.18);
}
.carousel.portrait .carousel-slide img{
  width:auto; height:min(64vh,620px); object-fit:cover; aspect-ratio:4/5;
}
.carousel.landscape .carousel-slide img{
  width:min(900px,100%); aspect-ratio:3/2; object-fit:cover;
}
.carousel.awards .carousel-slide img{
  width:min(560px,90%); aspect-ratio:1/1; object-fit:cover;
}

.carousel-arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  width:52px; height:52px;
  border-radius:50%;
  border:1px solid var(--cream-line);
  background:var(--ivory);
  display:flex; align-items:center; justify-content:center;
  transition:all .3s var(--ease);
  z-index:5;
}
.carousel-arrow:hover{ background:var(--orange); border-color:var(--orange); color:var(--ivory); }
.carousel-arrow svg{ width:20px; height:20px; }
.carousel-arrow.prev{ left:-8px; }
.carousel-arrow.next{ right:-8px; }
html[lang="ar"] .carousel-arrow.prev{ left:auto; right:-8px; transform:translateY(-50%) scaleX(-1); }
html[lang="ar"] .carousel-arrow.next{ right:auto; left:-8px; transform:translateY(-50%) scaleX(-1); }
@media(min-width:700px){
  .carousel-arrow.prev{ left:12px; }
  .carousel-arrow.next{ right:12px; }
  html[lang="ar"] .carousel-arrow.prev{ right:12px; }
  html[lang="ar"] .carousel-arrow.next{ left:12px; }
}

.carousel-dots{
  display:flex; justify-content:center; gap:8px; margin-top:26px;
}
.carousel-dots button{
  width:8px; height:8px; border-radius:50%;
  background:var(--cream-line); border:none; padding:0;
  transition:all .3s var(--ease);
}
.carousel-dots button.active{ background:var(--orange); width:22px; border-radius:4px; }

.gallery-note{
  text-align:center; margin-top:18px;
  font-size:12.5px; color:var(--gold);
}

/* =========================================================
   CONTACT / FOOTER
   ========================================================= */
.contact{
  background:var(--ink);
  color:var(--ivory);
  padding:100px 0 40px;
}
.contact .section-head p{ color:#D8B994; }
.contact .section-head h2{ color:var(--ivory); }
.contact-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
  max-width:900px; margin:0 auto 60px;
}
.contact-card{
  border:1px solid rgba(244,240,232,.15);
  padding:26px 22px;
  text-align:center;
  transition:all .3s var(--ease);
}
.contact-card:hover{ border-color:var(--orange); transform:translateY(-4px); }
.contact-card svg{ width:26px; height:26px; color:var(--orange); margin:0 auto 14px; }
.contact-card .label{ font-size:12px; letter-spacing:.1em; color:#C8B49B; text-transform:uppercase; }
.contact-card .val{ margin-top:8px; font-weight:700; font-size:15px; word-break:break-word; }

.footer-bottom{
  border-top:1px solid rgba(244,240,232,.12);
  padding-top:26px;
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:14px;
  font-size:13px; color:#B6A28A;
}
.footer-socials{ display:flex; gap:14px; }
.footer-socials a{ color:#B6A28A; transition:color .3s; }
.footer-socials a:hover{ color:var(--orange); }
.footer-socials svg{ width:18px; height:18px; }

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal{ opacity:0; transform:translateY(28px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in{ opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media(max-width:900px){
  .about-grid{ grid-template-columns:1fr; gap:40px; }
  .contact-grid{ grid-template-columns:1fr; }
}
@media(max-width:760px){
  .nav-links{
    position:fixed; inset:0 0 0 auto;
    top:0; height:100vh; width:78%; max-width:320px;
    background:var(--ivory);
    flex-direction:column; align-items:flex-start;
    padding:100px 32px 40px;
    transform:translateX(100%);
    transition:transform .45s var(--ease);
    box-shadow:-10px 0 40px rgba(0,0,0,.12);
  }
  html[dir="rtl"] .nav-links{ right:auto; left:0; transform:translateX(-100%); }
  .nav-links.open{ transform:translateX(0); }
  .nav-links a{ font-size:17px; }
  .nav-burger{ display:flex; }
  .about-meta{ grid-template-columns:1fr 1fr; }
}
@media(max-width:520px){
  .section{ padding:76px 0; }
  .hero-desc{ padding:0 12px; }
  .carousel-arrow{ width:42px; height:42px; }
}
