/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */
:root {
  --color-bg: #ffffff;
  --color-text: #141414;
  --color-text-muted: rgba(20, 20, 20, 0.65);
  --color-border: rgba(20, 20, 20, 0.12);
  --color-border-hover: rgba(20, 20, 20, 0.4);
  --font-primary: 'Lato', sans-serif;
  --container-max: 1700px;
  --section-gap: 120px;
  --section-gap-mobile: 60px;
  --transition-default: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--color-text);
}

h1 {
  font-size: clamp(60px, 10vw, 180px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(34px, 4.2vw, 64px);
  font-weight: 700;
  line-height: 1.18;
}

h3 {
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.3;
}

h4 {
  font-size: 18px;
  font-weight: 700;
}

p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 44px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.site-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-default);
  border: 1px solid #141414;
  background: #141414;
  color: #F7F6F2;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.site-button:hover {
  background: transparent;
  color: #141414;
  border-color: #141414;
}

.site-button.white-bg {
  background: #141414;
  color: #F7F6F2;
  border-color: #141414;
}

.site-button.white-bg:hover {
  background: transparent;
  color: #141414;
}

.button-text {
  position: relative;
  z-index: 1;
}

.button-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F7F6F2;
  color: #141414;
  transition: all var(--transition-default);
  flex-shrink: 0;
}

.site-button:hover .button-icon-wrapper {
  transform: rotate(45deg);
  background: #141414;
  color: #F7F6F2;
}

.site-button.white-bg .button-icon-wrapper {
  background: #F7F6F2;
  color: #141414;
}

.site-button.white-bg:hover .button-icon-wrapper {
  background: #141414;
  color: #F7F6F2;
}

.button-icon {
  width: 13px;
  height: 12px;
  display: flex;
}

.button-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.secondary-button {
  background: transparent;
  color: #141414;
  border-color: var(--color-border);
}

.secondary-button .button-icon-wrapper {
  background: #141414;
  color: #F7F6F2;
}

.secondary-button:hover {
  background: #141414;
  color: #F7F6F2;
  border-color: #141414;
}

.secondary-button:hover .button-icon-wrapper {
  background: #F7F6F2;
  color: #141414;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
}

