:root {
  --primary-color: #1E3F33; /* Deep Pine */
  --secondary-color: #4A7C59; /* Bright Sage */
  --accent-color: #D4A373; /* Golden Sand */
  --bg-color: #F9F9FC;
  --surface-color: #FFFFFF;
  --text-dark: #1A1A1A;
  --text-light: #666666;
  --white: #FFFFFF;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --radius-md: 12px;
  --radius-lg: 24px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-padding {
  padding: 6rem 0;
}

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

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(74, 124, 89, 0.1);
  color: var(--secondary-color);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(30, 63, 51, 0.39);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 124, 89, 0.23);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* ====== TICKER DINÂMICO DE EDITAIS ====== */
.edital-ticker-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(90deg, #1E3F33 0%, #2d6048 50%, #1E3F33 100%);
  display: none;
  align-items: center;
  z-index: 1100;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.ticker-label {
  background: rgba(255,255,255,0.12);
  color: #a8f0c6;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.edital-ticker {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  overflow: hidden;
  flex: 1;
  animation: tickerScroll 35s linear infinite;
}

.edital-ticker:hover { animation-play-state: paused; }

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.33%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  color: rgba(255,255,255,0.88);
  font-size: 0.78rem;
  font-weight: 500;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.ticker-item i {
  color: #6ee7a0;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.ticker-link {
  color: inherit !important;
  text-decoration: none;
  transition: color 0.2s;
}

.ticker-link:hover { color: #a8f0c6 !important; }
.ticker-link strong { color: white; font-weight: 600; }

/* Badges inline no ticker */
.ticker-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  margin: 0 3px;
  vertical-align: middle;
  letter-spacing: 0.03em;
}
.ticker-esfera  { background: rgba(147,197,253,0.15); color: #93c5fd; border: 1px solid rgba(147,197,253,0.3); }
.ticker-tipo    { background: rgba(196,181,253,0.15); color: #c4b5fd; border: 1px solid rgba(196,181,253,0.3); }
.ticker-urgente { background: rgba(251,191,36,0.2);  color: #fbbf24; border: 1px solid rgba(251,191,36,0.4); animation: pulse-badge 1.5s ease-in-out infinite; }

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

/* Header sobe quando ticker está ativo */
body.ticker-visible header {
  top: 40px;
}

body.ticker-visible .hero,
body.ticker-visible section:first-of-type {
  padding-top: 120px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: top 0.3s ease, var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links > li > a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

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

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

/* Portal link highlight */
.nav-portal {
  color: var(--primary-color) !important;
  font-weight: 700 !important;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-portal::after { display: none !important; }

/* ====== DROPDOWN NAV ====== */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.dropdown-toggle i {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}

.nav-dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.05);
  padding: 8px;
  min-width: 220px;
  z-index: 2000;
  flex-direction: column;
  animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
  transition: background 0.2s;
  white-space: nowrap;
}

.dropdown-menu li a i {
  font-size: 1rem;
  color: var(--secondary-color);
}

.dropdown-menu li a:hover,
.dropdown-menu li a.active {
  background: rgba(74, 124, 89, 0.08);
  color: var(--secondary-color);
}

.dropdown-menu li a::after { display: none !important; }

/* Seta triangular */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid white;
}

/* ====== HAMBURGER MOBILE ====== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
  z-index: 1100;
}

.nav-hamburger:hover { background: rgba(0,0,0,0.04); }

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-hamburger.is-active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-hamburger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.is-active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ====== RESPONSIVE NAV ====== */
@media (max-width: 900px) {
  .nav-hamburger { display: flex; }

  #mainNav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    z-index: 999;
    overflow-y: auto;
    padding: 20px 5% 40px;
    border-top: 1px solid rgba(0,0,0,0.06);
  }

  #mainNav.nav-open {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav-links > li {
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  .nav-links > li > a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 600;
  }

  .nav-links > li > a::after { display: none; }

  .nav-dropdown .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 8px 16px;
    min-width: auto;
    animation: none;
    background: transparent;
    display: none;
  }

  .nav-dropdown.open .dropdown-menu { display: flex; }

  .dropdown-menu::before { display: none; }

  .dropdown-menu li a {
    padding: 10px 0;
    font-size: 0.95rem;
    background: none !important;
  }

  .nav-cta {
    margin-top: 16px !important;
    width: 100%;
    text-align: center;
    justify-content: center;
    border-radius: 50px !important;
  }

  .nav-portal {
    padding: 14px 0;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  background-color: var(--primary-color);
  color: var(--white);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--primary-color) 0%, rgba(30, 63, 51, 0.7) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.hero-content {
  max-width: 700px;
  animation: fadeUp 1s ease-out forwards;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.hero .btn-outline:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* About Section */
.about {
  background: var(--surface-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.about-img-wrapper:hover img {
  transform: scale(1.03);
}

.about-stats {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  animation: float 6s ease-in-out infinite;
}

.stats-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary-color);
  line-height: 1;
}

.stats-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light);
}

.about-content ul {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-content li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(74, 124, 89, 0.1);
  color: var(--secondary-color);
  border-radius: 50%;
}

