/* ============================================================
   Pierre Jr. Portfolio — Design System
   Dark theme with purple-to-cyan gradient accents
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a1a;
  --bg-card: #0d0d1f;
  --bg-card-hover: #12122a;

  --purple: #a855f7;
  --cyan: #06b6d4;
  --magenta: #d946ef;

  --gradient-primary: linear-gradient(135deg, var(--cyan), var(--purple), var(--magenta));
  --gradient-btn: linear-gradient(90deg, var(--cyan), var(--purple), var(--magenta));
  --gradient-text: linear-gradient(90deg, var(--magenta), var(--purple), var(--cyan));

  --text-primary: #ffffff;
  --text-secondary: #b0b0c8;
  --text-muted: #6b6b8a;

  --border-glow: rgba(6, 182, 212, 0.3);

  --font-family: "Poppins", sans-serif;

  --nav-height: 72px;
  --container-max: 1200px;
  --section-padding: 100px 0;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-overflow-scrolling: touch;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ---------- Typography ---------- */
h1,
h2,
h3 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn-gradient {
  display: inline-block;
  padding: 16px 40px;
  background: var(--gradient-btn);
  background-size: 200% 100%;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-position var(--transition-normal), transform var(--transition-fast), box-shadow var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-gradient::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  animation: buttonShine 4s infinite;
  pointer-events: none;
}

@keyframes buttonShine {
  0% {
    left: -100%;
  }

  20% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

.btn-gradient:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.4);
}

.btn-gradient:active {
  transform: translateY(0);
}

.btn-large {
  padding: 20px 48px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
  padding: 18px;
}

.section-cta {
  text-align: center;
  margin-top: 50px;
}

/* ==========================================================
   NAVBAR
   ========================================================== */
.navbar {
  position: fixed;
  top: env(safe-area-inset-top, 0);
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.98);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.navbar.navbar-hidden {
  transform: translateY(-100%);
}

