/*
Theme Name: Cavion Tech
Theme URI: https://caviontech.com
Author: Cavion Tech
Author URI: https://caviontech.com
Description: Tema profissional da Cavion Tech - Soluções digitais sob medida.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: caviontech
Tags: one-page, portfolio, custom-colors, featured-images
*/

/* ===== RESET & BASE ===== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --dark: #0a0f1f;
  --blue: #0d47ff;
  --cyan: #00e0ff;
  --purple: #7c3aed;
  --light: #f2f5fa;
  --white: #ffffff;
  --gray: #6b7280;
  --gradient-main: linear-gradient(135deg, var(--blue), var(--purple));
  --gradient-cyan: linear-gradient(135deg, var(--cyan), var(--blue));
  --shadow-sm: 0 2px 8px rgba(10, 15, 31, .06);
  --shadow-md: 0 8px 30px rgba(10, 15, 31, .10);
  --shadow-lg: 0 20px 60px rgba(10, 15, 31, .12);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: .35s cubic-bezier(.4, 0, .2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea {
  font-family: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 10px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  transform: translateX(-50px);
}

.nav-logo img {
  height: 80px;
  width: auto;
  transition: var(--transition);
}

/* Default: show black, hide white */
.nav-logo .logo-white {
  display: none;
}

.nav-logo .logo-black {
  display: block;
}

/* Over hero (not scrolled): show white, hide black */
.navbar:not(.scrolled) .nav-logo .logo-white {
  display: block;
}

.navbar:not(.scrolled) .nav-logo .logo-black {
  display: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark);
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 28px;
  border-radius: 50px;
  background: var(--gradient-main);
  color: var(--white) !important;
  font-weight: 600;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(13, 71, 255, .3);
  z-index: 2;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13, 71, 255, .4);
}

.nav-cta-mobile {
  display: none;
}

.nav-cta::after {
  display: none !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 4px;
  transition: var(--transition);
}

/* ===== HERO BANNER ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('assets/img/hero-bgk.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 15, 31, .82) 0%, rgba(26, 16, 80, .7) 25%, rgba(0, 0, 0, 0.55) 55%, rgba(2, 13, 49, 0.6) 80%, rgba(5, 132, 141, 0.575) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero .hero-badge {
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .2);
}

.hero h1 {
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 22px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--cyan), #987bef);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  height: 4.2rem;
}

.hero h1 span::after {
  content: '|';
  background: none;
  -webkit-text-fill-color: var(--cyan);
  font-weight: 200;
  animation: cursorBlink .75s step-end infinite;
}

@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero p {
  font-size: 1.0rem;
  color: var(--white);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-btns {
  justify-content: center;
}

.hero-btn-outline {
  border-color: rgba(255, 255, 255, .35) !important;
  color: var(--white) !important;
}

.hero-btn-outline:hover {
  border-color: var(--cyan) !important;
  color: var(--cyan) !important;
}

/* Navbar over hero: white links */
.navbar:not(.scrolled) .nav-links a {
  color: var(--white);
}

.navbar:not(.scrolled) .nav-links a:hover,
.navbar:not(.scrolled) .nav-links a.active {
  color: var(--white);
}

.navbar:not(.scrolled) .nav-toggle span {
  background: var(--white);
}

.navbar:not(.scrolled) .nav-toggle.active span {
  background: var(--dark);
}

/* ===== GEOMETRIC SHAPES ===== */
.hero-shape {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: .18;
}

.shape-circle-outline {
  width: 50px;
  height: 50px;
  border: 3px solid var(--white);
  border-radius: 50%;
}

.shape-circle-filled {
  width: 14px;
  height: 14px;
  background: var(--white);
  border-radius: 50%;
}

.shape-square {
  width: 20px;
  height: 20px;
  background: var(--cyan);
  border-radius: 3px;
  transform: rotate(45deg);
}

.shape-square-outline {
  width: 30px;
  height: 30px;
  border: 3px solid var(--cyan);
  border-radius: 4px;
  transform: rotate(20deg);
}

.shape-plus {
  width: 22px;
  height: 22px;
  position: absolute;
}

.shape-plus::before,
.shape-plus::after {
  content: '';
  position: absolute;
  background: var(--white);
  border-radius: 2px;
}

