:root {
  /* Brand Colors */
  --primary: #0A58CA;
  /* Vibrant Trust Blue */
  --primary-dark: #084298;
  --secondary: #20C997;
  /* Growth Green */
  --secondary-dark: #198754;
  --accent: #E0F2FE;

  /* Neutral Colors */
  --text-main: #1E293B;
  --text-light: #64748B;
  --bg-main: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-dark: #0F172A;

  /* WhatsApp Green */
  --whatsapp: #25D366;
  --whatsapp-hover: #128C7E;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Properties */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--bg-dark);
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Utilities */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

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

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(10, 88, 202, 0.39);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 88, 202, 0.4);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
}

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

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  z-index: 1001;
}

.logo-jr {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: 1.75rem;
}

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

.nav-link {
  font-weight: 500;
  color: var(--text-main);
}

.nav-link:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  position: relative;
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition);
  left: 0;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

.menu-toggle.active .hamburger {
  background-color: transparent;
}

.menu-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: white;
  padding: 4rem 0 0 0;
}

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

.footer-logo .logo-text {
  color: white;
}

.footer-brand p {
  color: #94A3B8;
  margin-top: 1rem;
  max-width: 400px;
}

.footer-links h3,
.footer-contact h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

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

.footer-links a {
  color: #94A3B8;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 0.25rem;
}

.footer-contact p {
  color: #94A3B8;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: bold;
}

.social-links a:hover {
  background-color: var(--secondary);
}

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

/* Floating WhatsApp */
.float-wa {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--whatsapp);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
  z-index: 100;
  transition: var(--transition);
}

.float-wa:hover {
  background-color: var(--whatsapp-hover);
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--bg-main);
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

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

  .nav-link {
    font-size: 1.25rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- NEW SECTIONS --- */

/* Globals & Layouts */
.section-padding {
  padding: 5rem 0;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(10, 88, 202, 0.1);
  color: var(--primary);
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 88, 202, 0.8) 100%);
}

.hero-container {
  text-align: center;
  color: white;
  max-width: 900px;
}

.hero .badge {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  backdrop-filter: blur(5px);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, #20C997, #E0F2FE);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-inline: auto;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-white-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

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

/* Problem vs Solution */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 0rem;
}

.problem-box,
.solution-box {
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.problem-box {
  background-color: white;
  border-top: 4px solid #EF4444;
}

.solution-box {
  background-color: var(--bg-dark);
  color: white;
  border-top: 4px solid var(--secondary);
}

.box-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.problem-box h3,
.solution-box h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.solution-box h3 {
  color: white;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 500;
}

.error-list li {
  color: var(--text-main);
}

.error-list li::before {
  content: '❌';
  font-size: 1.25rem;
}

.success-list li {
  color: rgba(255, 255, 255, 0.9);
}

.success-list li::before {
  content: '✅';
  font-size: 1.25rem;
}

.solution-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary);
  margin-top: 1.5rem;
}

@media (max-width: 800px) {
  .split-layout {
    grid-template-columns: 1fr;
  }

  .problem-box,
  .solution-box {
    padding: 2rem;
  }
}

/* --- SERVICES & PORTFOLIO --- */

/* Typography & Utilities Extensions */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  color: var(--bg-dark);
  font-weight: 700;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.bg-light {
  background-color: var(--bg-light);
}

.bg-dark {
  background-color: var(--bg-dark);
  color: white;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

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

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

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

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.portfolio-item {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.portfolio-img-wrapper {
  height: 220px;
  width: 100%;
  overflow: hidden;
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--bg-dark), var(--primary-dark));
}

.portfolio-info {
  padding: 1.5rem;
  text-align: left;
}

.portfolio-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.portfolio-info p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.portfolio-cta {
  margin-top: 2rem;
}

/* --- TESTIMONIALS & PRICING --- */

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: left;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.stars {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.testimonial-text::before {
  content: '"';
  position: absolute;
  top: -2rem;
  left: -1rem;
  font-size: 5rem;
  color: rgba(10, 88, 202, 0.1);
  font-family: serif;
  z-index: -1;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-avatar {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  font-family: var(--font-heading);
}

.client-info h4 {
  margin: 0;
  font-size: 1.1rem;
}

.client-info span {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  align-items: start;
}

.pricing-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  transition: var(--transition);
}

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

.pricing-card.popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
  transform: scale(1.05);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-5px);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: bold;
}

.pricing-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0.5rem 0 1.5rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--primary);
  margin-bottom: 2rem;
}

.pricing-list {
  text-align: left;
  margin-bottom: 2.5rem;
}

.pricing-list li {
  color: var(--text-main);
  font-size: 1rem;
}

.btn-full {
  width: 100%;
  border-radius: var(--radius-md);
  padding: 1rem;
}

/* Location & Final CTA */
.location-layout {
  align-items: center;
}

.contact-details {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item .icon {
  font-size: 2rem;
}

.contact-item h4 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--text-light);
}

.location-map {
  width: 100%;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
}

.final-cta {
  padding: 8rem 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 5rem 3rem;
  color: white;
  box-shadow: var(--shadow-lg);
}

.cta-box h2 {
  color: white;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.cta-box p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.btn-cta {
  font-size: 1.25rem;
  padding: 1.25rem 3rem;
  border-radius: 3rem;
  background-color: var(--whatsapp);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  color: white;
  transition: var(--transition);
  display: inline-flex;
}

.btn-cta:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  color: white;
}

@media (max-width: 1024px) {
  .pricing-card.popular {
    transform: scale(1);
  }

  .pricing-card.popular:hover {
    transform: translateY(-5px);
  }

  .cta-box {
    padding: 3rem 1.5rem;
  }
}