/* assets/css/home.css */

/* Remove default header space for the split screen */
.split-hero-container {
  display: flex;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Left Pane */
.split-left {
  width: 50%;
  background-color: var(--color-bg-main);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4rem 0 4rem 4.5rem;
}

.brand-logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--color-text-main);
}

.hero-text-wrapper {
  max-width: 100%;
  margin-top: -5vh;
}

.hero-title {
  font-size: clamp(3.25rem, 5.25vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.hero-desc {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 750px;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.bottom-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.bottom-nav a {
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-text-main);
  transition: transform var(--transition-normal), color var(--transition-fast), padding-left var(--transition-normal);
  display: inline-block;
  transform-origin: left;
  letter-spacing: -0.02em;
}

.bottom-nav a:hover {
  padding-left: 1rem;
  color: var(--color-text-muted);
}

/* Right Pane */
.split-right {
  width: 50%;
  position: relative;
}

/* Floating Card Overlay */
.floating-card-positioner {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  /* Above carousel images */
  width: 420px;
}

.floating-card-wrapper {
  width: 100%;
}

.floating-card {
  background: rgb(244, 243, 240);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glass);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

/* Dynamic Status Card Refinement */
.dynamic-status-card {
  text-align: left;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  gap: 1.25rem;
  min-height: 140px;
}

.status-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.location-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.icon-location {
  opacity: 0.4;
  margin-top: -1px;
}

.location {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-main);
  opacity: 0.6;
}

.clock-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-clock {
  opacity: 0.4;
  margin-right: 0.25rem;
}

.current-time {
  font-family: var(--font-primary);
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-main);
  letter-spacing: 0.02em;
}

.status-body {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.status-icon-wrapper {
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}

.status-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.status-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.status-msg {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin: 0;
}

.btn-wrapper {
  display: inline-block;
}

/* Carousel System */
.carousel-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Navigation Arrows */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  padding: 1rem;
}

.carousel-nav svg {
  width: 40px;
  height: 40px;
  transition: transform 0.4s var(--transition-normal), filter 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  /* Ensures visibility on light images */
}

.carousel-nav.prev {
  left: 1.5rem;
}

.carousel-nav.next {
  right: 1.5rem;
}

.carousel-nav:hover {
  transform: translateY(-50%) scale(1.3);
}

/* Pagination Dots */
.pagination-dots {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 25;
  /* Above everything */
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.dot.active {
  background-color: #fff;
  transform: scale(1.4);
}

@media (max-width: 991px) {
  .expertise-card {
    grid-column: span 12 !important;
  }
}

/* About Intro Section (Based on Image) */
.about-intro-section {
  background-color: var(--color-bg-main);
  padding: 12rem 0;
}

/* About Intro Section (Premium Editorial) */
.about-intro-section {
  background-color: var(--color-bg-main);
  padding: 150px 0 100px 0;
  border-top: 1px solid var(--color-border);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  /* Clean, wide separation between columns */
  align-items: start;
}

.intro-label-col {
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
}

.label-text {
  font-size: 18px;
  /* Increased as requested */
  font-weight: 600;
  letter-spacing: 0.2em;
  /* Wide, architectural spacing */
  text-transform: uppercase;
  color: var(--color-text-muted);
  /* Softer color for hierarchy */
  line-height: 1;
}

.intro-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-top: 4rem;
  overflow: hidden;
  border-radius: 12px;
  /* Increased slightly for a modern touch */
}

.intro-img-horizontal {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  /* Grayscale removed as requested */
}

.intro-image-wrapper:hover .intro-img-horizontal {
  transform: scale(1.03);
}

.intro-content-col {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  align-items: flex-start;
}

.intro-statement {
  font-size: 64px;
  line-height: 70.4px;
  /* 1.1 ratio */
  letter-spacing: -2.6px;
  color: #1A1A18;
  font-weight: 600;
  margin: 0;
  margin-bottom: 2rem;
}