/* Services */
.services {
  background: var(--bg-color);
}

.services-header {
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.service-category-title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
}

.mb-5 { margin-bottom: 4rem; }
.mt-5 { margin-top: 4rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--surface-color);
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--secondary-color);
  transition: var(--transition);
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  height: 6px;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(74, 124, 89, 0.1);
  color: var(--secondary-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

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

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.875rem;
}

.service-link:hover {
  color: var(--secondary-color);
  gap: 0.75rem;
}

/* Call to Action */
.cta {
  background: var(--primary-color);
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  color: var(--white);
}

.cta::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: var(--secondary-color);
  opacity: 0.1;
  border-radius: 50%;
  filter: blur(50px);
}

.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta h2 {
  color: var(--white);
}

.cta p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* Footer */
footer {
  background: #111111;
  color: #fff;
  padding: 5rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: #999;
  font-size: 0.95rem;
}

.footer-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: #999;
  font-size: 0.95rem;
}

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

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: #999;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-contact i {
  color: var(--accent-color);
  margin-top: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: #666;
  font-size: 0.875rem;
}

/* Logo Image */
.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.footer-brand .logo-img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* Authority Section */
.authority {
  background: var(--surface-color);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.authority-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.authority-img-wrapper {
  position: relative;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f0f0f0;
}

.authority-img-wrapper img {
  width: 100%;
  display: block;
}

.authority-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--shadow-md);
}

.authority-features {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.authority-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
  color: var(--text-dark);
}

.authority-features i {
  color: var(--secondary-color);
  font-size: 1.25rem;
}

/* Auditoria IA Section */
.auditor-box {
  background: var(--surface-color);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.input-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  resize: vertical;
  transition: var(--transition);
}

.input-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.auditor-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
  color: var(--secondary-color);
}

.auditor-loading i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.auditor-result {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

#iaContent {
  background: rgba(74, 124, 89, 0.05);
  padding: 2rem;
  border-left: 4px solid var(--secondary-color);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 2rem;
}

#iaContent h3, #iaContent strong {
  color: var(--primary-color);
}

#iaContent ul {
  padding-left: 1.5rem;
  list-style: disc;
  margin-bottom: 1.5rem;
}

.auditor-cta {
  background: var(--primary-color);
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.auditor-cta h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.auditor-cta .btn {
  margin-top: 1rem;
  background: var(--accent-color);
  color: var(--white);
}

.auditor-cta .btn:hover {
  background: var(--secondary-color);
  color: var(--white);
}

/* Ticker de Editais Dinâmico */
.edital-ticker-wrapper {
  background: var(--primary-color);
  color: white;
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
}
.ticker-label {
  background: var(--accent-color);
  color: white;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  position: absolute;
  left: 0;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
}
.edital-ticker {
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
  display: inline-block;
  padding-left: 100%;
}
.edital-ticker:hover {
  animation-play-state: paused;
}
.ticker-item {
  display: inline-block;
  margin-right: 60px;
  font-size: 0.95rem;
}
.ticker-item i {
  color: var(--secondary-color);
  margin-right: 6px;
}
.ticker-link {
  color: white;
  text-decoration: none;
}
.ticker-link:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Keyframes */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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


/* Glassmorphism & Premium Portfolio Utils */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.bg-pattern {
  background-image: radial-gradient(var(--secondary-color) 0.5px, transparent 0.5px);
  background-size: 20px 20px;
  background-position: 0 0;
  opacity: 0.1;
  position: absolute;
  inset: 0;
  z-index: -1;
}

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

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

.project-hero {
  padding-top: 180px;
  padding-bottom: 100px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.project-hero h1 {
  color: white;
  margin-bottom: 1rem;
}

.project-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(4px);
}

.project-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.project-content {
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.content-main {
  background: white;
  padding: 4rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-box {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.sidebar-box h4 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-size: 1.25rem;
}

.impact-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.impact-item {
  display: flex;
  flex-direction: column;
}

.impact-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary-color);
  line-height: 1.2;
}

.impact-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
  background: var(--primary-color);
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  opacity: 0.7;
}

.portfolio-card:hover img {
  transform: scale(1.1);
  opacity: 0.4;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  background: linear-gradient(to top, rgba(30, 63, 51, 0.9) 0%, transparent 60%);
  color: white;
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
  background: linear-gradient(to top, rgba(30, 63, 51, 0.95) 0%, rgba(30, 63, 51, 0.4) 100%);
}

.portfolio-overlay h3 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  transform: translateY(10px);
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay h3 {
  transform: translateY(0);
}

.portfolio-overlay p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay p {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  width: fit-content;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
}

.portfolio-card:hover .portfolio-btn {
  opacity: 1;
  transform: translateY(0);
  background: var(--white);
  color: var(--primary-color);
}

/* Instagram Grid */
.insta-mock:hover img {
    transform: scale(1.1);
}
.insta-mock:hover .insta-hover {
    opacity: 1 !important;
}

/* Responsive */
@media (max-width: 992px) {
  .about-grid, .authority-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .nav-links {
    display: none; /* In a real app we'd add a hamburger menu */
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  color: #FFF;
}

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