/* =========================================================
   İÇ MİMAR NİHAT — STYLE.CSS
   Birebir bloom3d.studio CSS sistemi
   ========================================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background: #111;
}

body.u-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: #fff;
  background: #111;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, video { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; background: none; border: none; color: inherit; }

/* --- Typography Scale --- */
.u-h1 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.u-h2 {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.u-h3 {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.u-h4 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.4;
}
.u-subheading-l {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.u-subheading-m {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
}
.u-subheading-xl {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* --- Layout Containers --- */
.u-container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
}
.u-container-wide {
  width: 90%;
  max-width: 1600px;
  margin: 0 auto;
}

/* --- Underline Decoration --- */
.u-underline {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 1px;
  background: #fff;
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.u-underline.white { background: rgba(255,255,255,0.5); }
a:hover .u-underline,
.footer_col_list_item:hover .u-underline { width: 100%; }
.underline_nav_dd, .underline_faq_item {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 1px;
  background: #fff;
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.navbar_nav_dd_link:hover .underline_nav_dd { width: 100%; }

/* =========================================================
   BUTTONS — double-layer flip animation
   ========================================================= */
.u-btn {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  cursor: pointer;
}
.u-btn-front,
.u-btn-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  white-space: nowrap;
}
.u-btn-back {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  transform: translateY(100%);
}
.u-btn:hover .u-btn-front { transform: translateY(-100%); }
.u-btn:hover .u-btn-back  { transform: translateY(0); }

/* Button Variants */
.u-btn-black { background: #222; color: #fff; }
.u-btn-white { background: #fff; color: #111; }
.u-btn-glass {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
}
.u-btn-icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.u-btn-text { display: inline-block; }

/* =========================================================
   PRELOADER
   ========================================================= */
.u-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  /* clip-path controlled via inline style & JS */
}
.preloader_mask {
  position: absolute;
  inset: 0;
  background: #111;
  z-index: 1;
}
.preloader_num {
  position: absolute;
  font-size: clamp(6rem, 18vw, 16rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.04);
  z-index: 2;
  user-select: none;
  line-height: 1;
  opacity: 0;
  transform: translateY(60px);
}
.preloader_logo {
  position: absolute;
  width: 120px;
  height: 120px;
  color: #fff;
  z-index: 3;
  opacity: 0;
}
.preloader_content {
  position: relative;
  z-index: 4;
  text-align: center;
  opacity: 0;
}
.preloader_content_logo {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.preloader_content_text {
  color: rgba(255,255,255,0.45);
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.75rem 0;
  background: transparent;
  transition: padding 0.4s cubic-bezier(0.23,1,0.32,1), background 0.4s cubic-bezier(0.23,1,0.32,1);
}
.navbar.scrolled {
  background: rgba(17,17,17,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem 0;
}
.navbar_container {
  width: 90%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
/* Logo */
.navbar_logo_wrapper { display: block; flex-shrink: 0; }
.navbar_logo { width: 130px; height: auto; color: #fff; transition: color 0.4s; }
.navbar.on_hero .navbar_logo { color: #fff; }

/* Hero Services Dropdown (Opens upwards to prevent bottom clipping) */
.hero_dd_wrapper {
  position: relative;
  display: inline-block;
}
.hero_dd_menu {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  top: auto;
  left: 0;
  background: #181818;
  border: 1px solid rgba(255,255,255,0.15);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  transform: translateY(-6px);
  z-index: 9999;
  box-shadow: 0 -12px 36px rgba(0,0,0,0.7);
  border-radius: 6px;
  overflow: hidden;
}
.hero_dd_menu::before {
  content: '';
  position: absolute;
  bottom: -15px;
  top: auto;
  left: 0;
  right: 0;
  height: 15px;
}
.hero_dd_wrapper:hover .hero_dd_menu,
.hero_dd_wrapper.is-open .hero_dd_menu,
.hero_dd_menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (max-width: 767px) {
  .hero_dd_menu {
    bottom: calc(100% + 0.75rem);
    top: auto;
    left: 0;
  }
}
.hero_dd_item {
  display: block;
  padding: 0.85rem 1.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s, color 0.2s;
}
.hero_dd_item:last-child { border-bottom: none; }
.hero_dd_item:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.navbar_nav_wrapper { display: flex; align-items: center; }
.navbar_nav_inner { display: flex; align-items: center; gap: 3rem; }
.navbar_nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.navbar_nav_item { position: relative; }
.navbar_nav_link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.25s;
  padding-bottom: 0.25rem;
}
.navbar_nav_link:hover, .navbar_nav_link[aria-current="page"] { opacity: 1; }

/* Dropdown */
.navbar_nav_dd { position: relative; }
.navbar_nav_dd_btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.8;
  cursor: pointer;
  padding: 0.25rem 0;
  transition: opacity 0.25s;
}
.navbar_nav_dd_btn:hover { opacity: 1; }
.navbar_nav_dd_icon { width: 16px; height: 16px; transition: transform 0.25s; }
.navbar_nav_dd:hover .navbar_nav_dd_icon,
.navbar_nav_dd.is-open .navbar_nav_dd_icon { transform: rotate(-180deg); }
.navbar_nav_dd_list {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #181818;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.5rem 0;
  min-width: 230px;
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}
.navbar_nav_dd_list::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.navbar_nav_dd:hover .navbar_nav_dd_list,
.navbar_nav_dd.is-open .navbar_nav_dd_list,
.navbar_nav_dd_list:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.navbar_nav_dd_link {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  position: relative;
  transition: color 0.2s, background 0.2s;
}
.navbar_nav_dd_link:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* CTA in nav */
.navbar_cta { display: none; }
.navbar_cta_title { font-size: 0.8125rem; color: rgba(255,255,255,0.5); margin-bottom: 1rem; }
.navbar_nav_btns { display: flex; gap: 0.75rem; }

/* Hamburger */
.navbar_menu_btn {
  display: none;
  width: 28px;
  height: 18px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001;
}
.navbar_menu_btn .bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #fff;
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1), opacity 0.25s;
}
.navbar.menu-open .bar:first-child { transform: translateY(8px) rotate(45deg); }
.navbar.menu-open .bar:last-child  { transform: translateY(-8px) rotate(-45deg); }

/* Overlay for mobile */
.navbar_overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.navbar.menu-open .navbar_overlay { opacity: 1; visibility: visible; }

/* =========================================================
   SMOOTH SCROLL WRAPPER
   ========================================================= */
#smooth-wrapper { overflow: hidden; }

/* =========================================================
   HERO SECTION
   ========================================================= */
.section_hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero_wrapper {
  position: relative;
  z-index: 3;
  padding-bottom: 5vw;
  padding-top: 0;
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
}
.hero_content { margin-bottom: 2.5rem; }
.hero_subheading {
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
}
.hero_heading { color: #fff; max-width: 900px; }
/* Split lines - masked by overflow hidden */
.hero_heading .line { overflow: hidden; }
.hero_heading .line-inner { display: block; transform: translateY(110%); }
.hero_btns {
  display: flex;
  gap: 1rem;
  opacity: 0;
}
/* Hero overlay gradient */
.hero_video_overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(17,17,17,0.2) 0%,
    rgba(17,17,17,0.4) 60%,
    rgba(17,17,17,0.85) 100%
  );
}
/* Hero bg image/video */
.hero_video {
  position: absolute;
  inset: 0;
  z-index: 1;
  will-change: transform;
}
.hero_video_inner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   PORTFOLIO SECTION
   ========================================================= */
.section_portfolio {
  position: relative;
  z-index: 2;
  padding: 5rem 0 8rem;
  margin-bottom: 2rem;
  background: #0e0e0e;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Intro header row */
.portfolio_intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 3rem 3rem;
  max-width: 1600px;
  margin: 0 auto;
}
.portfolio_intro_label {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
  padding-right: 2rem;
}
.portfolio_intro_heading {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.02em;
  flex: 1;
  text-align: center;
}
.portfolio_intro_link {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s;
  flex-shrink: 0;
  padding-left: 2rem;
}
.portfolio_intro_link:hover { color: #fff; }
.portfolio_intro_arrow {
  display: inline-block;
  transition: transform 0.3s;
}
.portfolio_intro_link:hover .portfolio_intro_arrow { transform: translateX(4px); }

/* Masonry 3-column layout */
.pf_masonry {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 4px;
  height: 680px;
  max-width: 1600px;
  margin: 0 auto;
}
.pf_col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Individual items */
.pf_item {
  position: relative;
  overflow: hidden;
  display: block;
  flex: 1;
}
.pf_item_hero { flex: 1; }
.pf_item_tall { flex: 1.65; }
.pf_item_short { flex: 1; }

.pf_item_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.9s cubic-bezier(0.23, 1, 0.32, 1), filter 0.6s;
  filter: brightness(0.88);
}
.pf_item:hover .pf_item_img {
  transform: scale(1.06);
  filter: brightness(0.72);
}

/* Gradient veil — always visible but deepens on hover */
.pf_item_veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(8,8,8,0.82) 100%);
  z-index: 2;
  opacity: 0.7;
  transition: opacity 0.5s;
}
.pf_item:hover .pf_item_veil { opacity: 1; }

/* Label */
.pf_item_label {
  position: absolute;
  bottom: 0; left: 0;
  padding: 1.75rem 1.75rem 1.5rem;
  z-index: 3;
  transform: translateY(0);
  transition: transform 0.45s cubic-bezier(0.23,1,0.32,1);
}
.pf_item:hover .pf_item_label { transform: translateY(0); }

.pf_item_cat {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.4rem;
  transition: color 0.3s;
}
.pf_item:hover .pf_item_cat { color: rgba(255,255,255,0.75); }

.pf_item_title {
  font-size: 1.125rem;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.3;
}

/* Responsive */
@media (max-width: 991px) {
  .pf_masonry {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }
  .pf_col_center { display: none; }
  .pf_col { min-height: 380px; }
}
@media (max-width: 567px) {
  .pf_masonry {
    grid-template-columns: 1fr;
    height: auto;
  }
  .pf_col_right { display: none; }
  .portfolio_intro {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.25rem 2rem;
    text-align: left;
  }
  .portfolio_intro_heading { text-align: left; }
}


/* =========================================================
   SERVICES — 3D CAROUSEL
   ========================================================= */
.section_services {
  position: relative;
  z-index: 1;
  padding: 8rem 0 10rem;
  background: #111;
  overflow: hidden;
}
.services_wrapper { /* u-container-wide */ }
.services_heading {
  max-width: 900px;
  margin-bottom: 5rem;
  color: #fff;
}

/* Carousel wrapper: height managed by JS */
.carousel_wrapper {
  position: relative;
  width: 100%;
  min-height: 650px;
  height: 650px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel_mask {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  /* Left/right gradient masks */
  background: linear-gradient(
    to right,
    #111 0%,
    transparent 20%,
    transparent 80%,
    #111 100%
  );
}
.carousel_container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  perspective: 1800px;
}
/* Carousel & cards styled via inline <style> in HTML using CSS vars */
.carousel {
  position: relative;
  list-style: none;
}
.carousel_card {
  position: absolute;
  width: var(--item-width, 29.6875rem);
  height: var(--item-width, 29.6875rem);
  top: 50%; left: 50%;
  margin-left: calc(var(--item-width, 29.6875rem) / -2);
  margin-top: calc(var(--item-width, 29.6875rem) / -2);
}
.services_card {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  background: #1a1a1a;
}
.services_card_title {
  position: relative;
  z-index: 3;
  color: #fff;
  margin-bottom: 1.25rem;
}
.services_btn {
  position: relative;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
}
.service_btn_text {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.services_btn_underline {
  height: 1px;
  background: rgba(255,255,255,0.5);
  width: 0%;
  transition: width 0.4s cubic-bezier(0.23,1,0.32,1);
  margin-top: 4px;
}
.services_card:hover .services_btn_underline { width: 100%; }
.services_card_overlay {
  position: absolute; inset: 0;
  background: rgba(17,17,17,0.25);
  z-index: 2;
  transition: background 0.4s;
}
.services_card:hover .services_card_overlay { background: rgba(17,17,17,0.1); }
.services_card_gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(17,17,17,0.95) 100%);
  z-index: 2;
}
.carousel_card_img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* =========================================================
   ABOUT SECTION (Statement + Counters)
   ========================================================= */
.section_about {
  padding: 7rem 0;
  background: #111;
}
.about_wrapper { /* u-container */ }
.about_heading {
  max-width: 1100px;
  margin-bottom: 5rem;
  color: #fff;
}
.about_nums {
  display: flex;
  align-items: center;
  gap: 0;
}
.about_num {
  flex: 1;
  text-align: center;
}
.about_num_title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.about_num_title_inner { display: inline; }
.about_nums_divider {
  width: 1px;
  height: 80px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* =========================================================
   ADVANTAGES SECTION (Pinned Scroll Accordion)
   ========================================================= */
.section_advantages {
  position: relative;
  background: #111;
}
/* Height = 300vh so pin works for all 4 steps */
.advantages_container { /* u-container-wide */ }
.advantages_wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  padding: 5rem 0;
}
.advantages_heading {
  color: #fff;
  margin-bottom: 3rem;
}
.advantages_list { display: flex; flex-direction: column; }
.advantage {
  position: relative;
  padding: 2rem 0;
  cursor: pointer;
}
.advantage_header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.advantage_num {
  position: relative;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.advantage_num_title {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #fff;
  position: relative;
  z-index: 2;
}
.advantage_num_bg {
  position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,0.12);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s;
}
.advantage .u-h4 {
  color: rgba(255,255,255,0.35);
  transition: color 0.4s;
  flex: 1;
}
/* Active item */
.advantage.is-active .u-h4 { color: #fff; }
.advantage.is-active .advantage_num_bg { opacity: 1; }
.advantage_body {
  height: 0;
  overflow: hidden;
  padding-left: calc(44px + 1.25rem);
  transition: height 0.5s cubic-bezier(0.23,1,0.32,1);
}
.advantage_body_text {
  color: rgba(255,255,255,0.55);
  font-size: 0.9375rem;
  line-height: 1.65;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}
.advantage_divider {
  position: absolute;
  bottom: 0; left: 0;
  width: 0%;
  height: 1px;
  background: rgba(255,255,255,0.12);
  transition: width 1s cubic-bezier(0.23,1,0.32,1);
}
.advantage.is-active .advantage_divider { width: 100%; }
/* Right side images */
.advantageg_img_wrapper {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #1a1a1a;
}
.advantage_img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.23,1,0.32,1);
  will-change: opacity;
}
.advantage_img.is-active { opacity: 1; }