.shape-plus::before {
  width: 3px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.shape-plus::after {
  width: 100%;
  height: 3px;
  top: 50%;
  transform: translateY(-50%);
}

.shape-line {
  width: 50px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transform: rotate(-30deg);
}

.shape-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
}

/* Shape positions */
.shape-1 {
  top: 18%;
  left: 6%;
  animation: shapeFloat 6s ease-in-out infinite;
}

.shape-2 {
  top: 12%;
  right: 12%;
  animation: shapeFloat 5s ease-in-out infinite 1s;
}

.shape-3 {
  top: 30%;
  left: 12%;
  animation: shapeFloat 7s ease-in-out infinite .5s;
}

.shape-4 {
  top: 65%;
  left: 5%;
  animation: shapeFloat 4s ease-in-out infinite 2s;
}

.shape-5 {
  top: 22%;
  right: 6%;
  animation: shapeFloat 6s ease-in-out infinite 1.5s;
}

.shape-6 {
  bottom: 22%;
  right: 8%;
  animation: shapeFloat 5s ease-in-out infinite .8s;
}

.shape-7 {
  bottom: 30%;
  right: 15%;
  animation: shapeFloat 7s ease-in-out infinite 2.5s;
}

.shape-8 {
  bottom: 18%;
  left: 15%;
  animation: shapeFloat 5s ease-in-out infinite 1.2s;
}

.shape-9 {
  top: 45%;
  left: 3%;
  animation: shapeFloat 4s ease-in-out infinite .3s;
}

.shape-10 {
  top: 40%;
  right: 4%;
  animation: shapeFloat 5s ease-in-out infinite 1.8s;
}

.shape-11 {
  bottom: 35%;
  left: 8%;
  animation: shapeFloat 6s ease-in-out infinite 2s;
}

.shape-12 {
  bottom: 12%;
  right: 22%;
  animation: shapeFloat 5s ease-in-out infinite .6s;
}

@keyframes shapeFloat {

  0%,
  100% {
    transform: translateY(0) rotate(var(--r, 0deg));
  }

  50% {
    transform: translateY(-18px) rotate(var(--r, 0deg));
  }
}

.shape-2,
.shape-12 {
  --r: 45deg;
}

.shape-5 {
  --r: -30deg;
}

.shape-6 {
  --r: 20deg;
}


