/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

      html, body {
  overflow-y: scroll;     
  scrollbar-width: none;  
}

body::-webkit-scrollbar {
  display: none;         
}

body {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  direction: rtl;
  background: #fff;
  color: #333;
}

/* Navbar */
.navbar {
  background: #433935a1;
  position: fixed;
  top: 0;
  margin-top: 20px;
  left: 5%;      
  /* transform: translateX(-50%);  */
  width: 90%;
  padding: 10px 0;
  z-index: 10;
  border-radius: 8px;
}

.navbar .container {
  width: 90%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 50px;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 18px;
}

.nav-links a:hover {
  color: #57BBAE;
  text-decoration: none;

}


.logo img {
  width: 120px;
  height: 35.02px;
}

.btn {
  background: #fff;
  color: #000;
  padding: 8px 35px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background: linear-gradient(to right, #7125CB, #381265); /* New linear gradient on hover */
  transition: opacity 1s ease;

  /* background: #381265; */
  color: white;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Your existing overlay + right shadow */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to left, 
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 2;
}

/* Fixed right-side shadow */
.hero-right-shadow {
  position: absolute;
  top: 0;
  right: 0;
  width: 250px; /* adjust width of shadow */
  height: 100%;
  background: linear-gradient(to right, 
    transparent, 
    rgba(177, 23, 23, 0.4)
  );
  pointer-events: none; /* don't block clicks */
  z-index: 2; /* above images (z-index:1), below text (z-index:3+) */
}

/* Slider container */
.slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
}

/* Shared styles for all slider images */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: -2;
}

/* Active slide is visible */
.hero-bg.active {
  opacity: 1;
}

/* Remove hover effect since we're using auto-slider */
.hero:hover .hero-bg-primary {
  opacity: 1;
}

.hero:hover .hero-bg-secondary {
  opacity: 0;
}

/* Overlay */
.overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(70, 40, 20, 0.55);
  z-index: 1; /* Changed from -1 to 1 so it's above images but below content */
}

/* Content */
.hero-content {
  position: relative;
  padding: 60px;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
  color: #fff;
  z-index: 3; /* Ensure content is above everything else */
  /* max-width: 700px; */
}

.hero-content .verse {
  font-size: 24px;
  margin-bottom: 20px;
  line-height: 32px;
  color: #FEF0C7;
}

.hero-content h1 {
  font-size: 56px;
  line-height: 1.5;
  /* margin-bottom: 20px; */
  font-weight: bold;
}

.hero-content .description {
  font-size: 25px;
  margin-bottom: 30px;
  line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 28px;
  }
  .hero-content .description {
    font-size: 14px;
  }
  .btn {
    padding: 8px 16px;
  }
}


/* Second Section */
:root {
  --brand:#7125CB;
  --text:#1f1d1d;
  --muted:##535862;
  --bg:#fff;
}

.taseer-services {
  background: var(--bg);
  padding: clamp(40px, 6vw, 70px) 0;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  position: relative;
}
.taseer-services .position-absolute {
  position: absolute;
  top: 4%;
  left: 0%;
 
}
.taseer-services .position-absolute img {
  width: 75%;
  height: auto;
}

.ts-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  gap: clamp(24px, 3vw, 40px);
  width: min(1288px, 92vw);
  margin-inline: auto;
}
.ts-container .ts-right img {
  margin-right: -45px;
}

/* Left side */
.ts-left {
  text-align: right;
}

.ts-header {
  text-align: center;
  margin-bottom: 40px; /* space before the grid */
}

.ts-eyebrow {
  display:inline-block;
  font-size: 13px;
  color: #414651;
  background:#f1f1f1;
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 10px;
}

.ts-title {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 10px;
}

.ts-subtitle {
  font-size: 16px;
  color: #535862;
  margin-bottom: 26px;
  line-height:1.7;
}

/* Grid */
.ts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  margin-bottom: 28px;
}

.ts-item h3 {
  font-size: 20px;
  font-weight: 700;
  color: #6125a5;
  margin: 10px 0;
}
.ts-item p {
  font-size: 15px;
  color: #717680;
  line-height:1.7;
}

.ts-icon {
  font-size: 24px;
  color: var(--brand);
  margin-bottom: 6px;
}