/* =========================================================
   CTA SECTION
   ========================================================= */
.section_cta {
  position: relative;
  overflow: hidden;
  min-height: 65vh;
  display: flex;
  align-items: center;
}
.cta_container {
  position: relative;
  z-index: 3;
  padding: 8rem 0;
}
.cta_wrapper { max-width: 800px; }
.cta_heading {
  color: #fff;
  margin-bottom: 2.5rem;
}
.cta_heading .line { overflow: hidden; }
.cta_heading .line-inner { display: block; transform: translateY(110%); }
.cta_btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta_image_overlay {
  position: absolute; inset: 0;
  background: rgba(17,17,17,0.75);
  z-index: 2;
}
.cta_bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  will-change: transform;
}

/* =========================================================
   FAQ SECTION
   ========================================================= */
.section_faq {
  padding: 6rem 0;
  background: #111;
}
.faq_wrapper {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}
.faq_heading { color: #fff; position: sticky; top: 6rem; }
.faq_heading .line { overflow: hidden; }
.faq_heading .line-inner { display: block; }
.faq { display: flex; flex-direction: column; }
.faq_item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.faq_item_header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 0;
  cursor: pointer;
}
.underline_faq_item {
  position: absolute;
  top: 0; left: 0;
  width: 0%;
  height: 1px;
  background: rgba(255,255,255,0.2);
  transition: width 0.4s cubic-bezier(0.23,1,0.32,1);
}
.faq_item.is-active .underline_faq_item,
.faq_item_header:hover .underline_faq_item { width: 100%; }
.faq_item_title {
  flex: 1;
  color: #fff;
  transition: color 0.25s;
}
.faq_item_header_icon {
  width: 18px; height: 18px;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1), color 0.25s;
}
.faq_item.is-active .faq_item_header_icon {
  transform: rotate(45deg);
  color: #fff;
}
.faq_item_body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.23,1,0.32,1);
}
.faq_item.is-active .faq_item_body { max-height: 400px; }
.faq_item_text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  padding-bottom: 1.75rem;
}