.logo-icon-svg {
  color: var(--color-text);
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo-text-eksa {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-transform: uppercase;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.navbar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo-img {
  height: 24px;
  max-width: 140px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-link:hover .site-logo-img {
  transform: scale(1.03);
}

.footer-logo-img {
  height: 28px;
  max-width: 150px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ==========================================================================
   INDIVIDUAL SEPARATE FLOATING ROUNDED PILL CHIPS FOR EACH MENU ITEM
   ========================================================================== */
.nav-menu {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.nav-menu > ul {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  position: relative;
  padding: 8px 20px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 20, 20, 0.14);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.nav-menu a:hover {
  background: #141414;
  color: #ffffff;
  border-color: #141414;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.nav-arrow {
  width: 9px;
  height: 5px;
  color: currentColor;
  transition: transform 0.3s ease;
}

.has-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}

.site-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all var(--transition-default);
  border: 1px solid rgba(20, 20, 20, 0.25);
  background: #FFFFFF;
  color: #141414;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.site-button:hover {
  border-color: #141414;
  background: #141414;
  color: #F7F6F2;
}

.button-text {
  position: relative;
  z-index: 1;
}

.button-icon-wrapper {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #141414;
  color: #F7F6F2;
  transition: all var(--transition-default);
  flex-shrink: 0;
}

.site-button:hover .button-icon-wrapper {
  background: #F7F6F2;
  color: #141414;
  transform: rotate(45deg);
}

.button-icon {
  width: 11px;
  height: 10px;
  display: flex;
}

.button-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.secondary-button {
  background: transparent;
  color: #141414;
  border-color: var(--color-border);
}

.secondary-button .button-icon-wrapper {
  background: #141414;
  color: #F7F6F2;
}

.secondary-button:hover {
  background: #141414;
  color: #F7F6F2;
  border-color: #141414;
}

.secondary-button:hover .button-icon-wrapper {
  background: #F7F6F2;
  color: #141414;
}

/* ==========================================================================
   DROPDOWN MENUS
   ========================================================================== */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 200px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  pointer-events: none;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.dropdown-menu.columns {
  min-width: 450px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.column h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  color: var(--color-text-muted);
}

.column a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color 0.3s;
}

.column a:hover {
  color: var(--color-text);
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */
.menu-toggle {
  display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 75px;
  background-color: var(--color-bg);
}

/* ==========================================================================
   USER'S UPLOADED OVERLAYS (STRICTLY MARGIN-BOUNDED, ABOVE THE FOLD)
   ========================================================================== */
.hero-user-overlays {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.user-overlay-left {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  max-width: clamp(160px, 18vw, 320px);
  object-fit: contain;
  object-position: left top;
  mix-blend-mode: multiply;
  opacity: 0.92;
}

.user-overlay-right {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 88%;
  width: auto;
  max-width: clamp(160px, 18vw, 320px);
  object-fit: contain;
  object-position: right bottom;
  mix-blend-mode: multiply;
  opacity: 0.88;
}

.hero-loader {
  position: absolute;
  inset: 0;
  background: var(--color-bg);
  z-index: 10;
  pointer-events: none;
  animation: loaderOut 0.8s 0.3s forwards;
}

@keyframes loaderOut {
  to { opacity: 0; pointer-events: none; }
}

.hero-title-wrapper {
  height: calc(100vh - 85px);
  min-height: 520px;
  max-height: 760px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  padding: 10px 20px 20px;
  box-sizing: border-box;
}

.hero-video-text-mask {
  width: 90%;
  max-width: 1050px;
  height: clamp(220px, 30vw, 380px);
  position: relative;
  overflow: hidden;
  -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 350' preserveAspectRatio='xMidYMid meet'%3E%3Ctext x='50%25' y='27%25' text-anchor='middle' dominant-baseline='central' font-family='Lato, sans-serif' font-weight='900' font-size='200' letter-spacing='-0.02em' fill='black'%3EEKSA%3C/text%3E%3Ctext x='50%25' y='74%25' text-anchor='middle' dominant-baseline='central' font-family='Lato, sans-serif' font-weight='900' font-size='135' letter-spacing='-0.02em' fill='black'%3EMİMARLIK%3C/text%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 350' preserveAspectRatio='xMidYMid meet'%3E%3Ctext x='50%25' y='27%25' text-anchor='middle' dominant-baseline='central' font-family='Lato, sans-serif' font-weight='900' font-size='200' letter-spacing='-0.02em' fill='black'%3EEKSA%3C/text%3E%3Ctext x='50%25' y='74%25' text-anchor='middle' dominant-baseline='central' font-family='Lato, sans-serif' font-weight='900' font-size='135' letter-spacing='-0.02em' fill='black'%3EMİMARLIK%3C/text%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  animation: heroTitleFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

/* ==========================================================================
   HERO SPACEBAR CTA BUTTON
   ========================================================================== */
.hero-cta-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-spacebar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 320px;
  height: 52px;
  padding: 0 10px 0 24px;
  border-radius: 32px;
  background: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.18);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-spacebar-cta .cta-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #141414;
  transition: color 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-spacebar-cta .cta-icon-wrapper {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #141414;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94), color 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-spacebar-cta:hover {
  background: #151515;
  border-color: #151515;
  transform: scale(1.015);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}

.hero-spacebar-cta:hover .cta-text {
  color: #ffffff;
}

.hero-spacebar-cta:hover .cta-icon-wrapper {
  background: #ffffff;
  color: #141414;
  transform: translateX(3px);
}

@media screen and (max-width: 767px) {
  .hero-cta-wrapper {
    margin-top: 32px;
  }
  .hero-spacebar-cta {
    width: 85%;
    max-width: 360px;
    height: 56px;
    padding: 0 12px 0 20px;
  }
  .hero-spacebar-cta .cta-text {
    font-size: 12px;
    letter-spacing: 0.05em;
  }
}

@keyframes heroTitleFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.hero-mask-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner {
  margin-top: 40px;
  padding-top: 20px;
  position: relative;
  overflow: hidden;
  width: 100%;
}

@keyframes heroBannerSkew {
  to {
    opacity: 1;
    transform: translateY(0) skewY(0);
  }
}

.hero-banner-image {
  width: 100%;
  height: auto;
  max-height: 850px;
  object-fit: cover;
  display: block;
}

.hero-content-block {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  margin-top: 60px;
  padding-bottom: 80px;
  align-items: start;
}

.hero-content-left h2 {
  font-size: clamp(34px, 4.2vw, 64px);
  font-weight: 700;
  line-height: 1.18;
}

.hero-content-right p {
  color: var(--color-text-muted);
  margin-bottom: 28px;
  font-size: 18px;
  line-height: 1.7;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
  background: var(--color-bg);
  padding: var(--section-gap) 0;
}

.subtitle-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.subtitle-icon {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1;
}

.subtitle-text {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.subtitle-line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.8s var(--transition-default);
}

.subtitle-wrapper.animated .subtitle-line {
  transform: scaleX(1);
}

.about-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
}

.about-image-wrapper {
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.about-image {
  width: 100%;
  height: 540px;
  object-fit: cover;
  transition: transform 0.6s var(--transition-default);
}

.about-image-wrapper:hover .about-image {
  transform: scale(1.05);
}

.about-more-content {
  margin-top: 24px;
}

.about-more-content p {
  margin-bottom: 24px;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
  background: var(--color-bg);
  padding: var(--section-gap) 0;
}

.section-title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  overflow: hidden;
}

.service-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16/10;
}

.service-image-normal {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition-default);
}

.service-card:hover .service-image-normal {
  transform: scale(1.05);
}

.service-image-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.5s var(--transition-default);
}

