@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --accent-color: #2563eb;
  --accent-light: #60a5fa;
  --accent-dark: #1e40af;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-section: #f1f5f9;
  --border-color: rgba(0, 0, 0, 0.08);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  --gradient-soft: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 25px -5px rgba(37,99,235,0.12);
  --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.12);
  --font-main: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

/* ===================== SCROLL ANIMATIONS ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* ===================== HEADER ===================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
  transition: var(--transition);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 30px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 90px;
  padding: 5px 0;
}

.logo img { height: 80px; max-width: 100%; }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links li { position: relative; }

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: var(--bg-card);
  min-width: 260px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  padding: 10px 0;
  border: 1px solid var(--border-color);
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
}
.dropdown:hover .dropdown-menu { display: block; animation: dropIn 0.2s ease; }

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown-menu li a {
  display: block;
  padding: 11px 22px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.2s;
}
.dropdown-menu li a:hover {
  background: var(--gradient-soft);
  color: var(--accent-color);
  padding-left: 28px;
}

/* Buttons */
.btn-primary {
  background: var(--gradient);
  color: white !important;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(37,99,235,0.35);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(37,99,235,0.5);
  transform: translateY(-3px);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--accent-color);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--accent-color);
  transition: var(--transition);
}
.btn-secondary:hover {
  background: var(--gradient);
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37,99,235,0.3);
}

/* ===================== HOME HERO ===================== */
.hero {
  padding: 170px 0 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #eff6ff 0%, #f8fafc 60%, #fff 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulseBg 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(96,165,250,0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulseBg 10s ease-in-out infinite reverse;
}

@keyframes pulseBg {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
}

.hero-content {
  flex: 1;
  max-width: 620px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,0.1);
  color: var(--accent-color);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(37,99,235,0.2);
  animation: fadeInDown 0.8s ease both;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-main);
  animation: fadeInUp 0.9s 0.1s ease both;
}

.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 44px;
  line-height: 1.8;
  animation: fadeInUp 0.9s 0.2s ease both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.9s 0.3s ease both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  animation: fadeInUp 0.9s 0.4s ease both;
}

.hero-stat h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-color);
}

.hero-stat p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: flex-end;
  z-index: 0;
}

.hero-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  animation: floatY 6s ease-in-out infinite;
}

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

/* ===================== PAGE HERO (Subpages) ===================== */
.page-hero {
  padding: 200px 0 130px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #eff6ff 0%, #dbeafe 40%, #f8fafc 100%);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,0.1);
  color: var(--accent-color);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 28px;
  border: 1px solid rgba(37,99,235,0.2);
}

.page-hero h1 {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 28px;
  color: var(--text-main);
}

.page-hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p {
  font-size: 1.35rem;
  color: var(--text-muted);
  max-width: 750px;
  margin: 0 auto 48px;
  line-height: 1.85;
}

.page-hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Floating shapes */
.shape {
  position: absolute;
  border-radius: 50%;
  animation: floatY 7s ease-in-out infinite;
}
.shape-1 {
  width: 100px; height: 100px;
  background: rgba(37,99,235,0.07);
  top: 15%; left: 5%;
  animation-duration: 6s;
}
.shape-2 {
  width: 60px; height: 60px;
  background: rgba(96,165,250,0.1);
  top: 70%; left: 10%;
  animation-duration: 9s;
  animation-delay: 1s;
}
.shape-3 {
  width: 80px; height: 80px;
  background: rgba(37,99,235,0.05);
  top: 20%; right: 8%;
  animation-duration: 8s;
  animation-delay: 2s;
}
.shape-4 {
  width: 50px; height: 50px;
  background: rgba(96,165,250,0.08);
  bottom: 15%; right: 12%;
  animation-duration: 7s;
  animation-delay: 0.5s;
}

/* ===================== SECTIONS ===================== */
section { padding: 120px 0; }

.section-label {
  display: inline-block;
  color: var(--accent-color);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-title { text-align: center; margin-bottom: 70px; }

.section-title h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--text-main);
  line-height: 1.2;
}

.section-title p {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.8;
}

/* ===================== CARDS ===================== */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }

.card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 44px 36px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: var(--transition);
}

.card:hover { transform: translateY(-12px); box-shadow: var(--shadow-md); border-color: rgba(37,99,235,0.2); }
.card:hover::before { opacity: 1; }

.card > * { position: relative; z-index: 1; }

.card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(37,99,235,0.2));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.2rem;
  color: var(--accent-color);
  transition: var(--transition);
}

.card:hover .card-icon {
  background: var(--gradient);
  color: white;
  transform: scale(1.1);
}

.card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 14px; color: var(--text-main); }
.card p { color: var(--text-muted); margin-bottom: 28px; font-size: 1.05rem; line-height: 1.7; }