.intro-description {
  font-size: 20px;
  line-height: 1.6;
  /* Resulta em 32px (20 * 1.6) */
  letter-spacing: -0.2px;
  /* Corrected subtle spacing */
  color: #666663;
  /* Specific gray requested */
  max-width: 700px;
  margin: 0;
}


/* Premium Hover Button Refined */
.intro-link-premium {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-main);
  text-decoration: none;
  position: relative;
}

.intro-link-premium .link-text {
  position: relative;
  padding-bottom: 4px;
}

.intro-link-premium .link-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-text-main);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-link-premium:hover .link-text::after {
  width: 100%;
}

.intro-link-premium .link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: transparent;
  position: relative;
  /* Essential to anchor the absolute icons */
  overflow: hidden;
  /* Essential to clip the roll effect */
}

.icon-inner {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: 104px;
  /* 52px * 2 */
  height: 100%;
  /* Fill the 52px height of parent */
  transform: translateX(-52px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.icon-slide {
  width: 52px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.arrow-icon {
  width: 20px;
  height: 20px;
  display: block;
  /* Avoid inline spacing issues */
  stroke: currentColor;
}

.intro-link-premium:hover .link-icon {
  background-color: var(--color-text-main);
  color: var(--color-bg-main);
  border-color: var(--color-text-main);
  transform: scale(1.05);
}

.intro-link-premium:hover .icon-inner {
  transform: translateX(0);
  /* Roll para a direita */
}

/* Milestones Section */
.intro-milestones {
  margin-top: 6rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(26, 26, 24, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 4rem;
}

.milestone-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-main);
  flex: 0 0 150px;
  opacity: 0.8;
}

.milestones-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.milestone-item {
  display: flex;
  flex-direction: column;
}

.milestone-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.04em;
}

.milestone-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-main);
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .intro-milestones {
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 4rem;
    padding-top: 2rem;
    align-items: center;
    text-align: center;
  }

  .milestone-label {
    flex: none;
  }

  .milestones-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    width: 100%;
  }

  .milestone-item:nth-child(1) {
    align-items: flex-start;
    text-align: left;
  }

  .milestone-item:nth-child(2) {
    align-items: center;
    text-align: center;
  }

  .milestone-item:nth-child(3) {
    align-items: flex-end;
    text-align: right;
  }
}

/* Featured Projects Section */
.featured-projects-section {
  background-color: var(--color-bg-main);
  padding: 100px 0 150px;
}

.container-large {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 2rem;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.projects-heading {
  font-size: 64px;
  line-height: 70.4px;
  /* 1.1 ratio */
  letter-spacing: -2.6px;
  color: #1A1A18;
  font-weight: 600;
  text-transform: uppercase;
  max-width: 50%;
}

.projects-subheading {
  font-size: 20px;
  line-height: 1.6;
  /* Resulta em 32px */
  letter-spacing: -0.2px;
  color: var(--color-text-muted);
  max-width: 550px;
}

.projects-list {
  display: flex;
  flex-direction: column;
}

.project-row {
  display: flex;
  gap: 6rem;
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
  /* Balanced vertical centering */
}

.project-row.is-reversed {
  flex-direction: row-reverse;
}

@media (max-width: 1024px) {
  .project-row.is-reversed {
    flex-direction: column;
    /* Standard stack on mobile */
  }
}

.project-img-col {
  width: 50%;
  flex-shrink: 0;
}

.project-img-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background-color: #f0f0f0;
}

.project-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  /* The classic 35mm/Leica ratio - elegant and dynamic */
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-row:hover .project-img {
  transform: scale(1.03);
}

.project-content-col {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-top-meta {
  margin-bottom: 4rem;
}

.project-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.project-date {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.project-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.detail-block.full-width {
  grid-column: span 2;
}

.detail-block.full-width .detail-value {
  max-width: 100%;
}

.detail-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  /* Increased for better breathing room */
}

.detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-main);
  opacity: 0.4;
}

