/* =========================================
   DGL Informática — Custom Stylesheet
   Tema: Claro | Light Theme
   ========================================= */

:root {
  --blue:   #2E5BFF;
  --teal:   #20C997;
  --purple: #6F42C1;
  --dark:   #1A1A2E;
  --body-bg:#F8FAFB;
  --card-bg:#FFFFFF;
  --text:   #2C3E50;
  --muted:  #6C757D;
  --border: #E8ECF0;
  --shadow: 0 4px 24px rgba(46,91,255,.08);
  --radius: 16px;
}

/* ── Reset / Base ─────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', sans-serif;
  background: var(--body-bg);
  color: var(--text);
  line-height: 1.7;
}

h1,h2,h3,h4,h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--dark);
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: #1a3acc; }

/* ── Navbar ───────────────────────────── */
#navbar {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
  padding: .75rem 0;
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }

.navbar-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: opacity .2s;
}
.navbar-logo:hover { opacity: .85; }

.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .875rem;
  color: var(--text) !important;
  padding: .5rem 1rem !important;
  border-radius: 8px;
  transition: all .2s;
}
.nav-link:hover { color: var(--blue) !important; background: rgba(46,91,255,.06); }
.nav-link.active { color: var(--blue) !important; }

.btn-nav-cta {
  background: var(--blue);
  color: #fff !important;
  border-radius: 50px;
  padding: .45rem 1.25rem !important;
}
.btn-nav-cta:hover { background: #1a3acc; color: #fff !important; }

/* ── Hero ─────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #EEF3FF 0%, #F0FDF9 50%, #F5F0FF 100%);
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: .12;
  filter: blur(60px);
  pointer-events: none;
}
.hero-shape-1 { width: 500px; height: 500px; background: var(--blue);  top: -100px; right: -100px; }
.hero-shape-2 { width: 400px; height: 400px; background: var(--teal);  bottom: -80px; left: -80px; }
.hero-shape-3 { width: 300px; height: 300px; background: var(--purple); top: 30%; right: 20%; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(46,91,255,.1);
  color: var(--blue);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .5px;
  padding: .4rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(46,91,255,.2);
  margin-bottom: 1.5rem;
}
.hero-badge .dot { width: 8px; height: 8px; background: var(--teal); border-radius: 50%; animation: pulse 2s infinite; }

@keyframes pulse {
  0%,100% { transform: scale(1); opacity:1; }
  50%      { transform: scale(1.4); opacity:.6; }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 1.25rem;
}
.hero-title .highlight {
  background: linear-gradient(90deg, var(--blue), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 2rem;
}

.btn-primary-dgl {
  background: linear-gradient(135deg, var(--blue), #4C6EF5);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .85rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  box-shadow: 0 8px 24px rgba(46,91,255,.3);
  transition: all .3s;
}
.btn-primary-dgl:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(46,91,255,.4);
}

.btn-outline-dgl {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 50px;
  padding: .8rem 1.75rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: all .3s;
}
.btn-outline-dgl:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat-item .num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--blue);
  line-height: 1;
}
.stat-item .label { font-size: .8rem; color: var(--muted); margin-top: .2rem; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card-float {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 420px;
}
.hero-code-line {
  height: 10px;
  border-radius: 50px;
  margin-bottom: .5rem;
}
.hero-code-line:last-child { margin-bottom: 0; }

.floating-badge {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  padding: .6rem 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  color: var(--dark);
  animation: float 3s ease-in-out infinite;
}
.floating-badge-1 { top: 10%; right: -20px; animation-delay: 0s; }
.floating-badge-2 { bottom: 15%; left: -20px; animation-delay: 1.5s; }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ── Tech Strip ───────────────────────── */
.tech-strip {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
}
.tech-strip-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 1.25rem;
}
.tech-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem 2rem;
}
.tech-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  color: var(--muted);
  transition: color .2s;
}
.tech-item i { font-size: 1.2rem; color: var(--blue); }
.tech-item:hover { color: var(--blue); }

/* ── Section Commons ──────────────────── */
section { padding: 90px 0; }
.section-label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-title .accent-teal  { color: var(--teal); }
.section-title .accent-blue  { color: var(--blue); }
.section-title .accent-purple{ color: var(--purple); }
.section-desc { font-size: 1.05rem; color: var(--muted); max-width: 560px; }

/* ── Sobre ────────────────────────────── */
#sobre { background: #fff; }

.sobre-img-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}
.sobre-img {
  width: 100%;
  max-width: 440px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(46,91,255,.12);
  display: block;
}
.sobre-img-badge {
  position: absolute;
  bottom: -16px;
  right: 20px;
  background: #fff;
  border-radius: 50px;
  padding: .55rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  color: var(--dark);
  white-space: nowrap;
}
@media (max-width: 575.98px) {
  .sobre-img { height: 180px; }
  .sobre-img-badge { font-size: .7rem; right: 10px; }
}

