/* ========================================
   SDJ TECNOLOGIA - DESIGN SYSTEM
   Cores, tipografia e motion oficial
   ======================================== */

:root {
  /* Cores Primárias */
  --deep-navy: #0A2463;
  --electric-blue: #3E92CC;
  
  /* Cores Secundárias */
  --light-blue: #D8E9F3;
  --steel-blue: #5C7B9C;
  
  /* Cores Neutras */
  --charcoal: #2C3E50;
  --medium-gray: #7F8C97;
  --light-gray: #ECF0F3;
  --white: #FFFFFF;
  
  /* Cores de Sistema */
  --success-green: #27AE60;
  --error-red: #E74C3C;
  
  /* Durações */
  --duration-instant: 0.1s;
  --duration-fast: 0.2s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
  --duration-slower: 0.8s;
  
  /* Easing */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);
  --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
}

/* ========================================
   RESET E BASE
   ======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Utilitários */
.transition-all {
  transition: all var(--duration-normal) var(--ease-standard);
}

/* ========================================
   HEADER / NAVEGAÇÃO
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px); /* Safari */
  z-index: 1000;
  transition: all var(--duration-normal) var(--ease-standard);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Estado scrolled - Glass Morphism mais intenso */
.header.is-scrolled {
  height: 64px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(25px);
  -webkit-backdrop-filter: saturate(180%) blur(25px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 
              0 2px 12px rgba(0, 0, 0, 0.04);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  flex-direction: column;
}

.logo {
  font-size: 32px;
  font-weight: 700;
  color: var(--electric-blue);
  line-height: 1;
}

.logo__subtitle {
  font-size: 14px;
  font-weight: 400;
  color: var(--steel-blue);
  margin-top: 2px;
}

.header__nav {
  display: flex;
  gap: 48px;
}

.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
  position: relative;
}

.nav__link:hover {
  color: var(--electric-blue);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--electric-blue);
  transition: width var(--duration-normal) var(--ease-standard);
}

.nav__link:hover::after {
  width: 100%;
}

/* Menu Mobile Toggle */
.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header__toggle span {
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: all var(--duration-fast);
}

/* Indicador de progresso */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--electric-blue), var(--deep-navy));
  width: 0;
  z-index: 1001;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s linear;
  box-shadow: 0 2px 8px rgba(62, 146, 204, 0.3);
}

/* ========================================
   BOTÕES
   ======================================== */

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: all var(--duration-fast) var(--ease-standard);
}

.btn--primary {
  background: var(--electric-blue);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(62, 146, 204, 0.3);
}

.btn--primary:hover {
  background: #2E82BC;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(62, 146, 204, 0.4);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(62, 146, 204, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--small {
  padding: 10px 24px;
  font-size: 14px;
}

.btn--white {
  background: var(--white);
  color: var(--electric-blue);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--deep-navy) 0%, #1A2E5A 100%);
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

/* Background com parallax */
.hero__background {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(62, 146, 204, 0.15) 0%,
    transparent 50%
  );
  z-index: 0;
  will-change: transform;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(62, 146, 204, 0.1) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
  z-index: 0;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.3; }
}

.hero__container {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 700px;
}

.badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(62, 146, 204, 0.1);
  border: 1px solid var(--electric-blue);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--electric-blue);
  margin-bottom: 32px;
}

.hero__title {
  font-size: 72px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 20px;
  font-weight: 400;
  color: var(--light-blue);
  line-height: 1.5;
  margin-bottom: 40px;
}

.hero__cta {
  display: inline-block;
  margin-top: 8px;
}

/* ========================================
   ANIMATIONS
   ======================================== */

.animate-on-scroll {
  opacity: 0;
  transition: all var(--duration-slower) var(--ease-decelerate);
}

.animate-on-scroll.fade-up {
  transform: translateY(40px);
}

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

.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }

/* ========================================
   SERVICES SECTION
   ======================================== */

.services {
  padding: 120px 0;
  background: var(--white);
}

.section__title {
  font-size: 48px;
  font-weight: 700;
  color: var(--deep-navy);
  text-align: center;
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 20px;
  font-weight: 400;
  color: var(--steel-blue);
  text-align: center;
  margin-bottom: 64px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--light-gray);
  border: 1px solid #E0E4E8;
  border-radius: 8px;
  padding: 32px;
  transition: all var(--duration-normal) var(--ease-standard);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10, 36, 99, 0.15);
  border-color: var(--electric-blue);
}

.service-card__icon {
  font-size: 48px;
  margin-bottom: 24px;
}

.service-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 12px;
}

.service-card__desc {
  font-size: 15px;
  color: var(--charcoal);
  line-height: 1.6;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about {
  padding: 120px 0;
  background: var(--light-blue);
}

.about__title {
  font-size: 48px;
  font-weight: 700;
  color: var(--deep-navy);
  text-align: center;
  margin-bottom: 64px;
}

.about__content {
  font-size: 18px;
  color: var(--charcoal);
  line-height: 1.7;
  text-align: center;
  max-width: 800px;
  margin: 64px auto 0;
}

.about__text {
  font-size: 18px;
  color: var(--charcoal);
  line-height: 1.7;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 80px;
}

.stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 48px;
}

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