.detail-value {
  font-size: 1rem;
  line-height: 1.6;
  /* Better for descriptions */
  color: var(--color-text-main);
  max-width: 400px;
  /* Controlled width for description readability */
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-main);
  transition: gap 0.4s ease;
  width: max-content;
  position: relative;
  padding-bottom: 8px;
  /* Space for the underline */
}

/* Global underline for text + arrow */
.project-link-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  /* Minimalist 1px thickness */
  background-color: var(--color-text-main);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-link-btn:hover::after {
  width: 100%;
}

.btn-text {
  position: relative;
  display: inline-block;
}

.project-link-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.4s ease;
  display: block;
}

.project-link-btn:hover {
  gap: 1.5rem;
}

/* Projects Section Footer */
.projects-section-footer {
  text-align: center;
  padding: 6rem 0 2rem;
  /* Reduced for better flow */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.projects-section-footer {
  text-align: center;
  padding: 50px 0 0;
  /* Removed 32px bottom padding */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  display: block;
}

.footer-cta-title {
  font-size: 64px;
  line-height: 70.4px;
  letter-spacing: -2.6px;
  color: #1A1A18;
  font-weight: 500;
  max-width: 800px;
  margin-bottom: 2.5rem;
  /* Reduced margin */
}

/* Premium Brand CTA Button */
.btn-brand-cta .icon-draw {
  width: 20px;
  height: 20px;
  transform-origin: center;
}

@media (max-width: 1024px) {
  .projects-header {
    flex-direction: column;
    gap: 2rem;
  }

  .projects-heading {
    max-width: 100%;
  }

  .project-row {
    flex-direction: column;
    gap: 3rem;
    padding: 3rem 0;
  }

  .project-img-col,
  .project-content-col {
    width: 100%;
  }

  .project-details-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 1024px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-intro-section {
    padding: 10rem 0;
  }
}

@media (max-width: 1024px) {
  .split-hero-container {
    flex-direction: column;
    height: auto;
  }

  .split-left,
  .split-right {
    width: 100%;
  }

  .split-left {
    min-height: 70vh;
    padding: 2rem;
  }

  .split-right {
    height: 70vh;
  }

  .floating-card-wrapper {
    left: 2rem;
    right: 2rem;
    width: auto;
    bottom: -3rem;
    /* overlap the section below */
  }
}

/* Projects Footer Section - Raw Minimalist */
.projects-section-footer {
  position: relative;
  padding: 15rem 0;
  margin-top: 8rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #000;
}

.footer-bg-single {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.bg-video-full,
.bg-img-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  /* Slight transparency for direct contrast */
}

.footer-cta-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
}

.footer-cta-title {
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 1.5rem 0 3rem;
  font-weight: 700;
  color: #FFFFFF;
  /* Force White */
}

.footer-eyebrow {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 700;
  color: #FFFFFF;
  /* Force White */
  opacity: 1;
  /* Remove any transparency */
}

/* Button override for white context */
.projects-section-footer .btn-dark {
  background-color: #FFFFFF;
  color: #000000;
  border: 0 !important;
  box-shadow: none;
}

.projects-section-footer .btn-dark::before {
  background-color: #000000;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
}

.projects-section-footer .btn-wrapper:hover .btn-dark {
  color: #FFFFFF;
  background-color: #000000;
  /* Sync background to prevent white bleed */
  border: 0 !important;
  box-shadow: none;
}

.projects-section-footer .btn-dark {
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  /* Force clean clip */
}

.projects-section-footer .btn-wrapper:hover .btn-dark::before {
  background-color: #000000;
}

@media (max-width: 768px) {
  .projects-section-footer {
    padding: 10rem 1.5rem;
    margin-top: 5rem;
  }
}

