:root {
  --primary: #1e56a0;
  --primary-dark: #163e75;
  --primary-light: #3a7bd5;
  --white: #ffffff;
  --light-bg: #f8fbff;
  --gray: #64748b;
  --dark: #0f172a;
  --radius: 18px;
  --transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 30px rgba(30,86,160,0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
  line-height: 1.65;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.container {
  width: 92%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.92)), 
              url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 1.4rem;
  line-height: 1.15;
  background: linear-gradient(to right, #ffffff, #a0cfff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title span {
  display: inline-block;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 3.5vw, 1.35rem);
  margin-bottom: 2.2rem;
  opacity: 0.95;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.95rem 2.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--primary);
  box-shadow: 0 6px 20px rgba(30, 86, 160, 0.25);
  font-size: 1.05rem;
}
.btn-primary:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(30, 86, 160, 0.35);
}

.hero-logo-watermark {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.1;
  pointer-events: none;
}
.hero-logo-watermark img {
  height: 85px;
  filter: brightness(0) invert(1);
}

.section {
  padding: 6rem 0;
}
.section.light-bg {
  background-color: var(--light-bg);
}
.section h2 {
  text-align: center;
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  margin-bottom: 1.6rem;
  color: var(--dark);
  font-weight: 700;
}
.section-lead {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.8rem;
  color: var(--gray);
  font-size: 1.12rem;
  line-height: 1.7;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}
.stat-card {
  text-align: center;
}
.stat-number {
  font-size: 2.7rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-size: 1.05rem;
  color: var(--gray);
  margin-top: 0.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2.2rem;
  margin-top: 2.4rem;
}
.skill-category h3 {
  color: var(--primary);
  margin-bottom: 1.1rem;
  font-size: 1.35rem;
  font-weight: 600;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.tags span {
  background: var(--white);
  color: var(--primary-dark);
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2.4rem;
  margin-top: 2.6rem;
}
.feature {
  background: var(--white);
  padding: 2.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: left;
  border: 1px solid rgba(30,86,160,0.05);
}
.feature:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.feature h3 {
  margin-bottom: 0.9rem;
  color: var(--primary);
  font-size: 1.35rem;
}
.feature p {
  color: var(--gray);
  line-height: 1.65;
}

.portfolio-links {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  margin: 2.2rem 0;
  flex-wrap: wrap;
}
.portfolio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--white);
  color: var(--primary);
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--primary);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.portfolio-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-section {
  background: linear-gradient(135deg, rgba(30,86,160,0.04) 0%, rgba(255,255,255,0) 100%);
}
.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  margin: 2.2rem 0;
  flex-wrap: wrap;
}
.btn-secondary, .btn-whatsapp {
  padding: 0.95rem 2.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  font-size: 1.05rem;
}
.btn-secondary {
  background: var(--light-bg);
  color: var(--primary);
  border: 1px solid #dbeafe;
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: #e0eaff;
  transform: translateY(-3px);
}
.btn-whatsapp {
  background: #25D366;
  color: white;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  background: #1faa52;
  transform: translateY(-3px);
}

.footer {
  background: var(--light-bg);
  padding: 2.2rem 0;
  text-align: center;
  color: var(--gray);
  font-size: 0.98rem;
  border-top: 1px solid rgba(30,86,160,0.05);
}

.ai-chat-widget {
  position: fixed;
  bottom: 2.2rem;
  right: 2.2rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 14px;
}
.chat-label {
  background: rgba(30, 86, 160, 0.1);
  color: var(--primary-dark);
  padding: 0.55rem 1.1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  max-width: 210px;
  display: none;
}
@media (min-width: 920px) {
  .chat-label {
    display: block;
  }
}
.chat-toggle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: white;
  box-shadow: 0 10px 30px rgba(30, 86, 160, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.chat-toggle:hover {
  transform: scale(1.12);
}
.chat-toggle img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-modal {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 390px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.18);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(30, 86, 160, 0.12);
}
@media (max-width: 768px) {
  .chat-modal {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 90px;
  }
}
.chat-header {
  display: flex;
  align-items: center;
  padding: 1.2rem;
  background: var(--primary);
  color: white;
}
.chat-header img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-right: 14px;
  object-fit: cover;
}
.chat-header small {
  display: block;
  font-size: 0.82rem;
  opacity: 0.92;
}
.close-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: white;
  font-size: 1.9rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-btn:hover {
  background: rgba(255,255,255,0.25);
}

.chat-messages {
  padding: 1.3rem;
  height: 310px;
  overflow-y: auto;
  background: transparent;
}
.message {
  padding: 1rem;
  margin-bottom: 1.1rem;
  border-radius: 18px;
  max-width: 85%;
  word-wrap: break-word;
  line-height: 1.55;
}
.bot {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(30, 86, 160, 0.12);
  align-self: flex-start;
  border-bottom-right-radius: 6px;
}
.user {
  background: var(--primary);
  color: white;
  margin-left: auto;
  text-align: right;
  border-bottom-left-radius: 6px;
}
.message strong {
  font-weight: 700;
  color: var(--primary);
}

.chat-input {
  display: flex;
  padding: 1.1rem;
  background: rgba(248, 251, 255, 0.7);
  border-top: 1px solid rgba(30, 86, 160, 0.1);
}
.chat-input input {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  font-family: inherit;
  background: rgba(255,255,255,0.9);
  font-size: 1rem;
}
.chat-input button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.8rem 1.4rem;
  margin-left: 0.9rem;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}
.chat-input button:hover {
  background: var(--primary-light);
}

.ai-loading {
  display: none;
  position: fixed;
  bottom: 105px;
  right: 95px;
  z-index: 999;
}
.typing {
  display: flex;
  padding: 0.85rem 1.3rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.14);
  border: 1px solid rgba(30, 86, 160, 0.12);
}
.dot {
  width: 9px;
  height: 9px;
  background: var(--primary);
  border-radius: 50%;
  margin: 0 4px;
  animation: bounce 1.4s infinite ease-in-out both;
}
.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

[data-aos] {
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.5s ease;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.pricing-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(30,86,160,0.06);
}
.pricing-card.featured {
  border: 2px solid var(--primary);
  position: relative;
  transform: scale(1.03);
}
.pricing-card.featured::before {
  content: "POPULER";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}
.pricing-card h3 {
  margin-bottom: 1rem;
  color: var(--dark);
}
.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.2rem;
}
.pricing-card ul {
  list-style: none;
  margin-bottom: 1.8rem;
  text-align: left;
}
.pricing-card li {
  margin-bottom: 0.6rem;
  color: var(--gray);
  position: relative;
  padding-left: 1.4rem;
}
.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.service-card {
  background: white;
  padding: 1.8rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.service-card h3 {
  color: var(--primary);
  margin-bottom: 0.8rem;
}
.service-card p {
  color: var(--gray);
  font-size: 0.98rem;
}

.faq-item {
  margin-bottom: 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(30,86,160,0.08);
}
.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.faq-item h3 {
  color: var(--primary);
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
}