/* ===== SECTION COMMON ===== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 71, 255, .08);
  color: var(--blue);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-header h2 span {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--gray);
  font-size: 1rem;
}

/* ===== SHARED COMPONENTS ===== */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.hero-badge i {
  font-size: .7rem;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 14px 36px;
  border-radius: 50px;
  background: var(--gradient-main);
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(13, 71, 255, .3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(13, 71, 255, .4);
}

.btn-glow {
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(124, 58, 237, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
  }
}

.btn-outline {
  padding: 14px 36px;
  border-radius: 50px;
  background: transparent;
  color: var(--dark);
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid #d1d5db;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-3px);
}

/* ===== ABOUT ===== */
.about {
  background: var(--white);
  padding: 100px 0;
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Image Collage */
.about-image-collage {
  position: relative;
  width: 100%;
  padding-bottom: 40px;
  padding-right: 40px;
}

.img-main {
  width: 96%;
  margin-left: auto;
  border-radius: 4px;
  display: block;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.img-overlap {
  position: absolute;
  bottom: -40px;
  left: -55px;
  width: 70%;
  border: 10px solid var(--white);
  border-radius: 4px;
  z-index: 3;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.pattern-dots {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(var(--gray) 1.5px, transparent 1.5px);
  background-size: 15px 15px;
  opacity: 0.2;
  z-index: 1;
}

/* Typography and Right Side */
.about-content .section-subtitle {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.about-content h2 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 20px;
}

.about-content h2 span {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-line {
  width: 50px;
  height: 3px;
  background: var(--gradient-main);
  margin-bottom: 24px;
}

.about-content>p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* Features List */
.about-features {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.about-feature .feature-icon {
  color: var(--blue);
  font-size: 2.5rem;
  line-height: 1;
  margin-top: 5px;
}

.feature-text h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.feature-text p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ===== SERVICES ===== */
.services {
  background: var(--light);
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 71, 255, .08);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(13, 71, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 22px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--gradient-main);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  font-size: .88rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ===== WHY CHOOSE ===== */
.why-choose {
  position: relative;
  padding: 100px 0;
  background: var(--dark);
  /* dark background for the right side */
}

/* Left colored background split */
.why-bg-split {
  position: absolute;
  top: 0;
  left: 0;
  width: 38%;
  /* Takes up roughly left 38% */
  height: 100%;
  background: var(--blue);
  z-index: 1;
  overflow: hidden;
}

.why-bg-split::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 2px, transparent 2px);
  background-size: 20px 20px;
  opacity: 0.5;
}

/* Floating Decorative Shapes */
.why-shape {
  position: absolute;
  z-index: 1;
}

/* 3 triangles */
.why-shape-triangles {
  top: 10%;
  left: 15%;
  color: rgba(255, 255, 255, 0.15);
  font-size: 1.5rem;
  letter-spacing: -2px;
}

/* Circle outline */
.why-shape-circle {
  top: 30%;
  right: -20px;
  width: 80px;
  height: 80px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.why-shape-circle::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

/* Pills */
.why-shape-pill {
  width: 120px;
  height: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(-40deg);
}

.pill-1 {
  top: 35%;
  left: 15%;
  width: 150px;
  height: 35px;
}

.pill-2 {
  top: 45%;
  left: 10%;
}

.pill-3 {
  top: 55%;
  left: 5%;
  width: 90px;
}

/* Squiggly lines */
.why-shape-wave {
  bottom: 5%;
  right: 15%;
  color: rgba(255, 255, 255, 0.15);
  font-size: 2.5rem;
  transform: rotate(10deg);
  font-weight: 900;
}

/* Floating Dark Circles */
.why-shape-dark-circle {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  z-index: 1;
}

.dark-circle-1 {
  top: 20%;
  left: 35%;
}

.dark-circle-2 {
  bottom: 20%;
  right: -40px;
}

/* Crosses pattern above image */
.why-shape-crosses {
  position: absolute;
  top: -40px;
  right: -20px;
  width: 100px;
  height: 150px;
  background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M11 0h2v24h-2zM0 11h24v2H0z" fill="rgba(255,255,255,0.08)"/></svg>');
  z-index: 1;
}

.why-choose .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: center;
}

/* Left Image Collage */
.why-image-wrapper {
  position: relative;
  padding-right: 30px;
  padding-bottom: 30px;
}

.why-image-wrapper .img-main {
  width: 100%;
  height: 550px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.experience-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--gradient-main);
  padding: 20px 30px;
  text-align: center;
  color: var(--white);
  border-radius: 4px;
  box-shadow: 0 15px 30px rgba(13, 71, 255, 0.3);
  z-index: 3;
}

.experience-badge h3 {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
}

.experience-badge p {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Right Content */
.why-content .section-subtitle {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.why-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--white);
}

.why-content h2 span {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.why-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.why-item .why-icon {
  color: var(--blue);
  font-size: 2.2rem;
  line-height: 1;
  margin-top: 5px;
}

.why-text h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.why-text p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* ===== PORTFOLIO ===== */
.portfolio {
  background: var(--white);
}

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

.project-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(13, 71, 255, 0.1);
}

.project-img {
    width: calc(100% - 20px);
    height: 190px;
    background: var(--light);
    overflow: hidden;
    position: relative;
    margin: 10px;
    border-radius: 8px;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    color: var(--dark);
    font-size: 1.5rem;
    background: linear-gradient(45deg, #f2f5fa, #e2e8f0);
    transition: transform var(--transition);
}

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

.project-info {
    padding: 1.25rem;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.project-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 700;
}

.project-desc {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.link-cyan {
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition);
}

.link-cyan:hover {
    color: var(--blue);
}

.icon-link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--light);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    transition: all var(--transition);
}

.icon-link:hover {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.tag-floating {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--white);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    z-index: 2;
}


/* ===== CONTACT FORM â€” Overlapping Cards ===== */
.contact {
  background: var(--light);
  position: relative;
  overflow: hidden;
  padding: 100px 0 140px;
}

.contact-overlap-wrapper {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

/* Front card â€” gradient blue, overlaps left, sits on top */
.contact-card-front {
  position: relative;
  z-index: 2;
  width: 340px;
  min-width: 340px;
  background: var(--gradient-main);
  border-radius: var(--radius);
  padding: 48px 36px;
  color: var(--white);
  box-shadow: 0 24px 60px rgba(13, 71, 255, 0.3);
  display: flex;
  flex-direction: column;
  margin-right: -60px;
  align-self: center;
}

/* Back card â€” white, holds the form, sits to the right */
.contact-card-back {
  position: relative;
  z-index: 1;
  flex: 1;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(10, 15, 31, 0.08);
  padding: 48px 50px 48px 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form-header {
  margin-bottom: 28px;
}

.contact-form-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 8px;
}

.contact-form-header h2 span {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-form-header p {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.6;
}

.contact-card-front h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 36px;
  position: relative;
  padding-bottom: 18px;
}

.contact-card-front h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
}

/* Contact items */
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-card-front .icon-circle {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.contact-card-front .contact-item:hover .icon-circle {
  background: rgba(255, 255, 255, 0.25);
}

.contact-card-front .contact-item span {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Social icons */
.contact-social {
  display: flex;
  gap: 10px;
  margin-top: 40px;
}

.contact-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: var(--transition);
}

.contact-social a:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

/* Right Form Side */
.contact-form-side {
  display: flex;
  flex-direction: column;
}

.contact-form-side .form-group {
  margin-bottom: 16px;
}

.contact-form-side input,
.contact-form-side select,
.contact-form-side textarea {
  width: 100%;
  padding: 14px 18px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  font-size: 0.92rem;
  color: #333;
  transition: 0.3s;
  outline: none;
}

.contact-form-side input::placeholder,
.contact-form-side textarea::placeholder {
  color: #adb5bd;
}

.contact-form-side input:focus,
.contact-form-side select:focus,
.contact-form-side textarea:focus {
  border-color: rgba(13, 71, 255, 0.4);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13, 71, 255, 0.05);
}

.contact-form-side select {
  appearance: none;
  cursor: pointer;
  color: #6c757d;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  padding-right: 44px;
}

.contact-form-side textarea {
  min-height: 110px;
  resize: vertical;
}

.form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--gradient-main);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
  box-shadow: 0 4px 20px rgba(13, 71, 255, 0.3);
  align-self: flex-start;
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13, 71, 255, 0.4);
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: whatsappBounce 3s ease-in-out infinite;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px solid rgba(37, 211, 102, 0.4);
  animation: whatsappPulse 2s ease-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
  animation: none;
}