/* =========================================================
   FOOTER SECTION
   ========================================================= */
.section_footer {
  background: #0d0d0d;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 5rem 0 2.5rem;
}
.footer_wrapper {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}
.footer_cols {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.footer_cta {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.footer_heading { color: #fff; }
.footer_heading .line { overflow: hidden; }
.footer_heading .line-inner { display: block; }
.footer_cols_wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.footer_col_title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.5rem;
}
.footer_col_list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer_col_list_item { position: relative; }
.footer_col_list_item_link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.25s;
}
.footer_col_list_item_link:hover { color: #fff; }
.footer_col_list_item_link_address {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}
.footer_col_list_socials {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
}
.footer_col_list_item_link_social_icon {
  width: 20px; height: 20px;
  color: rgba(255,255,255,0.5);
  transition: color 0.25s;
}
.footer_col_list_item_link_social:hover .footer_col_list_item_link_social_icon { color: #fff; }
.footer_bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer_copyright {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
}
.footer_bottom_link {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  position: relative;
  transition: color 0.25s;
}
.footer_bottom_link:hover { color: rgba(255,255,255,0.7); }
.footer_bottom_link .u-underline { background: rgba(255,255,255,0.35); }

/* =========================================================
   BOOKING POPUP
   ========================================================= */
.popup_booking {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.23,1,0.32,1), visibility 0.4s;
}
.popup_booking.is-open { opacity: 1; visibility: visible; }
.popup_overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}
.popup_booking_content {
  position: relative;
  z-index: 2;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 3rem;
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(2rem);
  transition: transform 0.5s cubic-bezier(0.23,1,0.32,1);
}
.popup_booking.is-open .popup_booking_content { transform: translateY(0); }
.popup_booking_close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 24px; height: 24px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  z-index: 3;
  transition: color 0.25s;
}
.popup_booking_close:hover { color: #fff; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .footer_cols_wrapper { grid-template-columns: repeat(2, 1fr); }
  
  /* Turnkey section mobile */
  .section_turnkey > .u-container-wide {
    flex-direction: column !important;
    gap: 2.5rem !important;
  }
  .section_turnkey > .u-container-wide > div:first-child {
    min-width: unset !important;
  }
  .section_turnkey > .u-container-wide > div:last-child {
    flex: unset !important;
    width: 100% !important;
  }

  /* Hero buttons stack on tablet */
  .hero_btns { flex-wrap: wrap; }

  /* Portfolio intro tablet */
  .portfolio_intro { padding: 0 1.5rem 2.5rem; }

  /* Gallery grid tablet */
  .gallery_grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Portfolio tabs wrap */
  .portfolio_tabs { flex-wrap: wrap; gap: 0.5rem; justify-content: flex-start; }
  .portfolio_tab { font-size: 0.7rem !important; padding: 0.5rem 0.85rem !important; }
}