.service-card:hover .service-image-hover {
  clip-path: inset(0 0 0 0);
}

.service-content {
  padding-top: 24px;
}

.service-header {
  display: flex;
  flex-direction: column;
}

.service-serial {
  color: var(--color-text-muted);
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.service-header h3 {
  margin-bottom: 16px;
}

.service-content p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.7;
}

/* ==========================================================================
   RECENT WORKS SECTION
   ========================================================================== */
.recent-works-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.recent-works-container {
  position: relative;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 44px;
}

.recent-work-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 60px;
  font-size: clamp(60px, 12vw, 160px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-text);
  white-space: nowrap;
}

.title-left, .title-right {
  display: inline-block;
}

.animated-projects-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
  padding: 0;
  max-width: var(--container-max);
  margin: 0 auto;
}

.project-card {
  width: 100%;
  height: 480px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.project-card:hover {
  transform: scale(1.05);
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
  border-radius: 12px;
  pointer-events: none;
}

.project-content-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.project-category {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.project-title,
.project-title h3,
.project-content-overlay h3 {
  color: #ffffff !important;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.underline-anim {
  position: relative;
  display: inline-block;
}
.underline-anim::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--transition-default);
}
.underline-anim:hover::after {
  transform: scaleX(1);
}

/* ==========================================================================
   VIDEO CTA SECTION
   ========================================================================== */
.video-cta-section {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-play-btn {
  position: relative;
  z-index: 2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.video-icon-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(20, 20, 20, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.3s, transform 0.3s;
}

.video-play-btn:hover .video-icon-circle {
  background: rgba(20, 20, 20, 0.08);
  transform: scale(1.05);
}

.circle-one, .circle-two {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(20, 20, 20, 0.15);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.circle-one {
  width: 160px;
  height: 160px;
  animation: pulse 2s infinite;
}

.circle-two {
  width: 200px;
  height: 200px;
  animation: pulse 2s 0.5s infinite;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}

.video-cta-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://cdn.prod.website-files.com/674be2e56067c08a08f60d4c/674d2cccf47212f0feca75af_Home%20Hero%20Image%20.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.video-cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(247, 246, 242, 0.5);
}

/* ==========================================================================
   TESTIMONIAL SECTION
   ========================================================================== */
.testimonial-section {
  background: var(--color-bg);
  padding: var(--section-gap) 0;
}

.testimonial-header {
  margin-bottom: 40px;
  position: relative;
}

.testimonial-slider-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 16px;
}

.nav-prev, .nav-next {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  background: transparent;
  color: var(--color-text);
}

.nav-prev:hover, .nav-next:hover {
  border-color: var(--color-text);
  background: #141414;
  color: #F7F6F2;
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
}

.testimonial-slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.testimonial-slide.active {
  display: grid;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.testimonial-content {
  padding-right: 40px;
}

.testimonial-quote {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 32px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-text);
  font-size: 18px;
}

.author-info span {
  color: var(--color-text-muted);
  font-size: 14px;
}

.testimonial-image-wrapper {
  overflow: hidden;
  border-radius: 8px;
  height: 480px;
}

.testimonial-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.6s ease;
}