/* Services Home Section - Dark Theme & Shape Dividers */
.services-home-section.is-dark {
  background-color: #1A1A18;
  /* Deep rich black */
  color: #FFFFFF;
  position: relative;
  padding: 50px 0;
  z-index: 10;
}

/* Base Layout Structure (Restored) */
.services-split-layout-cards {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 6rem;
  align-items: center;
}

.services-intro-col {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.services-intro-col .projects-heading {
  max-width: 100%;
  font-size: clamp(3rem, 5vw, 4.5rem);
}

.services-intro-col .projects-subheading {
  max-width: 100%;
}

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

.service-card-block {
  padding: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.s-card-icon {
  margin-bottom: 1.5rem;
}

.s-card-icon svg {
  width: 44px;
  height: 44px;
}

.s-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.s-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.s-card-desc {
  font-size: 1rem;
  line-height: 1.6;
}

/* Shape Dividers Configuration */
.section-divider-top,
.section-divider-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
}

.section-divider-top {
  top: -99px;
  z-index: 1;
  transform: rotate(180deg) scaleX(-1);
  /* Invert horizontally while keeping rotation */
  color: #1A1A18;
}

.section-divider-bottom {
  bottom: -99px;
  z-index: 1;
  color: #1A1A18;
  transform: scaleX(-1);
  /* Horizontal inversion */
}

.section-divider-top svg,
.section-divider-bottom svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 100px;
}

/* Typography Overrides for Dark Section */
.services-home-section.is-dark .projects-heading {
  font-size: 64px;
  line-height: 70.4px;
  letter-spacing: -2.6px;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.services-home-section.is-dark .projects-subheading {
  color: #FFFFFF;
}

.services-home-section.is-dark .projects-subheading strong {
  color: #FFFFFF;
  font-weight: 700;
}

.services-home-section.is-dark .intro-link-premium {
  color: #FFFFFF;
}

.services-home-section.is-dark .intro-link-premium .link-text::after {
  background-color: #FFFFFF;
  height: 1px;
  /* Precise architectural height */
}

.services-home-section.is-dark .intro-link-premium .link-icon {
  border-color: rgba(255, 255, 255, 0.2);
}

.services-home-section.is-dark .intro-link-premium:hover .link-icon {
  background-color: #FFFFFF;
  color: #1A1A18;
  border-color: #FFFFFF;
}

/* Card Adjustments for Dark Theme */
.services-home-section.is-dark .service-card-block {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  backdrop-filter: blur(10px);
}

.services-home-section.is-dark .service-card-block:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.services-home-section.is-dark .s-card-title {
  color: #FFFFFF;
}

.services-home-section.is-dark .s-card-desc {
  color: rgba(255, 255, 255, 0.6);
}

.services-home-section.is-dark .s-card-icon svg {
  stroke: #FFFFFF;
}

@media (max-width: 1024px) {
  .services-split-layout-cards {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .services-intro-col {
    position: static;
  }

  .services-card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card-block {
    padding: 2.5rem;
  }
}

/* Contact Home Section - Dual Layout Elite */
.contact-home-section {
  padding: 150px 0 100px;
  background-color: var(--color-bg-main);
}

.contact-dual-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  /* Second column exactly the size of the image */
  gap: 6rem;
  /* Definitive gap between text and the image itself */
  align-items: center;
  /* Centered for standard editorial balance */
}

.contact-content-col {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: flex-start;
}

.contact-btns-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  /* Expanded gap for luxury editorial whitespace */
  align-items: center;
}

