/*
Theme Name: Shahrabi Portfolio
Theme URI:  https://example.com
Author: Your Name
Author URI: https://example.com
Description: Classic theme with sticky centered menu and full-height section scrolling. Compatible with Polylang.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: classic-sticky
*/

:root{
  --header-height: 72px;
  --max-width: 1200px;
  --header-bg: rgba(255,255,255,0.95);
  --header-shadow: 0 4px 14px rgba(0,0,0,0.08);
  --accent: #111;
}

*{box-sizing:border-box}
html,body{height:100%; margin:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial;}
a{color:inherit; text-decoration:none}

/* Sticky header */
.site-header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:var(--header-height);
  background:var(--header-bg);
  display:flex;
  align-items:center;
  justify-content:center; /* centers the inner container horizontally */
  z-index:9999;
  box-shadow:var(--header-shadow);
  backdrop-filter: blur(4px);
}

/* inner container centered */
.header-inner{
  width:100%;
  max-width:var(--max-width);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 16px;
}

/* Left (site title) */
.site-branding a{
  font-weight:700;
  font-size:1.05rem;
  letter-spacing:.2px;
}

/* Right (menu + language) */
.primary-nav{
  display:flex;
  align-items:center;
  gap:18px;
}

/* Primary menu */
.primary-nav .menu{
  display:flex;
  gap:12px;
  align-items:center;
}
.primary-nav .menu ul {
      display: inline;
}
.primary-nav .menu li {
      display: inline;
list-style:none;
}
.primary-nav .menu a{
  padding:8px 10px;
  border-radius:6px;
  display:inline-block;
}

/* Language chooser container */
.lang-switch{
  display:inline-flex;
  align-items:center;
}

/* Hamburger (mobile) */
.hamburger{
  display:none;
  background:none;
  border:0;
  width:44px;height:44px;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.hamburger .bar{
  width:24px;height:2px;background:var(--accent);display:block;position:relative;
}
.hamburger .bar::before,
.hamburger .bar::after{
  content:"";
  position:absolute;
  left:0;
  width:24px;height:2px;background:var(--accent);
}
.hamburger .bar::before{top:-7px}
.hamburger .bar::after{top:7px}

/* Mobile menu overlay */
/*
.mobile-menu{
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: #fff;
  flex-direction: column;
  z-index: 1000;
}
.mobile-menu.open{ display: flex; }
*/

.mobile-menu{
  position:fixed;
  inset:var(--header-height) 0 0 0;
  background:rgba(255,255,255,0.98);
  transform:translateY(-100%);
  transition:transform .28s ease;
  z-index:9998;
  padding:20px;
  overflow:auto;
}
.mobile-menu.open{ transform:translateY(0); }
.mobile-menu ul {
    list-style: none;
}
.mobile-menu a {
  display: block;
  padding: 12px 16px;
  margin: 6px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #e0e0e0;
  border: 2px solid #999;
font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-menu a:hover {
  background-color: #eee;
  color: #000;
}


/* Ensure the content below header starts after header */
.site-main{ padding-top:var(--header-height); }

/* Sections */
.sections-wrapper{
  /* sections will be one-per-viewport and we optionally use scroll-snap */
  scroll-snap-type: y mandatory;
}
.section{
  height:100vh;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  scroll-snap-align:start;
  padding:24px;
  text-align:center;
  background-position: center;
  background-color: #555;
}

/* small visual helpers */
.section-inner{ max-width:1000px; width:100% }

/* Responsive */
@media (max-width:900px){
  .primary-nav .menu{ display:none; } /* hide desktop links */
  .lang-switch{ display:none; }
  .hamburger{ display:flex; }
  .header-inner{ padding:0 12px; }
}

/* RTL support: if rtl body class presumably applied by WP / Polylang,
   we flip margins if necessary */
body.rtl .header-inner{ direction:rtl; }




















#DreamLiveSection {
    background-image: url("assets/images/dream-live-1.webp");
}

#DreamLiveBox {
    text-align: center;
}

#DreamLiveBox span {
    width: 250px;
    padding: 20px;
    font-size: 50px;
    display: inline-block;
}







#ContactSection {
    background-image: url("assets/images/footer-1-darken.webp");
}













/***** Dream Live Intro *****/
#DreamLiveIntro {
    color: #EEE;
}
#DreamLiveIntro .grid {
    max-width: 940px;
    margin: 0 auto;
}

#DreamLiveIntro .grid > div {
    width: 400px;
    border: 10px solid #000;
    padding: 1em;
    background-size: contain;
}
#DreamLiveIntro .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(200px, auto);
}
#DreamLiveIntro .one {
    grid-column: 1;
    grid-row: 1 / 3;
    background-image: url("assets/images/dreamliveintro1-1.webp");
}
#DreamLiveIntro .two {
    grid-column: 2 ;
    grid-row: 1;
}
#DreamLiveIntro .three {
    grid-column: 2;
    grid-row: 2;
    background-image: url("assets/images/dreamliveintro2-1.webp");
}
/* Slideshow for small screens */
#DreamLiveIntro .slideshow {
    display: none;
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: auto;
    overflow: hidden;
}
#DreamLiveIntro .slide {
    display: none;
    padding: 2rem;
    background-color: #f2f2f2;
    border-radius: 8px;
    min-height: 200px;
    text-align: center;
}

#DreamLiveIntro .slide img {
    max-width: 100%;
    border-radius: 8px;
}

#DreamLiveIntro .active {
    display: block;
}