.testimonial-image-wrapper:hover .testimonial-image {
  transform: scale(1.03);
}

/* ==========================================================================
   BLOG SECTION
   ========================================================================== */
.blog-section {
  background: var(--color-bg);
  padding: var(--section-gap) 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.blog-image-wrapper {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  display: block;
}

.blog-image-normal,
.blog-image-hover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.blog-card:hover .blog-image-hover {
  clip-path: inset(0 0 0 0);
}

.blog-content {
  padding-top: 20px;
}

.blog-category {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  display: inline-block;
}

.blog-title-link h3 {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.4;
  color: var(--color-text);
  transition: color 0.3s;
}
.blog-card:hover .blog-title-link h3 {
  color: var(--color-text-muted);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 24px;
  color: var(--color-text);
}

.cta-content p {
  color: var(--color-text-muted);
  margin-bottom: 32px;
  font-size: 16px;
}

.cta-parallax-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('https://cdn.prod.website-files.com/674be2e56067c08a08f60d4c/674d2cccf47212f0feca75af_Home%20Hero%20Image%20.jpg');
  background-size: cover;
  background-position: center;
}

.cta-parallax-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(247, 246, 242, 0.85);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.footer-top {
  padding: 80px 0;
  text-align: center;
}

.footer-cta-title {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 24px;
}

.footer-email-link {
  display: inline-block;
  font-size: clamp(24px, 4vw, 40px);
  color: var(--color-text);
  font-weight: 700;
  position: relative;
}

.footer-email-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.4s var(--transition-default);
}

.footer-email-link:hover::after {
  transform: scaleX(0);
  transform-origin: right;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
  padding-bottom: 60px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color 0.3s;
}

.footer-col ul a:hover {
  color: var(--color-text);
}