.stat-number {
  display: block;
  font-size: 48px;
  font-weight: 700;
  color: var(--electric-blue);
  line-height: 1.2;
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--steel-blue);
}

/* ========================================
   CTA FINAL SECTION
   ======================================== */

.cta-final {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--electric-blue) 0%, #2675A3 100%);
  text-align: center;
}

.cta-final__title {
  font-size: 52px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta-final__text {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
}

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

.contact {
  padding: 120px 0;
  background: var(--light-gray);
}

.contact__title {
  font-size: 48px;
  font-weight: 700;
  color: var(--deep-navy);
  text-align: center;
  margin-bottom: 16px;
}

.contact__subtitle {
  font-size: 20px;
  font-weight: 400;
  color: var(--steel-blue);
  text-align: center;
  margin-bottom: 64px;
}

.contact-form {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Campo com floating label */
.form-field {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 24px 16px 8px;
  font-size: 16px;
  font-family: inherit;
  color: var(--charcoal);
  background: var(--white);
  border: 1.5px solid #D0D8E0;
  border-radius: 8px;
  outline: none;
  resize: vertical;
  transition: border-color var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard);
  appearance: none;
}

.form-input:focus {
  border-color: var(--electric-blue);
  box-shadow: 0 0 0 4px rgba(62, 146, 204, 0.12);
}

.form-input:hover:not(:focus) {
  border-color: var(--steel-blue);
}

/* Floating label */
.form-label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-size: 15px;
  font-weight: 400;
  color: var(--medium-gray);
  pointer-events: none;
  transition: all var(--duration-fast) var(--ease-standard);
  background: transparent;
}

/* Para textarea o label começa no topo */
.form-field:has(textarea) .form-label {
  top: 20px;
  transform: none;
}

/* Label flutuante ao focar ou ter conteúdo */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: 8px;
  transform: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--electric-blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Textarea: label sobe menos */
.form-field:has(textarea) .form-input:focus ~ .form-label,
.form-field:has(textarea) .form-input:not(:placeholder-shown) ~ .form-label {
  top: 6px;
}

.btn--submit {
  padding: 18px 48px;
  font-size: 16px;
  font-weight: 600;
  align-self: flex-start;
  border-radius: 8px;
  letter-spacing: 0.01em;
}

/* Responsive */
@media (max-width: 768px) {
  .contact {
    padding: 80px 0;
  }

  .contact__title {
    font-size: 32px;
  }

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

  .btn--submit {
    width: 100%;
    align-self: stretch;
  }
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  padding: 64px 0 32px;
  background: var(--deep-navy);
  color: var(--light-blue);
}

.footer__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}

.footer__logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.footer__desc {
  font-size: 14px;
  color: var(--light-blue);
}

.footer__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__text {
  font-size: 14px;
  line-height: 1.8;
}

.footer__bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(92, 123, 156, 0.3);
}

.footer__copyright {
  font-size: 13px;
  color: var(--steel-blue);
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

@media (max-width: 1024px) {
  .container {
    padding: 0 32px;
  }
  
  .hero__title {
    font-size: 56px;
  }
  
  .section__title {
    font-size: 40px;
  }
  
  .cta-final__title {
    font-size: 42px;
  }
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
  }
  
  .header__toggle {
    display: flex;
  }
  
  .container {
    padding: 0 24px;
  }
  
  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }
  
  .hero__title {
    font-size: 38px;
  }
  
  .hero__subtitle {
    font-size: 18px;
  }
  
  .hero__cta {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .services {
    padding: 80px 0;
  }
  
  .services__grid {
    grid-template-columns: 1fr;
  }
  
  .section__title {
    font-size: 32px;
  }
  
  .section__subtitle {
    font-size: 18px;
  }
  
  .about {
    padding: 80px 0;
  }
  
  .stats {
    flex-direction: column;
    gap: 32px;
  }
  
  .cta-final {
    padding: 80px 0;
  }
  
  .cta-final__title {
    font-size: 32px;
  }
  
  .footer__container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ========================================
   ACESSIBILIDADE
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states */
a:focus,
button:focus {
  outline: 2px solid var(--electric-blue);
  outline-offset: 2px;
}

/* ========================================
   UTILITÁRIOS GLASS MORPHISM
   ======================================== */

/* Apple-style Glass Effect */
.glass-light {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-medium {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: saturate(180%) blur(30px);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-dark {
  background: rgba(10, 36, 99, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Shimmer Effect (para hover) */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 2s infinite;
}

/* Glow Effect */
.glow-blue {
  box-shadow: 0 0 20px rgba(62, 146, 204, 0.3);
}

.glow-blue:hover {
  box-shadow: 0 0 30px rgba(62, 146, 204, 0.5);
}

/* Smooth Transform */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

/* ========================================
   ANIMAÇÕES ADICIONAIS
   ======================================== */

/* Pulse */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s var(--ease-decelerate) forwards;
}

/* Scale In */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scale-in {
  animation: scaleIn 0.4s var(--ease-standard) forwards;
}