@keyframes whatsappBounce {

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

  15% {
    transform: translateY(-12px);
  }

  30% {
    transform: translateY(0);
  }

  45% {
    transform: translateY(-6px);
  }

  60% {
    transform: translateY(0);
  }
}

@keyframes whatsappPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: #060a16;
  padding: 70px 0 0;
}

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

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand .logo-cavion {
  color: var(--white);
}

.footer-brand p {
  color: rgba(255, 255, 255, .5);
  font-size: .88rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .6);
  font-size: .95rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--gradient-main);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-main);
  border-radius: 2px;
}

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

.footer-col ul li a {
  color: rgba(255, 255, 255, .5);
  font-size: .88rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--cyan);
  padding-left: 6px;
}

/* Newsletter column */
.footer-newsletter p {
  color: rgba(255, 255, 255, .5);
  font-size: .88rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 0;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px 0 0 8px;
  color: var(--white);
  font-size: .88rem;
  outline: none;
  transition: var(--transition);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, .35);
}

.newsletter-form input:focus {
  border-color: rgba(13, 71, 255, .5);
  background: rgba(255, 255, 255, .12);
}

.newsletter-form button {
  padding: 12px 20px;
  background: var(--gradient-cyan);
  color: var(--white);
  border: none;
  border-radius: 0 8px 8px 0;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.newsletter-form button:hover {
  opacity: .85;
  transform: translateY(-1px);
}

.newsletter-success {
  color: #34d399;
  font-size: .92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeInUp .4s ease;
}

.newsletter-success i {
  font-size: 1.1rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, .4);
  font-size: .82rem;
}

.footer-bottom span {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* ===== TERMS PAGE ===== */
.terms-hero {
  padding: 160px 0 60px;
  background: var(--gradient-main);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.terms-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 2px, transparent 2px);
  background-size: 24px 24px;
}

.terms-hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
}