/* =========================================================
   MOBILE SMALL (max-width: 480px) — Full overhaul
   ========================================================= */
@media (max-width: 480px) {

  /* --- Global --- */
  html { font-size: 15px; }
  .u-container, .u-container-wide { width: 92%; }

  /* --- Typography fixes: prevent overflow & overlap --- */
  .u-h1 { font-size: clamp(1.5rem, 6.5vw, 2rem); line-height: 1.2; }
  .u-h2 { font-size: clamp(1.2rem, 5.5vw, 1.65rem); line-height: 1.25; }
  .u-h3 { font-size: clamp(1rem, 4.5vw, 1.3rem); line-height: 1.3; }
  .u-h4 { font-size: clamp(0.85rem, 3.5vw, 1rem); line-height: 1.5; }
  .u-subheading-l { font-size: 0.65rem; letter-spacing: 0.07em; }
  .u-subheading-m { font-size: 0.85rem; }

  /* --- Navbar --- */
  .navbar { padding: 1.1rem 0; }
  .navbar_logo { width: 90px; }

  /* --- Hero --- */
  .section_hero { height: 100svh; min-height: 480px; }
  .hero_wrapper { padding-bottom: 3.5rem; width: 92%; }
  .hero_content { margin-bottom: 1.5rem; }
  .hero_subheading { margin-bottom: 0.75rem; font-size: 0.6rem; letter-spacing: 0.06em; }
  .hero_btns {
    flex-direction: column;
    gap: 0.65rem;
    align-items: stretch;
  }
  .u-btn { width: 100%; }
  .u-btn-front, .u-btn-back {
    padding: 0.75rem 1.25rem;
    font-size: 0.7rem;
    justify-content: center;
    width: 100%;
  }

  /* Hero dropdown full width */
  .hero_dd_wrapper { width: 100%; }
  .hero_dd_menu {
    width: 100%;
    min-width: unset;
    left: 0;
    right: 0;
  }

  /* --- Portfolio Section --- */
  .section_portfolio { padding: 3rem 0 3.5rem; }
  .portfolio_intro {
    flex-direction: column;
    gap: 0.6rem;
    padding: 0 0.4rem 1.75rem;
    text-align: left;
  }
  .portfolio_intro_label { padding-right: 0; font-size: 0.6rem; }
  .portfolio_intro_heading { text-align: left; font-size: 1.15rem; }
  .portfolio_intro_link { padding-left: 0; font-size: 0.7rem; }
  .pf_masonry {
    grid-template-columns: 1fr;
    height: auto;
    gap: 3px;
  }
  .pf_col_center, .pf_col_right { display: none; }
  .pf_col { min-height: 280px; gap: 3px; }
  .pf_item_label { padding: 1rem 1.25rem; }
  .pf_item_title { font-size: 0.95rem; }
  .pf_item_cat { font-size: 0.6rem; }

  /* --- Services: flat 2-column grid on mobile (no 3D) --- */
  .section_services { padding: 3.5rem 0 4rem; }
  .services_heading {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    line-height: 1.45;
  }
  .carousel_wrapper {
    height: auto;
    min-height: auto;
    overflow: visible;
    perspective: none;
  }
  .carousel_mask { display: none; }
  .carousel_container { perspective: none; }
  .carousel {
    transform: none !important;
    transform-style: flat;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
  }
  .carousel_card {
    position: relative !important;
    width: 100% !important;
    height: 48vw !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    transform: none !important;
    backface-visibility: unset !important;
  }
  /* Hide empty carousel slots */
  .carousel_card:not([index="1"]):not([index="2"]):not([index="3"]):not([index="4"]) {
    display: none !important;
  }
  .services_card { padding: 1.25rem; }
  .services_card_title { font-size: 0.95rem; margin-bottom: 0.75rem; }
  .service_btn_text { font-size: 0.7rem; }

  /* --- Turnkey Section --- */
  .section_turnkey { padding: 3rem 0 !important; }
  .section_turnkey > .u-container-wide {
    flex-direction: column !important;
    gap: 2rem !important;
  }
  .section_turnkey div[style*="min-width: 300px"] {
    min-width: unset !important;
    flex: unset !important;
  }
  .section_turnkey h2 { font-size: 1.15rem !important; line-height: 1.4 !important; }
  .section_turnkey p { font-size: 0.875rem !important; margin-bottom: 1.5rem !important; }
  .section_turnkey div[style*="flex: 0 0 340px"] {
    flex: unset !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .section_turnkey div[style*="display: flex; gap: 2rem"] {
    flex-direction: column !important;
    gap: 1rem !important;
  }
  .section_turnkey span[style*="font-size: 0.875rem"] {
    font-size: 0.75rem !important;
  }

  /* --- About Section --- */
  .section_about { padding: 3.5rem 0; }
  .about_heading { font-size: 1.1rem; margin-bottom: 2.5rem; line-height: 1.5; }
  .about_nums { flex-direction: column; gap: 1.5rem; align-items: center; }
  .about_num { min-width: unset; width: 100%; text-align: center; }
  .about_num_title { font-size: 2.25rem; }
  .about_nums_divider { display: none; }

  /* --- Advantages Section --- */
  .section_advantages { padding: 0; }
  .advantages_wrapper { grid-template-columns: 1fr; gap: 0; padding: 2.5rem 0; }
  .advantages_heading { font-size: 1.1rem; margin-bottom: 1.75rem; }
  .advantageg_img_wrapper { display: none; }
  .advantage { padding: 1.25rem 0; }
  .advantage_heading { font-size: 0.9rem !important; }
  .advantage_body { padding-left: 0; }
  .advantage_body_text { font-size: 0.875rem; }
  .advantage_num { width: 36px; height: 36px; }

  /* --- FAQ Section --- */
  .section_faq { padding: 3.5rem 0; }
  .faq_wrapper { grid-template-columns: 1fr; gap: 1.75rem; }
  .faq_heading { font-size: 1.2rem; }
  .faq_item_header { padding: 1rem 0; gap: 0.75rem; }
  .faq_item_title { font-size: 0.875rem !important; line-height: 1.5; }
  .faq_item_text { font-size: 0.875rem; padding-bottom: 1.25rem; }

  /* --- Footer Section --- */
  .section_footer { padding: 3rem 0 1.75rem; }
  .footer_wrapper { gap: 2.5rem; }
  .footer_cols { grid-template-columns: 1fr; gap: 2rem; }
  .footer_cols_wrapper { grid-template-columns: 1fr; gap: 2rem; }
  .footer_col_list_item_link { font-size: 0.875rem; }
  .footer_bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .footer_copyright { font-size: 0.75rem; }

  /* --- Projects/Gallery Page Fixes --- */
  .portfolio_tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 1rem 0.5rem;
    justify-content: center;
  }
  .portfolio_tab {
    font-size: 0.6rem !important;
    padding: 0.45rem 0.65rem !important;
    letter-spacing: 0.04em !important;
    white-space: nowrap;
  }
  .gallery_grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 3px !important;
    padding: 0 !important;
  }
  .gallery_item { height: 180px !important; }
  .gallery_item_info {
    padding: 0.65rem !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
  }
  .gallery_item_title { font-size: 0.75rem !important; line-height: 1.3; }
  .gallery_item_cat { font-size: 0.55rem !important; }

  /* Category overview grid */
  .pf_overview_grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 3px !important;
  }
  .pf_overview_card { height: 160px !important; }
  .pf_overview_label { font-size: 0.8rem !important; padding: 0.75rem !important; }
}