.read-more {
  color: var(--accent-color);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}
.read-more:hover { gap: 12px; }

/* Feature card */
.feature-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 36px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(37,99,235,0.2); }
.feature-icon {
  width: 60px; height: 60px; min-width: 60px;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(37,99,235,0.2));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--accent-color);
  transition: var(--transition);
}
.feature-card:hover .feature-icon { background: var(--gradient); color: white; }
.feature-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; color: var(--text-main); }
.feature-card p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }

/* Stats card */
.stat-card {
  background: var(--gradient);
  border-radius: 20px;
  padding: 44px 30px;
  text-align: center;
  color: white;
  box-shadow: 0 10px 30px rgba(37,99,235,0.3);
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 20px 40px rgba(37,99,235,0.4); }
.stat-card h2 { font-size: 3.5rem; font-weight: 900; margin-bottom: 8px; }
.stat-card p { font-size: 1.05rem; opacity: 0.9; }

/* ===================== CONTENT LAYOUT ===================== */
.content-section {
  display: flex;
  align-items: center;
  gap: 80px;
}
.content-section.reverse { flex-direction: row-reverse; }

.content-text { flex: 1; }
.content-image { flex: 1; }

.content-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}
.content-image:hover img { transform: scale(1.02); }

.content-text h2 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text-main);
}

.content-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.2rem;
  line-height: 1.85;
}

.content-text ul { margin-bottom: 40px; }

.content-text ul li {
  margin-bottom: 16px;
  position: relative;
  padding-left: 32px;
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 500;
}

.content-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: white;
  font-weight: bold;
  background: var(--gradient);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  top: 2px;
}

/* Process Steps */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; position: relative; }
.process-step {
  text-align: center;
  padding: 40px 24px;
  position: relative;
}
.process-step::after {
  content: '→';
  position: absolute;
  top: 50px;
  right: -10px;
  font-size: 1.5rem;
  color: var(--accent-light);
  z-index: 1;
}
.process-step:last-child::after { display: none; }

.step-number {
  width: 70px; height: 70px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 900; color: white;
  margin: 0 auto 20px;
  box-shadow: 0 8px 20px rgba(37,99,235,0.3);
  transition: var(--transition);
}
.process-step:hover .step-number { transform: scale(1.1) rotate(5deg); }
.process-step h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.process-step p { color: var(--text-muted); font-size: 0.95rem; }

/* CTA Section */
.cta-section {
  background: var(--gradient);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { font-size: 3.2rem; font-weight: 800; color: white; margin-bottom: 20px; }
.cta-section p { font-size: 1.25rem; color: rgba(255,255,255,0.85); margin-bottom: 44px; max-width: 600px; margin-left: auto; margin-right: auto; }
.btn-white { background: white; color: var(--accent-color); padding: 14px 36px; border-radius: 50px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 8px 20px rgba(0,0,0,0.15); transition: var(--transition); }
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.2); }

/* Alternating bg sections */
.bg-section { background: var(--bg-section); }
.bg-white { background: white; }

/* ===================== FOOTER ===================== */
footer {
  background: var(--text-main);
  padding: 80px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 50px;
  margin-bottom: 60px;
}

.footer-col h4 { font-size: 1.1rem; margin-bottom: 24px; color: white; font-weight: 700; }

.footer-col p { color: rgba(255,255,255,0.55); font-size: 0.95rem; line-height: 1.8; }

.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: rgba(255,255,255,0.55); font-size: 0.95rem; }
.footer-col ul li a:hover { color: var(--accent-light); padding-left: 6px; }

.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--accent-color); color: white; transform: translateY(-3px); }

.footer-bottom {
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.35);
  font-size: 0.88rem;
}

/* ===================== CONTACT FORM ===================== */
.contact-form {
  background: var(--bg-card);
  padding: 50px;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.form-group { margin-bottom: 24px; }

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-main);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
  background: white;
}

textarea.form-control { height: 160px; resize: vertical; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3.2rem; }
  .page-hero h1 { font-size: 3.5rem; }
  .content-section { gap: 50px; }
}

@media (max-width: 768px) {
  .hero .container { flex-direction: column; text-align: center; }
  .hero { padding-top: 150px; }
  .hero-image { width: 100%; margin-top: 50px; justify-content: center; }
  .hero h1 { font-size: 2.6rem; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .page-hero h1 { font-size: 2.8rem; }
  .page-hero p { font-size: 1.1rem; }
  .content-section { flex-direction: column; gap: 40px; }
  .content-section.reverse { flex-direction: column; }
  .content-text h2 { font-size: 2.2rem; }
  .section-title h2 { font-size: 2.2rem; }
  .cta-section h2 { font-size: 2.2rem; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step::after { display: none; }
  nav { gap: 20px; }
  .nav-links { gap: 16px; }
}