.terms-hero h1 span {
  background: linear-gradient(90deg, var(--cyan), #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.terms-hero p {
  color: rgba(255, 255, 255, .7);
  font-size: 1.1rem;
  position: relative;
}

.terms-content {
  background: var(--white);
  padding: 80px 0 100px;
}

.terms-wrapper {
  max-width: 780px;
  margin: 0 auto;
}

.terms-intro {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e9ecef;
}

.terms-intro p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.terms-intro p:last-child {
  margin-bottom: 0;
}

.terms-section {
  margin-bottom: 40px;
}

.terms-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

.terms-number {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.terms-section p {
  color: var(--gray);
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.terms-section ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px 8px;
}

.terms-section ul li {
  position: relative;
  padding-left: 22px;
  color: var(--gray);
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: 6px;
}

.terms-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-main);
}

.terms-link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}

.terms-link:hover {
  color: var(--purple);
}

.terms-section strong {
  color: var(--dark);
  font-weight: 600;
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s cubic-bezier(.4, 0, .2, 1), transform .8s cubic-bezier(.4, 0, .2, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .8s cubic-bezier(.4, 0, .2, 1), transform .8s cubic-bezier(.4, 0, .2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .8s cubic-bezier(.4, 0, .2, 1), transform .8s cubic-bezier(.4, 0, .2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {

  .about .container,
  .why-choose .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .about-image {
    max-width: 500px;
    margin: 0 auto;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-overlap-wrapper {
    max-width: 100%;
  }

  .contact-card-front {
    width: 300px;
    min-width: 300px;
    margin-right: -50px;
  }

  .contact-card-back {
    padding: 48px 40px 48px 90px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .why-image {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {

  /* --- Navbar --- */
  .nav-logo img {
    height: 50px;
  }

  .nav-logo {
    transform: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    left: auto;
    transform: none;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: var(--dark) !important;
  }

  /* CTA inside mobile menu */
  .nav-links .nav-cta-mobile {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    background: var(--gradient-main);
    color: var(--white) !important;
    font-weight: 600;
    font-size: .95rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(13, 71, 255, .3);
    margin-top: 10px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* --- Hero --- */
  .hero {
    min-height: 100vh;
    padding: 100px 20px 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero h1 span {
    height: 2.4rem;
  }

  .hero p {
    font-size: .85rem;
  }

  .hero-shape {
    opacity: .1;
  }

  /* --- Sections --- */
  .section {
    padding: 70px 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  /* --- Hide images on mobile --- */
  .about-image-collage,
  .why-image-wrapper {
    display: none;
  }

  .about .container,
  .why-choose .container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* --- Why Choose (Diferenciais) responsive --- */
  .why-bg-split,
  .why-shape-dark-circle {
    display: none;
  }

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

  .why-content .section-subtitle {
    justify-content: center;
    color: rgba(255, 255, 255, .6);
  }

  .why-content h2 {
    font-size: 1.8rem;
    color: var(--white);
  }

  .why-content h2 span {
    background: none;
    -webkit-text-fill-color: var(--white);
    color: var(--white);
  }

  .why-content .why-desc {
    color: rgba(255, 255, 255, .7);
  }

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

  .why-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .why-icon {
    flex-shrink: 0;
  }

  /* --- Services & Portfolio --- */
  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* --- Contact stacked on mobile --- */
  .contact-overlap-wrapper {
    flex-direction: column;
  }

  .contact-card-front {
    width: 100%;
    min-width: 100%;
    margin-right: 0;
    margin-bottom: -20px;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .contact-card-back {
    width: 100%;
    padding: 40px 28px;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .form-submit-btn {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* --- Footer --- */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* --- About stats --- */
  .about-stats {
    position: relative;
    bottom: 0;
    right: 0;
    margin-top: 20px;
    justify-content: center;
  }

  /* --- Hero buttons --- */
  .hero-btns {
    flex-direction: column;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }

  /* --- Terms page --- */
  .terms-hero {
    padding: 120px 0 40px;
  }

  .terms-hero h1 {
    font-size: 2rem;
  }

  .terms-content {
    padding: 50px 0 60px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero h1 span {
    height: 1.8rem;
  }

  .container {
    padding: 0 16px;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .about-content h2,
  .why-content h2 {
    font-size: 1.6rem;
  }

  .terms-hero h1 {
    font-size: 1.6rem;
  }
}