/* Button */
.ts-btn {
  display:inline-block;
  background: #7125CB;
  color:#fff;
  padding: 10px 20px;
  border-radius:8px;
  font-weight:600;
  text-decoration:none;
  transition: all .2s ease;
}
.ts-btn:hover { background:#5636d6; }

/* Right side image */
.ts-right img {
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:14px, 0px,14px, 0px;
}

/* Responsive */
@media (max-width: 992px){
  .ts-container {
    grid-template-columns: 1fr;
  }
  .ts-right {
    order:-1; /* Image first on mobile */
  }
  .ts-grid {
    grid-template-columns:1fr;
  }
}


:root{
  --brand:#6A45FF;        /* purple */
  --ink:#2a2a2a;
  --muted:#6c6c6c;
  --stroke:#e4dcff;       /* lilac outline */
  --radius-lg:16px;
  --radius-md:14px;
  --shadow:0 12px 30px rgba(0,0,0,.06);
  --mint:#D7F1EA;
  --mint-ink:#0f8e78;
}

.taseer-contact{
  padding: clamp(44px,6vw,80px) 0;
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  background:#fff;
}

.tc-container{
  width:min(1288px,92vw);
  margin-inline:auto;
}

/* header */
.tc-head{ text-align:center; margin-bottom:28px; }
.tc-eyebrow{
  display:inline-block; font-size:13px; color:#414651;
  background:#f1f1f1; padding:6px 12px; border-radius:999px; margin-bottom:8px;
}
.tc-title{
  font-weight:800; color:var(--brand);
  font-size: clamp(28px,3.2vw,38px); margin:0 0 6px;
}
.tc-subtitle{ color:#535862; font-size:16px; }

/* layout grid */
.tc-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap:20px;
  align-items:start;
  background: #fff !important;
}

/* info column */
.tc-info{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:20px;
}
.info-card{
  display:grid; grid-template-columns: auto 1fr; gap:12px; align-items:start;
  background:var(--card);
  padding:22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.info-wide{ grid-column: 1 / -1; }

.icn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  /* Set default colors */
  background: var(--mint);
  color: var(--mint-ink); /* This will now control the SVG color */

  /* Add a transition for a smooth effect */
  transition: background-color 0.3s ease, color 0.3s ease;
}

.icn img {
  width: 22px;
  height: 22px;
  /* Use currentColor to inherit from the .icn's 'color' property */
  fill: currentColor; 
}


/* --- 2. Hover Effect (Simplified) --- */

.icn:hover img {
  filter: brightness(0) invert(1); /* makes it white */
}

.info-body .label{
  font-weight:700; color:#222; margin-bottom:4px;
  margin-top: 60px;
}
.info-body .value{
  color:#495057; line-height:1.9;
  word-break: break-word;
}

/* form */
.tc-form{
  /* background:#FBFAFF; */
  border:1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding:18px;
  box-shadow: var(--shadow);
}
.tc-form .row{ margin-bottom:14px; display:grid; gap:14px; }
.tc-form .row.two{ grid-template-columns:1fr 1fr; }

.tc-form input,
.tc-form textarea{
  width:100%;
  font-family:inherit;
  font-size:15px;
  color:#222;
  background:#fff;
  border:1.8px solid var(--stroke);
  border-radius:12px;
  padding:12px 14px;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.tc-form textarea{ resize:vertical; }
.tc-form input::placeholder,
.tc-form textarea::placeholder{ color:#9a8fd6; } /* light lilac like comp */

.tc-form input:focus,
.tc-form textarea:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(106,69,255,.12);
}

.tc-submit{
  width:100%;
  background:#7125CB;
  color:#fff;
  border:none;
  border-radius:12px;
  padding:14px 16px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(106,69,255,.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tc-submit:hover{ transform: translateY(-1px); }

/* responsive */
@media (max-width: 992px){
  .tc-grid{ grid-template-columns:1fr; }
}
@media (max-width: 640px){
  .tc-info{ grid-template-columns:1fr; }
  .tc-form .row.two{ grid-template-columns:1fr; }
}




:root{
  --brand:#6A45FF;     /* purple */
  --ink:#1f1d1d;
  --muted:#6b6b6b;
  --gap:16px;
  --radius:16px;
}

/* section wrapper */
.gallery-section{
  background:#fffcf5;
  padding: clamp(36px,6vw,72px) 0;
  font-family:"IBM Plex Sans Arabic", system-ui, sans-serif;
}

.gs-wrap{ width:min(1200px,92vw); margin-inline:auto; }

/* head */
.gs-head{ text-align:center; margin-bottom: clamp(20px,3vw,28px); }
.gs-pill{
  display:inline-block; font-size:13px; color:#555; background:#f1f1f1;
  border-radius:999px; padding:6px 12px; margin-bottom:8px;
}
.gs-title{
  margin:0 0 6px; font-weight:800; color:#7125CB;
  font-size: clamp(28px,3.2vw,36px);
}
.gs-sub{ margin:0; color:var(--muted); font-size:16px; }

/* grid layout = tall left, wide top-right, two bottom images */
.gs-grid{
  display:grid;
  grid-template-areas:
    "A B"
    "A C"
    "A D";
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-top: clamp(16px,2.5vw,22px);
}
.tile{ position:relative; overflow:hidden; border-radius: var(--radius); background:#e5e5e5; }
.tile img{ width:100%; height:100%; object-fit:cover; display:block; }

/* placement */
.tile-a{ grid-area:A; aspect-ratio: 4/5; }     /* tall portrait */
.tile-b{ grid-area:B; aspect-ratio: 16/9; }    /* wide */
.tile-c{ grid-area:C; aspect-ratio: 16/11; }   /* medium */
.tile-d{ grid-area:D; aspect-ratio: 16/11; }   /* medium */

/* CTA */
.gs-cta{ text-align:center; margin-top: clamp(18px,3vw,28px); }
.gs-btn{
  display:inline-flex; align-items:center; gap:8px;
  background: #7125CB; color:#fff; text-decoration:none;
  padding:10px 18px; border-radius:10px; font-weight:700;
  box-shadow:0 10px 20px rgba(106,69,255,.22);
  transition: transform .15s ease;
}
.gs-btn:hover{ transform: translateY(-1px); }

/* responsive */
@media (max-width: 900px){
  .gs-grid{
    grid-template-columns: 1fr;
    grid-template-areas:
      "A"
      "B"
      "C"
      "D";
  }
}


:root {
  --gap: 20px;              /* gap between items */
  --radius: 20px;           /* large rounded corners */
  --brand: #6A45FF;
}

/* Section */
.gallery-section {
  /* background: #fff; */
  padding: 40px 0;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  position: relative;
}
.gallery-section .position-absolute{
  position: absolute;
  top: 0%;
  right: 0%;
  z-index: -1;
}
.gs-wrap {
  width: 1288px;
  max-width: 95%;
  margin: 0 auto;
}

/* Head */
.gs-head {
  text-align: center;
  margin-bottom: 40px;
}
.gs-pill {
  display: inline-block;
  font-size: 14px;
  background: #F5F5F5;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.gs-title {
  margin: 0;
  font-size: 48px;
  font-weight: 800;
  color: var(--brand);
}
.gs-sub {
  margin: 8px 0 0;
  font-size: 16px;
  color: #666;
}

/* Grid */
.gs-grid {
  display: flex;
  gap: var(--gap);
  height: 646px; /* exact spec height */
}
.tile {
  overflow: hidden;
  border-radius: var(--radius);
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* left portrait */
.portrait {
  width: 419px;
  height: 645px;
  flex-shrink: 0;
}

/* right column */
.right-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* top wide image */
.wide {
  width: 100%;
  height: 315px;
}

/* bottom row (two halves) */
.bottom-row {
  display: flex;
  gap: var(--gap);
  height: 315px;
}
.half {
  flex: 1;
  height: 315px;
}

/* CTA */
.gs-cta {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 20px;
}
.gs-btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
}




/* ======= Base / Unique Names ======= */
.tssr2-section{
  font-family:"IBM Plex Sans Arabic", system-ui, sans-serif;
  background:#fffcf5;                /* match dark page behind (adjust as needed) */
  padding:20px 0;                 /* outer breathing room (optional) */
}

.tssr2-wrap{
  width:1288px;
  height:488px;
  margin:0 auto;
  display:grid;
  grid-template-columns: 555px 1fr;  /* 705 + 583 (but right inner is 487) */
  column-gap:0;
  align-items:stretch;
}

/* ======= LEFT 705×488 with three fixed tiles ======= */
.tssr2-left{
  width:705px; height:488px;
  display:grid;
  grid-template-columns: 219px 218px 219px;
  column-gap:25px;                 /* matches the visual spacing */
  position:relative;
}

/* shared tile look */
.tssr2-shot{
  overflow:hidden;
  border-radius:22px;
  background:white;
}

.tssr2-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              box-shadow 0.4s ease;
  transform-origin: center; /* Ensures zoom is centered */
}

/* Hover effect: 20% zoom + subtle shadow */
.tssr2-shot:hover img {
  transform: scale(1.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* Image fills its box */
.tssr2-shot img{ width:100%; height:100%; object-fit:cover; display:block; }

/* exact sizes */
.tssr2-shot-219x403{ width:219px; height:403px; align-self:center; } /* center in 488h */
.tssr2-shot-218x488{ width:218px; height:488px; align-self:stretch; }


/* ======= RIGHT side ======= */
.tssr2-right{
  height:705;
  display:flex;
  align-items:center;              /* vertical centering of the 487×352 card */
  justify-content:flex-start;      /* RTL: keep to the right visually */
  padding-inline-start:40px;       /* gap from images */
}

.tssr2-card{
  width:487px;
  height:352px;
  border-radius:16px;              /* subtle rounding like comp */
  /* background transparent; if you want a light card, add a bg here */
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.tssr2-title{
  margin:0 0 14px;
  font-weight:800;
  line-height:1.25;
  font-size:34px;
  color:#ffffff;
}
/* .tssr2-accent{ color:#7125CB; } */
.gradient-text-group {
  background-image: linear-gradient(to bottom, #7125CB, #381265);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block; /* or block, depending on layout */
  text-align: center; /* optional */
  line-height: 1.4; /* adjust spacing between lines if needed */
}
.tssr2-accent.br { color:#7125CB; }

.tssr2-text{
  margin:0 0 18px;
  color:#535862;
  line-height:1.9;
  font-size:20px;
}
.tssr2-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  background:#7125CB;
  color:#fff;
  padding:10px 16px;
  border-radius:12px;
  font-weight:700;
  box-shadow:0 10px 24px rgba(106,69,255,.25);
  width:max-content;
  transition:transform .15s ease;
}
.tssr2-btn:hover{ transform:translateY(-1px); }

/* ======= Optional: keep layout intact on small screens by scaling ======= */
@media (max-width: 1320px){
  .tssr2-wrap{ transform: scale(.9); transform-origin:center; }
}
@media (max-width: 1180px){
  .tssr2-wrap{ transform: scale(.8); }
}


:root{
  --app5-w: 1414;  /* base width */
  --app5-h: 436;   /* base height */

  --title-w: 321;
  --title-h: 76;

  --btn-w: 135;
  --btn-h: 40;
  --btn-gap: 16;
}

/* Section with background image */
.tssr-app5-section{
  font-family:"IBM Plex Sans Arabic", system-ui, sans-serif;
  color:#fff;
  background: url("images/Mobile.png") center/cover no-repeat;
  display: grid;
  place-items: center;
  overflow-x: hidden;  /* prevent side scroll */
  overflow-y: hidden;  /* prevent bottom scroll */
}

/* Canvas maintains fixed aspect ratio */
.tssr-app5-canvas{
  width: min(1414px, 100%);
  aspect-ratio: var(--app5-w) / var(--app5-h);
  position: relative;
  margin-inline: auto;

  /* scale factor (never bigger than 1) */
  --k: min(1, calc(100% / 1414));
}

/* Left content block (vertically centered on left) */
.tssr-app5-left{
  position: absolute;
  inset-inline-start: 60px; /* adjust X offset as per design */
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: calc(18px * var(--k));
  text-align: right;
}

/* Headline */
.tssr-app5-title{
  width: calc(var(--title-w) * 1px * var(--k));
  min-height: calc(var(--title-h) * 1px * var(--k));
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
  text-wrap: balance;
  font-size: 25px;
  margin-top: 20px;
}

/* Buttons group */
.tssr-app5-badges{
  width: calc((var(--btn-w)*2 + var(--btn-gap)) * 1px * var(--k));
  height: calc(var(--btn-h) * 1px * var(--k));
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  margin-top: 30px;
  gap: 5px;
  margin-right: -35px;

}

.tssr-app5-badge{
  width: 135px;
  height: 40px;
  display: grid;
  border-radius: 20px;
  transition: transform .15s ease;
}
.tssr-app5-badge:hover{ transform: translateY(calc(-2px * var(--k))); }

.tssr-app5-badge img{
  width: 135px;
  height: 40px;
  object-fit: contain;
  display: block;
}





/* Contact Pages Section */
:root{
  --cW:1288px; --cH:694px;
  --gap:24px;
  --radius:18px;
  /* --card:#F8F9FB; */
  --stroke:#E7DBFF;             /* lilac line like reference */
  --brand:#6A45FF;
  --mint:#D7F1EA; --mint-ink:#0f8e78;
  --ink:#222; --muted:#6c6c75;
  /* --shadow:0 12px 30px rgba(0,0,0,.06); */
}

.tssrC-section{
  font-family:"IBM Plex Sans Arabic", system-ui, sans-serif;
  background:#fffcf5;
  display:flex; justify-content:center;
}
   .tssrC-cards.tssrC-card-contact {
        display: flex;
        flex-wrap: wrap;
    }


.tssrC-canvas{
  width:var(--cW);
  padding:16px;
  border-radius:22px;
  background:#fff;
}

/* --------- Top info cards --------- */
.tssrC-cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: var(--gap);
}
.tssrC-card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:22px;
  display:grid;
  /* grid-template-columns:auto 1fr; */
  /* width: max-content; */
  gap:12px;
  align-items:start;
}
.tssrC-icn{
  width:40px;height:40px;border-radius:999px;
  background:var(--mint); color:var(--mint-ink);
  display:grid;place-items:center; flex:none;
}
.tssrC-icn svg{width:22px;height:22px}
.tssrC-cardTitle{font-weight:700;color:#0e0e11;margin-bottom:4px}
.tssrC-cardText{color:var(--muted);line-height:1.9}

/* --------- Bottom row --------- */
.tssrC-bottom{
  display:grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--gap);
}

/* Map */
.tssrC-map{
  background:#fff; border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden; border:1px solid #eee;
}
.tssrC-map img{
  width:100%; height:100%; object-fit:cover; display:block;
}

/* Form */
.tssrC-form{
  display: flex;
  flex-direction: column;
  gap: 25px;
  
  border-radius:var(--radius);
  border:1px solid var(--stroke);
  box-shadow:var(--shadow);
  padding:18px;
}
.tssrC-row{ display:grid; gap:12px; margin-bottom:12px; }
.tssrC-two{ grid-template-columns:1fr 1fr; }

.tssrC-form input,
.tssrC-form textarea{
  width:100%;
  font-family:inherit;
  font-size:15px;
  color:#222;
  background:#fff;
  border:1.8px solid var(--stroke);
  border-radius:12px;
  padding:12px 14px;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.tssrC-form input::placeholder,
.tssrC-form textarea::placeholder{ color:#9a8fd6; }

.tssrC-form input:focus,
.tssrC-form textarea:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(106,69,255,.12);
}

.tssrC-submit{
  width:100%; background:var(--brand); color:#fff;
  border:none; border-radius:12px; padding:14px 16px;
  font-weight:700; cursor:pointer;
  box-shadow:0 10px 24px rgba(106,69,255,.25);
  transition:transform .15s ease;
}
.tssrC-submit:hover{ transform: translateY(-1px); }

/* ===== Basic Styles ===== */

/* ===== Hamburger Menu ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Mobile Styles ===== */
@media (max-width: 767px) {
  .hero-content {
    padding-left: 100px;
  }
  .menu-toggle {
    display: flex;
    height: 24px;
  }

  nav {
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    /* background-color: ; */
    border-top: 1px solid #ddd;
    display: none;
  }

  nav.active {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 15px;
    background-color: #fff;
  }

  .btn {
    display: none;
  }
  .nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #007bff;
}
}


/* Hamburger animation (optional) */
.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translateY(11px);
  -webkit-transform: rotate(45deg) translateY(11px);
  -moz-transform: rotate(45deg) translateY(11px);
  -ms-transform: rotate(45deg) translateY(11px);
  -o-transform: rotate(45deg) translateY(11px);
}
.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
  -webkit-transform: rotate(-45deg) translateY(-10px);
  -moz-transform: rotate(-45deg) translateY(-10px);
  -ms-transform: rotate(-45deg) translateY(-10px);
  -o-transform: rotate(-45deg) translateY(-10px);
}



.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  padding: 20px;
  box-sizing: border-box;
}

.close-btn {
  position: absolute;
  top: 20px;
  left: 20px; /* RTL: close on left */
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 1001;
}

.modal-content {
  display: block;
  max-width: 90%;
  max-height: 90vh;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.3); /* ← 30% zoom by default */
  transform-origin: center;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease; /* smooth if user interacts later */
}

/* Extra zoom on click */
.modal-content.zoomed-extra {
  transform: translate(-50%, -50%) scale(2.2); /* ~220% zoom */
  cursor: zoom-out;
}

.modal-content.zoomed-in {
  transform: translate(-50%, -50%) scale(2); /* 200% zoom */
  cursor: zoom-out;
}

.modal-content {
  cursor: zoom-in;
}

/* ---- Optional small responsiveness (keeps proportion) ---- */

@media only screen and (max-width:1200px){
 
  .ts-container .ts-right img {
    margin-right: -16px;
}
}


@media  only screen and (max-width:1024px){
  .hero-content {
    right: 19%;
    padding: 0;
  }
  .hero-content h1 {
    font-size: 48px;
  }
  .hero-bg{
    right: 18%;
  }
  .tssr2-shot-219x403{
    width: 175px;
    height: 375px;
  }
  .tssr2-shot-218x488{
    width: 175px;
  }
  .tssr2-left{
    width: 656px;
    grid-template-columns: 200px 200px 200px;
  }
  
  .taseer-services .position-absolute img {
    width: 55%;
    height: auto;
}


}

@media only screen and (max-width:992px){
      .hero-bg {
        right: 0%;
    }
        .navbar {
        left: 3%;
        width: 94%;
    }
        .tssr2-left {
        width: 663px;
        grid-template-columns: 126px 128px 105px;
    }
    .tssr2-card{
      width: 375px;
    }
    .tssr2-wrap{
        width: fit-content;
    }
    .tssr2-right{
      width: fit-content;
    }
    .nav-links {
      gap: 25px ;
    }
}
@media only screen and (max-width:991px) {
  html, body {
    direction: ltr
  }
  .section-header {
    direction: rtl;
  }
}

@media only screen and (max-width: 992px) and (min-width: 768px) {
  .tssr2-left {
    width: 90%;
    height: auto;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 5px;
    justify-content: center;
    align-items: center;
    transform: scale(0.9);
    transform-origin: center;
  }
   
}
@media only screen and (max-width:767px) {
  
  .tssr2-section .tssr2-wrap {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    height: auto;
    transform: scale(1);
    padding: 0px 25px;
  }
  .tssr2-section .tssr2-wrap .tssr2-right {
    width: 100%;
  }
  .tssr2-section .tssr2-wrap .tssr2-left {
    width: 100%;
    height: auto;
    display: flex;
    padding-top: 80px;
  }
  .taseer-services .ts-right img {
    margin: 0;
  }
  .gallery-section .gs-wrap .gs-grid {
        height: auto;
    display: flex;
    flex-wrap: wrap;
    column-gap: 80px;
    padding: 0px 20px;
  }
  .gallery-section .gs-wrap .gs-grid .tile.portrait {
    width: 100%;
    height: auto;
  }
  .tssr-app5-canvas {
    height: 400px;
  }
  .tasseer-footer .tf-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 0px 25px;
    justify-content: center;
  }
  .tasseer-footer .tf-container .tf-left {
    display: block;
    width: 100%;
  }
  .tasseer-footer .tf-right, .tasseer-footer .tf-social {
  margin: 0;
  }
  .tf-logo img {
    margin: 0 auto !important;
  }
  .tasseer-footer .tf-nav {
        position: initial;
        background: transparent;
        text-align: center;
        justify-content: center;
        padding-top: 20px;
  }
  .tasseer-footer .tf-nav a {
width: 100%;
display: block;
  }
  .contact-tssr-hero {
    width: 100%;
    margin-top: 62px;
  }
  .tssrC-cards.tssrC-card-contact {
    display: flex;
    flex-wrap: wrap;
  }
  .tssrC-card-contact .tssrC-card {
    margin-bottom: 20px;
  }
  .tssrC-section-contact {
    margin-top: 60px;
  }


  /* Modal background */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); /* Dark semi-transparent overlay */
  padding: 20px;
  box-sizing: border-box;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 20px;
  left: 20px; /* For RTL: close button on LEFT */
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  z-index: 1001;
}

.close-btn:hover {
  color: #ccc;
}
}

@media only screen and (max-width:480px){
  .hero {
    padding: 0px 20px !important;
  }
  .about-section3{
    padding: 0px 20px !important;
  }
  .services-section{
    padding: 0px 20px !important;
  }
   .hero-content h1 {
        font-size: 24px;
    }
    .hero-content {
      padding: 100px 0 0 100px;
    }
    .tssr2-section {
      padding-top: 80px;
    }
}