#DreamLiveIntro .nav-button {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 1rem;
    margin-top: -22px;
    color: black;
    font-weight: bold;
    font-size: 1.5rem;
    border: none;
    background-color: rgba(255,255,255,0.8);
    border-radius: 50%;
    user-select: none;
}

#DreamLiveIntro .prev {
    left: 10px;
}

#DreamLiveIntro .next {
    right: 10px;
}

















#DreamTitle {
    justify-content: left;
    background-image: url("assets/images/dream-title-1.webp");
}

#DreamTitle span {
    font-size: 80px;
    color: #FFF;
    background-color: #000;
}

#DreamSingle {
    background-size: contain;
    background-image: url("assets/images/dream-single-1.webp");
}

















#MeshSection {
    
    color: #EEE;
}

#MeshSection .grid {
    max-width: 940px;
    margin: 0 auto;
}
#MeshSection .grid > div {
    width: 200px;
    height: 200px;
    border: 10px solid #000;
    padding: 1em;
    background-size: contain;
}
#MeshSection .grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: minmax(200px, auto);
}
#MeshSection .grid .one {
    grid-column: 1 / 2;
    grid-row: 1;
}
#MeshSection .grid .two {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
}
#MeshSection .grid .three {
    grid-column: 1;
    grid-row: 2 / 3;
}
#MeshSection .grid .four {
    grid-column: 2;
    grid-row: 2;
}
#MeshSection .grid .five {
  grid-column: 3;
  grid-row: 2;
}
#MeshSection .grid .six {
  grid-column: 4;
  grid-row: 2;
}
#MeshSection .grid .seven {
  grid-column: 5;
  grid-row: 2;
}
#MeshSection .grid .eight {
    grid-column: 2;
    grid-row: 3;
}
#MeshSection .grid .nine {
    grid-column: 3;
    grid-row: 3
}
#MeshSection .one {
    background-image: url(assets/images/meshsection1-1.webp);
}
#MeshSection .two {
    background-image: url(assets/images/meshsection2-1.webp);
}
#MeshSection .three {
    background-image: url(assets/images/meshsection3-1.webp);
}
#MeshSection .four {
    background-image: url(assets/images/meshsection4-1.webp);
}
#MeshSection .five {
    background-image: url(assets/images/meshsection5-1.webp);
}
#MeshSection .seven {
    background-image: url(assets/images/meshsection6-1.webp);
}
#MeshSection .eight {
    background-image: url(assets/images/meshsection7-1.webp);
}
/* Grid Ends */
/* Slideshow for small screens */
#MeshSection .slideshow {
    display: none;
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: auto;
    overflow: hidden;
}
#MeshSection .slide {
    display: none;
    padding: 2rem;
    background-color: #f2f2f2;
    border-radius: 8px;
    min-height: 200px;
    text-align: center;
}

#MeshSection .slide img {
    max-width: 100%;
    border-radius: 8px;
}

#MeshSection .active {
    display: block;
}

#MeshSection .nav-button {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 1rem;
    margin-top: -22px;
    color: black;
    font-weight: bold;
    font-size: 1.5rem;
    border: none;
    background-color: rgba(255,255,255,0.8);
    border-radius: 50%;
    user-select: none;
}

#MeshSection .prev {
    left: 10px;
}

#MeshSection .next {
    right: 10px;
}






#DreamLiveSection {
    background-image: url("assets/images/dream-live-1.webp");
}

#DreamLiveBox {
    text-align: center;
}

#DreamLiveBox span {
    width: 250px;
    padding: 20px;
    font-size: 50px;
    display: inline-block;
}

#ContactSection {
    background-image: url("assets/images/footer-1-darken.webp");
}






























.scroller-wrap{
    width:90%;
    max-width:1100px;
    overflow:hidden;
    padding:14px;
    border-radius:12px;
    background: linear-gradient(180deg,#0b1220,#071021);
    box-sizing:border-box;
  }

  .scroller-wrap-track{
    display:flex;
    gap:var(--gap);
    align-items:center;
    will-change:transform;
    touch-action:pan-y;
    cursor:grab;
    user-select:none;
    -webkit-user-select:none;
  }

  .scroller-wrap-item{
    flex:0 0 auto;
    width:var(--item-w);
    height:var(--item-h);
    border-radius:10px;
    overflow:hidden;
    background:#222;
    box-shadow:0 6px 20px rgba(0,0,0,0.6);
    min-height: 400px;
    width: 400px;
/* Ali: to place content in the vertical center of .scroller-wrap-item , can cause problems */
padding: 1rem;              /* add padding for text */
display: flex;
flex-direction: column;
justify-content: center;
color: white;
/* **************************************************************************************** */
background: no-repeat;
background-position: center;
  }

  .scroller-wrap-item img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    pointer-events:none;
    -webkit-user-drag:none;
  }
  
  
  
  
  


/* Show desktop only on screens wider than 768px */
@media (min-width: 768px) {
    #DreamLiveIntro .scroller-wrap {
        display: none;
    }
}
/* --- Media Query: switch to slideshow on small screens --- */
/* Show phone version only on screens smaller than 768px */
@media (max-width: 767px) {
    #DreamLiveIntro .grid {
        display: none;
    }
    #DreamLiveIntro .scroller-wrap {
        display: block;
    }
}

/* Show desktop only on screens wider than 768px */
@media (min-width: 768px) {

    #MeshSection .scroller-wrap {
        display: none;
    }
}
/* --- Media Query: switch to slideshow on small screens --- */
/* Show phone version only on screens smaller than 768px */
@media (max-width: 767px) {
    #MeshSection .grid {
        display: none;
    }
    #MeshSection .scroller-wrap {
        display: block;
    }
}

/****************************/