.secondary-btn .btn-outline {
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.secondary-btn:hover .btn-outline {
  background-color: var(--color-text-main);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.section-marker {
  display: block;
  font-size: 18px;
  font-weight: 600;
  /* Outfit Semi-bold */
  text-transform: uppercase;
  letter-spacing: 3.6px;
  line-height: 18px;
  /* Height synchronized to font-size */
  color: var(--color-text-muted);
}

.contact-home-section .intro-statement {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--color-text-main);
  max-width: 850px;
  /* More space to the right */
}

.contact-home-section .intro-description {
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 700px;
  /* Expanded for better flow */
  color: var(--color-text-muted);
  margin: 0;
}

.contact-visual-col {
  /* Div now has the exact same width as the image thanks to grid-template-columns: 1fr auto */
  width: fit-content;
}

.contact-video-container {
  position: relative;
  width: 480px;
  /* Fixed standard width */
  height: 780px;
  /* Monumental vertical expansion */
  border-radius: 40px;
  overflow: hidden;
  background-color: transparent;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.3);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Stable Clipping Fixes (Resolves grey/rectangular corner bug) */
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transform: translateZ(0);
  will-change: transform;
}

.contact-video-container:hover {
  transform: translateY(-15px) translateZ(0);
}

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

.video-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}

/* ==========================================================================
   Preloader (Landing Page Only)
   ========================================================================== */
#home-preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-main, #FAFAFA);
}

#home-preloader.preloader-hidden {
  pointer-events: none;
}

/* Staggered Horizontal Stripes */
.preloader-stripes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 0;
}

.preloader-stripes .stripe {
  flex: 1;
  background-color: var(--bg-black, #060606);
  transition: transform 0.9s cubic-bezier(0.85, 0, 0.15, 1);
}

/* Fix mobile sub-pixel 1px gaps by forcing a 1px overlap */
.preloader-stripes .stripe + .stripe {
  margin-top: -1px;
}

#home-preloader.preloader-hidden .preloader-stripes .stripe {
  transform: scaleX(0);
}

/* Alternate directions and stagger delays */
#home-preloader.preloader-hidden .preloader-stripes .stripe:nth-child(1) { transform-origin: right; transition-delay: 0.0s; }
#home-preloader.preloader-hidden .preloader-stripes .stripe:nth-child(2) { transform-origin: left; transition-delay: 0.1s; }
#home-preloader.preloader-hidden .preloader-stripes .stripe:nth-child(3) { transform-origin: right; transition-delay: 0.2s; }
#home-preloader.preloader-hidden .preloader-stripes .stripe:nth-child(4) { transform-origin: left; transition-delay: 0.3s; }
#home-preloader.preloader-hidden .preloader-stripes .stripe:nth-child(5) { transform-origin: right; transition-delay: 0.4s; }

/* Keep initial transform origin so it doesn't snap */
.preloader-stripes .stripe:nth-child(1) { transform-origin: right; }
.preloader-stripes .stripe:nth-child(2) { transform-origin: left; }
.preloader-stripes .stripe:nth-child(3) { transform-origin: right; }
.preloader-stripes .stripe:nth-child(4) { transform-origin: left; }
.preloader-stripes .stripe:nth-child(5) { transform-origin: right; }

#home-preloader.preloader-instant-hide {
  display: none !important;
}

#home-preloader.preloader-finishing .loader-number-container,
#home-preloader.preloader-finishing .loader-text {
  animation: none !important;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#home-preloader.preloader-finishing .minimal-loader-svg {
  animation: none !important;
  opacity: 0;
  transform: scale(2) rotate(-90deg);
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.preloader-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
}

.minimal-loader-container {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.95) translateY(10px);
  animation: preloader-fade 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.minimal-loader-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.loader-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 0.3;
}