.pillar-card {
  background: var(--body-bg);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all .3s;
  height: 100%;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.pillar-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}
.icon-blue   { background: rgba(46,91,255,.1);  color: var(--blue); }
.icon-teal   { background: rgba(32,201,151,.1); color: var(--teal); }
.icon-purple { background: rgba(111,66,193,.1); color: var(--purple); }

.pillar-letter {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1;
  opacity: .05;
  position: absolute;
  right: 1.5rem;
  top: 1rem;
}

/* ── Serviços ─────────────────────────── */
#servicos { background: var(--body-bg); }

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all .3s;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  opacity: 0;
  transition: opacity .3s;
}
.service-card.s-blue::before   { background: linear-gradient(90deg, var(--blue), #4C6EF5); }
.service-card.s-teal::before   { background: linear-gradient(90deg, var(--teal), #17a589); }
.service-card.s-purple::before { background: linear-gradient(90deg, var(--purple), #9b59b6); }
.service-card.s-orange::before { background: linear-gradient(90deg, #FD7E14, #F39C12); }
.service-card.s-indigo::before { background: linear-gradient(90deg, #4263EB, var(--purple)); }

.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.service-num {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--border);
  line-height: 1;
}

.service-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .75rem;
}
.service-card p { font-size: .9rem; color: var(--muted); margin: 0; }

.service-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .5px;
  padding: .25rem .75rem;
  border-radius: 50px;
  margin-top: 1rem;
}

/* ── Portfolio ────────────────────────── */
#portfolio { background: #fff; }

.portfolio-card {
  background: var(--body-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all .3s;
}
.portfolio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.portfolio-thumb {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.portfolio-info { padding: 1.5rem; }
.portfolio-info h5 { font-size: 1rem; margin-bottom: .5rem; }
.portfolio-info p  { font-size: .85rem; color: var(--muted); margin: 0; }

/* ── Contato ──────────────────────────── */
#contato { background: var(--body-bg); }

.contact-info-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  height: 100%;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; padding-bottom: 0; }

.ci-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.ci-label { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .8rem; color: var(--muted); margin-bottom: .2rem; }
.ci-value { font-weight: 500; color: var(--dark); }

.contact-form-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  color: var(--dark);
  margin-bottom: .4rem;
}
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .75rem 1rem;
  font-size: .95rem;
  color: var(--text);
  background: var(--body-bg);
  transition: all .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46,91,255,.12);
  background: #fff;
}
textarea.form-control { resize: vertical; min-height: 130px; }

.btn-submit {
  background: linear-gradient(135deg, var(--blue), #4C6EF5);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .85rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  width: 100%;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  box-shadow: 0 8px 24px rgba(46,91,255,.25);
  transition: all .3s;
}
.btn-submit:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(46,91,255,.35); }
.btn-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }

/* ── Toast ────────────────────────────── */
#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  color: #fff;
  padding: .8rem 1.5rem;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .875rem;
  opacity: 0;
  pointer-events: none;
  transition: all .4s;
  z-index: 9999;
  white-space: nowrap;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.success { background: var(--teal); }
#toast.error   { background: #dc3545; }

/* ── WhatsApp Float ───────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  z-index: 999;
  transition: all .3s;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.12); color: #fff; box-shadow: 0 10px 32px rgba(37,211,102,.55); }
.wa-float .wa-tooltip {
  position: absolute;
  right: 70px;
  background: var(--dark);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .75rem;
  padding: .4rem .9rem;
  border-radius: 50px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all .3s;
  pointer-events: none;
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

/* ── Footer ───────────────────────────── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 60px 0 30px;
}
.footer-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .9;
  transition: opacity .2s;
}
.footer-logo:hover { opacity: 1; }
footer .footer-desc { font-size: .9rem; max-width: 280px; }
.footer-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .875rem;
  color: #fff;
  letter-spacing: .5px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--teal); }
.footer-divider { border-color: rgba(255,255,255,.1); margin: 2rem 0; }
.footer-copy { font-size: .85rem; color: rgba(255,255,255,.4); }
.social-links { display: flex; gap: .75rem; }
.social-links a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  transition: all .2s;
}
.social-links a:hover { background: var(--blue); color: #fff; }

/* ── Back to top ──────────────────────── */
#backTop {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  transition: all .3s;
  opacity: 0;
  pointer-events: none;
  z-index: 998;
}
#backTop.visible { opacity: 1; pointer-events: all; }
#backTop:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

/* ── Utilities ────────────────────────── */
.divider-accent {
  width: 50px; height: 4px;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* ── Responsive ───────────────────────── */
@media (max-width: 991.98px) {
  section { padding: 70px 0; }
  .hero-visual { margin-top: 3rem; }
  .floating-badge-1, .floating-badge-2 { display: none; }
}
@media (max-width: 767.98px) {
  section { padding: 55px 0; }
  .hero-stats { gap: 1.5rem; }
  .contact-form-card { padding: 1.5rem; }
}
