/*======================================
  CSS Variables & Design System
======================================*/
:root {
  --bg-color-dark: #000000;
  --bg-color-gradient: linear-gradient(180deg, rgba(21, 177, 181, 0.03) 0%, rgba(0, 0, 0, 0.95) 15%, #000000 85%, rgba(21, 177, 181, 0.03) 100%);
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --accent: #15b1b5;
  --accent-glow: rgba(21, 177, 181, 0.5);
  --btn-bg: #15b1b5;
  --btn-text: #000000;
  --card-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  --card-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(20px);
  --font-heading: 'Open Sans', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/*======================================
  Base Styles & Resets
======================================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color-dark);
  background-image: var(--bg-color-gradient);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  font-weight: 400;
  color: #fff;
}

p {
  margin-bottom: 1.2rem;
  color: #cccccc;
}

a {
  text-decoration: none;
  color: var(--accent);
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/*======================================
  Layout Utility Classes
======================================*/
.section-padding {
  padding: 120px 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.container-medium {
  max-width: 900px;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.layout-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.diagnostics-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: center;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Margins & Spacing */
.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 3rem;
}

.pt-3 {
  padding-top: 1rem;
}

.pt-6 {
  padding-top: 150px;
}

.spacer-sm {
  height: 1.5rem;
}

.text-wide {
  max-width: 800px;
}

.text-spaced p {
  margin-bottom: 1.5rem;
}

.text-spaced p:last-child {
  margin-bottom: 0;
}

.text-lead {
  font-size: 1.15rem;
}

.text-muted {
  color: var(--text-muted);
}

/*======================================
  Typography Specifics
======================================*/
.main-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -1px;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.5px;
}

.accent-text {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.85rem;
  font-weight: 400;
  font-family: var(--font-body);
  margin-bottom: 0.75rem;
  display: block;
}

.text-block p {
  font-size: 1.1rem;
  line-height: 1.9;
}

/*======================================
  Components
======================================*/
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  border-radius: 50px;
  /* Minimalist pill shape */
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  z-index: 1;
}

.btn-primary {
  background-color: var(--btn-bg);
  color: var(--btn-text);
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(21, 177, 181, 0.25);
  background-color: transparent;
  border: 1px solid var(--accent);
  color: var(--text-main);
}

.pulse-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  border-radius: inherit;
  z-index: -1;
  transition: all 0.4s ease;
}

.pulse-btn:hover::after {
  transform: scaleX(1.1) scaleY(1.3);
  opacity: 0;
}

.w-100 {
  width: 100%;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.service-card {
  padding: 0;
  background: transparent;
  transition: all 0.4s ease;
  border-radius: 8px;
  border-left: 1px solid transparent;
}

.service-card p {
  font-size: 1rem;
  color: #bbb;
}

.hover-lift {
  padding: 40px 35px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  /* Smoother modern border */
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hover-lift:hover {
  border-color: rgba(21, 177, 181, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(21, 177, 181, 0.05);
  transform: translateY(-10px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

/* Forms */
.form-group {
  position: relative;
}

.form-control {
  width: 100%;
  padding: 18px 24px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-control::placeholder {
  color: #666;
  letter-spacing: 0.5px;
}

.form-control:focus {
  border-color: var(--accent);
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 20px rgba(21, 177, 181, 0.15);
}

.glass-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 60px;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Social Icons */
.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.social-icon:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--accent-glow);
  border-color: var(--accent);
}

/*======================================
  Sections Specifics
======================================*/
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero::before,
.manifesto::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/img/background_influi_agencia_criativa.png') no-repeat center center/cover;
  background-attachment: fixed;
  opacity: 0.90;
  z-index: -1;
  pointer-events: none;
}

.manifesto {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-color-dark);
  /* Ensure solid dark backdrop */
  z-index: 1;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-actions {
  margin-top: 2.5rem;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6));
  animation: float 8s ease-in-out infinite;
}

.parallax-bg {
  background: url('assets/img/como_pensamos_influi_agencia_criativa.jpg') no-repeat center center/cover;
  background-attachment: fixed;
  position: relative;
}

.parallax-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  /* Dark overlay */
  z-index: 0;
}

.parallax-bg>* {
  position: relative;
  z-index: 1;
}

.diag-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
}

.diag-image img {
  width: 100%;
  height: auto;
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
}

.diag-image:hover img {
  transform: scale(1.05);
}

/*======================================
  Animations
======================================*/
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active,
.reveal.active p,
.reveal.active h2 {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(50px);
  transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slide-right {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slide-left.active,
.slide-right.active {
  opacity: 1;
  transform: translateX(0);
}

/*======================================
  Responsive Tweaks
======================================*/
@media (max-width: 992px) {

  .hero-layout,
  .split-layout,
  .layout-contact,
  .diagnostics-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .section-padding {
    padding: 80px 0;
  }

  .pt-6 {
    padding-top: 80px;
  }

  .accent-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    display: flex;
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .hero-image img {
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .glass-card {
    padding: 30px 20px;
  }
}

@media (max-width: 576px) {
  .section-padding {
    padding: 60px 0;
  }

  .main-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .btn {
    width: 100%;
  }
}