.loader-circle {
  fill: none;
  stroke: var(--text-main, #FAFAFA);
  stroke-width: 0.8;
  stroke-linecap: round;
  stroke-dasharray: 301.59; /* 2 * pi * 48 */
  stroke-dashoffset: 301.59;
  /* Animação super smooth com maior duração e easing macio */
  transition: stroke-dashoffset 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.loader-number-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 1em;
  overflow: hidden;
  font-family: "Playfair Display", var(--font-clash, "Clash Display", serif);
  font-size: 6rem;
  font-weight: 300;
  color: var(--text-main, #FAFAFA);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.digit-col {
  display: flex;
  flex-direction: column;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.roll-num {
  height: 1em;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-text {
  position: absolute;
  bottom: 8vh;
  font-family: var(--font-satoshi, "Satoshi", sans-serif);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(10px);
  animation: preloader-fade 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
}

@media (max-width: 768px) {
  .loader-text {
    bottom: 15vh;
  }
}

@keyframes preloader-fade {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ==========================================================================
   GLOBAL RESPONSIVENESS FOR LANDING PAGE
   ========================================================================== */

@media (max-width: 1024px) {
  /* 1. Hero Section */
  .split-hero-container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .split-left {
    width: 100%;
    padding: 8rem 2.5rem 4rem; /* Top padding increased to avoid overlap with menu */
    min-height: 60vh;
  }

  .split-right {
    width: 100%;
    height: 65vh;
    min-height: 600px; /* Give the carousel plenty of breathing room */
  }

  .hero-title {
    font-size: clamp(3rem, 7vw, 4rem);
  }

  .floating-card-positioner {
    bottom: 2rem;
    width: 90%;
    max-width: 420px;
  }

  /* 2. About Intro */
  .about-intro-section {
    padding: 120px 0 !important;
  }

  .about-intro-section .intro-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* 3. Featured Projects */
  .featured-projects-section {
    padding: 100px 0 120px !important;
  }

  .project-row {
    flex-direction: column !important;
    gap: 3rem;
  }

  .project-img-col, .project-content-col {
    width: 100%;
  }

  .projects-heading {
    max-width: 100%;
    font-size: 48px;
    line-height: 1.1;
  }

  .projects-header {
    flex-direction: column;
    gap: 2rem;
  }

  /* 4. Contact Dual Layout */
  .contact-home-section {
    padding: 120px 0 100px !important;
  }

  .contact-dual-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .contact-video-container {
    width: 100%;
    max-width: 480px;
    height: 500px;
    margin: 0 auto;
  }

  .contact-visual-col {
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* Mobile Specifics */
  .split-left {
    padding: 6rem 1.5rem 4rem;
    gap: 2rem; /* Ensure spacing between logo, text, and nav */
    justify-content: flex-start;
  }

  /* Fix overlapping logo */
  .brand-logo {
    font-size: 1.15rem; /* Slightly smaller to ensure it fits */
    max-width: 85%; /* Give it more room */
    display: flex;
    align-items: center;
    white-space: nowrap; /* Prevent "Guilherme Marques" from breaking into 2 lines */
  }
  
  .brand-logo svg {
    width: 28px; /* Slightly smaller icon to match */
    height: 28px;
    flex-shrink: 0;
  }

  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3rem);
    margin-bottom: 1rem;
    margin-top: 1rem;
  }

  .hero-text-wrapper {
    margin-top: 0;
  }

  .hero-desc {
    font-size: 1.05rem;
  }

  .bottom-nav {
    margin-top: 2rem; /* More space from the description */
    gap: 1.2rem;
  }

  .bottom-nav a {
    font-size: 1.5rem;
  }

  /* Carousel / Right Pane */
  .split-right {
    height: 70vh;
    min-height: 550px;
  }
  
  /* Give floating card breathing room from nav arrows */
  .floating-card-positioner {
    bottom: 4rem;
  }

  /* Reduced Section Paddings for mobile */
  .about-intro-section {
    padding-top: 100px !important;
    padding-bottom: 50px !important;
  }

  .services-home-section {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
  }

  .contact-home-section {
    padding-top: 150px !important;
    padding-bottom: 100px !important;
  }

  .featured-projects-section {
    padding-top: 50px !important;
    padding-bottom: 150px !important;
  }

  .projects-heading {
    font-size: 32px;
  }

  .contact-home-section .intro-statement {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .intro-link-wrapper {
    width: 100%;
  }

  .contact-btns-group {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
  }

  .secondary-btn {
    width: 100%;
    text-align: center;
  }
}