.nav-container {
  max-width: var(--container-max);
  width: 90%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.logo-bracket {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

.nav-links a:hover {
  color: var(--text-primary);
}

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

.nav-cta {
  background: var(--gradient-btn);
  background-size: 200% 100%;
  padding: 10px 24px !important;
  border-radius: 50px;
  color: var(--text-primary) !important;
  transition: background-position var(--transition-normal), box-shadow var(--transition-normal) !important;
}

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

.nav-cta:hover {
  background-position: 100% 0;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 80px;
  background: radial-gradient(ellipse at 30% 50%, rgba(168, 85, 247, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    var(--bg-primary);
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatGlow 8s ease-in-out infinite;
}

@keyframes floatGlow {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-30px, 30px) scale(1.1);
  }
}

.hero-container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 540px;
}

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

.hero-mockups {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 400px;
}

.mockup {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transition: transform var(--transition-normal);
}

.mockup:hover {
  transform: scale(1.05);
  z-index: 10;
}

.mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mockup-1 {
  width: 280px;
  height: 200px;
  top: 0;
  left: 0;
  z-index: 3;
}

.mockup-2 {
  width: 260px;
  height: 180px;
  top: 60px;
  left: 160px;
  z-index: 2;
}

.mockup-3 {
  width: 240px;
  height: 180px;
  top: 160px;
  left: 40px;
  z-index: 1;
}

/* ==========================================================
   SERVICES
   ========================================================== */
.services {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 16px;
  padding: 36px 28px;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.1);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  color: var(--cyan);
  margin-bottom: 20px;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================
   CONVERSION
   ========================================================== */
.conversion {
  padding: var(--section-padding);
  background: radial-gradient(ellipse at 0% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 100% 50%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
    var(--bg-secondary);
}

.conversion-container {
  display: flex;
  align-items: center;
  gap: 80px;
}

.conversion-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.animated-dashboard {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-card {
  background: rgba(20, 20, 35, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  padding: 24px;
}

.main-chart {
  width: 100%;
  height: 260px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.chart-header {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f56;
}

.dot.yellow {
  background: #ffbd2e;
}

.dot.green {
  background: #27c93f;
}

.chart-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.chart-info {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.chart-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.chart-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.chart-graph {
  display: flex;
  flex: 1;
  gap: 12px;
}

.y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 24px;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: right;
  width: 20px;
}

.grid-area {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 24px;
}

.grid-line {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}

.trendline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 24px);
  z-index: 1;
  opacity: 0.6;
}

.chart-body {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 2;
  gap: 12px;
}

.bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  position: relative;
}

.x-label {
  position: absolute;
  bottom: 0;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.bar {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px 6px 0 0;
  position: absolute;
  bottom: 24px;
  top: 0;
  overflow: hidden;
}

.bar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--gradient-primary);
  border-radius: 6px 6px 0 0;
  transition: height 1s ease-out;
  opacity: 0.7;
}

.bar-1::after {
  height: 30%;
  animation: growBar1 2s ease-out forwards;
}

.bar-2::after {
  height: 50%;
  animation: growBar2 2s ease-out 0.2s forwards;
}

.bar-3::after {
  height: 75%;
  animation: growBar3 2s ease-out 0.4s forwards;
}

.bar-4::after {
  height: 100%;
  animation: growBar4 2s ease-out 0.6s forwards;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

@keyframes growBar1 {
  from {
    height: 0;
  }

  to {
    height: 30%;
  }
}

@keyframes growBar2 {
  from {
    height: 0;
  }

  to {
    height: 50%;
  }
}

@keyframes growBar3 {
  from {
    height: 0;
  }

  to {
    height: 75%;
  }
}

@keyframes growBar4 {
  from {
    height: 0;
  }

  to {
    height: 100%;
  }
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  animation: floatPanel 6s ease-in-out infinite;
  background: rgba(30, 30, 50, 0.85);
}

.card-1 {
  top: 10px;
  right: -20px;
  animation-delay: 0s;
}

.card-2 {
  bottom: 30px;
  left: -30px;
  animation-delay: 3s;
}

.floating-card .icon {
  font-size: 1.8rem;
}

.floating-card .text {
  display: flex;
  flex-direction: column;
}

.floating-card strong {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.floating-card small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.floating-card .highlight {
  color: #27c93f;
  font-weight: 700;
}

@keyframes floatPanel {

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

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

.conversion-content {
  flex: 1;
}

.conversion-content h2 {
  margin-bottom: 24px;
}

.conversion-content p {
  margin-bottom: 16px;
}

.conversion-content .btn-gradient {
  margin-top: 16px;
}

/* ==========================================================
   PROCESS
   ========================================================== */
.process {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

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

.process-card {
  background: var(--bg-card);
  border: 1px solid rgba(6, 182, 212, 0.12);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: left;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.process-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.process-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.1);
}

.process-card:hover::after {
  opacity: 1;
}

.process-number {
  display: block;
  font-size: 4rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1;
}

.process-card h3 {
  margin-bottom: 12px;
}

/* ==========================================================
   ABOUT
   ========================================================== */
.about {
  padding: var(--section-padding);
  background: radial-gradient(ellipse at 20% 50%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
    var(--bg-secondary);
}

.about-container {
  display: flex;
  align-items: center;
  gap: 80px;
}

.about-content {
  flex: 1;
}

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

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

.about-highlight {
  font-weight: 600;
  color: var(--text-primary);
  font-style: italic;
}

.about-content .btn-gradient {
  margin-top: 16px;
}

.about-photo {
  flex: 0 0 auto;
  position: relative;
  /* Context for absolute badges now that they are outside wrapper */
  z-index: 5;
}

.photo-wrapper {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 70px rgba(168, 85, 247, 0.3), 0 0 100px rgba(6, 182, 212, 0.2);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.photo-wrapper:hover {
  transform: scale(1.02);
}

.photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  transition: transform 0.6s ease;
}

.photo-wrapper:hover img {
  transform: scale(1.08);
  /* Subtle zoom effect on the image */
}

/* Premium Glow Background */
.premium-glow::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, rgba(6, 182, 212, 0.1) 70%, transparent 100%);
  z-index: -1;
  filter: blur(40px);
  border-radius: 50%;
  animation: pulseGlow 4s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
  0% {
    opacity: 0.6;
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: rgba(20, 20, 35, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  z-index: 10;
  animation: badgeFloat 5s ease-in-out infinite;
}

.floating-badge .icon {
  font-size: 1.2rem;
}

.badge-1 {
  top: 40px;
  /* Shifted down to avoid the very top curve */
  right: -50px;
  /* Pushed far right to break the border */
  animation-delay: 0s;
}

.badge-2 {
  bottom: -20px;
  /* Shifted down to avoid the mouth */
  left: -40px;
  /* Pushed far left to break the border */
  animation-delay: 2.5s;
}

@keyframes badgeFloat {

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

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

/* ==========================================================
   PORTFOLIO
   ========================================================== */
.portfolio {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.portfolio-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

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

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

@media (min-width: 769px) {
  .portfolio-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 14px);
  }
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 16px 50px rgba(168, 85, 247, 0.12);
}

.portfolio-card-link {
  display: block;
  text-decoration: none;
}

.portfolio-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-img-wrap img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 26, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-visit {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 22px;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.portfolio-info {
  padding: 22px 24px 24px;
}

.portfolio-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
}

.tag-purple {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.3);
  color: #c77dff;
}

.tag-cyan {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--cyan);
}

.portfolio-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.portfolio-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.portfolio-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
  letter-spacing: 0.3px;
}

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

/* ==========================================================
   CONTACT
   ========================================================== */

.contact {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.contact-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.contact-text {
  flex: 1;
}

.contact-text h2 {
  margin-bottom: 16px;
}

.contact-form-wrapper {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.9rem;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ==========================================================
   FAQ
   ========================================================== */
.faq {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(6, 182, 212, 0.15);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--cyan);
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--cyan);
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-normal);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  padding: 40px 0;
  background: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

.footer-disclaimer a {
  color: var(--cyan);
  transition: color var(--transition-fast);
}

.footer-disclaimer a:hover {
  color: var(--purple);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    margin-top: 40px;
  }

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

  .conversion-container {
    flex-direction: column;
    text-align: center;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .contact-container {
    flex-direction: column;
    text-align: center;
  }
}

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

  /* Mobile Nav */
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 70%;
    max-width: 320px;
    height: 100vh;
    background: rgba(10, 10, 26, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transition: transform var(--transition-normal);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 60px;
  }

  .hero-mockups {
    height: 280px;
    width: 280px;
    margin: 0 auto;
  }

  .mockup-1 {
    width: 200px;
    height: 140px;
  }

  .mockup-2 {
    width: 180px;
    height: 130px;
    left: 100px;
    top: 40px;
  }

  .mockup-3 {
    width: 170px;
    height: 130px;
    left: 20px;
    top: 110px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Process */
  .process-grid {
    grid-template-columns: 1fr;
  }

  /* About */
  .about-container {
    flex-direction: column-reverse;
  }

  .photo-wrapper {
    width: 260px;
    height: 260px;
    margin-bottom: 2rem;
  }

  .badge-1 {
    top: -10px;
    right: -10px;
    /* Adjust overlap for mobile relative to about-photo */
  }

  .badge-2 {
    bottom: -5px;
    left: -10px;
    /* Adjust overlap for mobile relative to about-photo */
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */

  .contact-form-wrapper {
    padding: 24px;
  }

  /* Buttons */
  .btn-large {
    padding: 16px 32px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero-mockups {
    height: 220px;
    width: 230px;
    margin: 0 auto;
  }

  .mockup-1 {
    width: 170px;
    height: 120px;
  }

  .mockup-2 {
    width: 150px;
    height: 110px;
    left: 80px;
    top: 30px;
  }

  .mockup-3 {
    width: 140px;
    height: 110px;
    left: 10px;
    top: 90px;
  }
}

/* ==========================================================
   SUCCESS MESSAGE (after form submission)
   ========================================================== */
.success-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gradient-btn);
  color: var(--text-primary);
  padding: 16px 28px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 10px 40px rgba(168, 85, 247, 0.4);
  animation: slideInToast 0.5s ease, fadeOutToast 0.5s ease 3.5s forwards;
  z-index: 9999;
}

@keyframes slideInToast {
  from {
    transform: translateY(100px);
    opacity: 0;
  }

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

@keyframes fadeOutToast {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    pointer-events: none;
  }
}

/* ==========================================================
   FLOATING WHATSAPP BUTTON
   ========================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
  overflow: hidden;
}

.floating-whatsapp::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  animation: buttonShine 4s infinite 2s;
  pointer-events: none;
}

.floating-whatsapp:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
  background-color: #20b858;
}

@media (max-width: 768px) {
  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 28px;
  }
}