.brand-col p {
  color: var(--color-text-muted);
  font-size: 14px;
  margin: 20px 0;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-links a {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.social-links a:hover {
  border-color: var(--color-text);
  background: rgba(20, 20, 20, 0.08);
}

.footer-large-title {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  overflow: hidden;
  font-size: clamp(80px, 15vw, 200px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-border);
}

.footer-copyright {
  text-align: center;
  padding-bottom: 20px;
}

.footer-copyright p {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   SCROLL TO TOP
   ========================================================================== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-text);
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-90deg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  border: none;
  cursor: pointer;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: rotate(-90deg) scale(1.1);
}

.scroll-to-top svg {
  width: 11px;
  height: 10px;
  fill: currentColor;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.animate-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET OPTIMIZATION)
   ========================================================================== */

/* Tablet & Mobile (max-width: 991px) */
@media screen and (max-width: 991px) {
  .header {
    padding: 12px 0;
  }

  .header.scrolled {
    padding: 10px 0;
  }

  .container {
    padding: 0 20px !important;
  }

  /* Header action button: hide on mobile to give room to hamburger */
  .header .site-button {
    display: none;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: rgba(20, 20, 20, 0.05);
    border: 1px solid rgba(20, 20, 20, 0.1);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
    transition: all 0.3s ease;
  }

  .menu-toggle:hover {
    background: #141414;
  }

  .menu-toggle:hover span {
    background: #ffffff;
  }
  
  .menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
    display: block;
  }
  
  .menu-toggle.active {
    background: #141414;
  }

  .menu-toggle.active span {
    background: #ffffff;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Fullscreen Floating Glass Mobile Drawer */
  .nav-menu > ul {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    z-index: 10000;
    padding: 80px 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .nav-menu > ul.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-menu li {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .nav-menu a {
    font-size: 16px;
    font-weight: 700;
    justify-content: center;
    padding: 14px 24px;
    width: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  }

  /* Hero Section on Tablet/Mobile */
  .hero-section {
    padding-top: 65px;
    min-height: 100svh;
  }

  .hero-title-wrapper {
    height: auto;
    min-height: calc(100svh - 65px);
    padding: 20px 16px 30px;
    justify-content: center;
  }

  .hero-video-text-mask {
    width: 100%;
    max-width: 100%;
    height: clamp(170px, 48vw, 320px);
  }

  .user-overlay-left,
  .user-overlay-right {
    max-width: clamp(100px, 20vw, 180px);
    opacity: 0.4;
  }

  .hero-cta-wrapper {
    margin-top: 20px;
  }

  .hero-spacebar-cta {
    width: 100%;
    max-width: 300px;
    height: 48px;
    padding: 0 10px 0 20px;
  }

  .hero-spacebar-cta .cta-text {
    font-size: 11px;
    letter-spacing: 0.05em;
  }

  .hero-spacebar-cta .cta-icon-wrapper {
    width: 28px;
    height: 28px;
  }

  /* Grids & Cards */
  .hero-content-block,
  .services-grid,
  .blog-grid,
  .testimonial-slide,
  .dual-video-grid,
  .vm-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .vm-card {
    padding: 32px 24px !important;
    border-radius: 24px;
  }

  .vm-title {
    font-size: 24px;
  }

  .vm-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .animated-projects-wrapper {
    flex-direction: column !important;
    align-items: center;
    gap: 24px;
    width: 100%;
  }
  
  .project-card {
    width: 100% !important;
    max-width: 100% !important;
    height: 280px !important;
    border-radius: 20px;
  }

  .project-overlay {
    opacity: 1 !important;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  }

  .project-info {
    transform: translateY(0) !important;
  }

  .footer-bottom {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }

  .recent-work-title {
    font-size: clamp(36px, 8vw, 64px);
  }
}

/* Mobile (max-width: 767px) */
@media screen and (max-width: 767px) {
  .hero-video-text-mask {
    height: clamp(140px, 44vw, 240px);
  }

  .user-overlay-left,
  .user-overlay-right {
    max-width: 90px;
    opacity: 0.25;
  }

  .about-image-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    height: 240px !important;
  }

  .video-card-title {
    padding: 16px 18px;
  }

  .video-card-title h3 {
    font-size: 17px;
  }

  .offer-modal-content {
    width: 94% !important;
    max-width: 100% !important;
    padding: 24px 18px !important;
    border-radius: 20px !important;
  }

  .offer-modal-header h3 {
    font-size: 20px !important;
  }
}

/* Small Mobile (max-width: 479px) */
@media screen and (max-width: 479px) {
  .hero-video-text-mask {
    height: 140px;
  }

  .hero-spacebar-cta {
    max-width: 270px;
    height: 46px;
    padding: 0 8px 0 16px;
  }

  .hero-spacebar-cta .cta-text {
    font-size: 10px;
  }

  .recent-work-title {
    font-size: 32px;
  }

  .site-button {
    font-size: 12px;
    padding: 6px 6px 6px 16px;
  }
}

.video-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(20, 20, 20, 0.12);
  background: #000000;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
}

.dual-project-video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.video-card-title {
  padding: 24px;
  background: #ffffff;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
}

.video-card-title h3 {
  font-size: 20px;
  font-weight: 900;
  color: #141414;
}

@media screen and (max-width: 991px) {
  .dual-video-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   INTERACTIVE PROJECT LIGHTBOX GALLERY MODAL
   ========================================================================== */
.project-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.project-gallery-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-header {
  width: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
}

.modal-title-box h3 {
  color: #ffffff !important;
  font-size: 28px;
  font-weight: 900;
}

.modal-title-box span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.modal-close-btn:hover {
  background: #ffffff;
  color: #000000;
}

.modal-main-stage {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-main-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-nav-btn:hover {
  background: #ffffff;
  color: #000000;
}

.modal-nav-prev { left: 10px; }
.modal-nav-next { right: 10px; }

.modal-thumbnails {
  width: 100%;
  max-width: 1200px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}

.modal-thumb {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.modal-thumb.active,
.modal-thumb:hover {
  opacity: 1;
  border-color: #ffffff;
}

@media screen and (max-width: 991px) {
  .vm-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SWEET PAGE TRANSITION LOADING SCREEN (PURE WHITE & ROTATING SPINNER)
   ========================================================================== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999999;
  background: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.page-loader.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 4px solid rgba(20, 20, 20, 0.08);
  border-top-color: #141414;
  border-right-color: #141414;
  animation: loaderSpin 0.75s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

.loader-brand-text {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #141414;
}

@keyframes loaderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
