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

:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #818cf8;
  --accent: #06b6d4;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --dark: #0f172a;
  --surface: #ffffff;
  --bg: #f4f6fb;
  --text-muted: #64748b;
  --radius: 14px;
  --shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lift: 0 12px 32px rgba(79, 70, 229, 0.18);
}

* { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 10% 0%, rgba(79, 70, 229, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(6, 182, 212, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
  color: #1e293b;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  opacity: 0.3;
  animation: floatBlob 14s ease-in-out infinite;
}
body::before {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  top: -100px; left: -100px;
}
body::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  bottom: -150px; right: -150px;
  animation-delay: 3s;
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
}

.page-wrapper { min-height: calc(100vh - 76px); display: flex; flex-direction: column; }
.page-wrapper > .container { flex: 1; }

.sticky-nav {
  position: sticky; top: 0; z-index: 999;
  background: linear-gradient(120deg, #0f172a 0%, #1e1b4b 100%) !important;
  padding-top: 1rem; padding-bottom: 1rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.navbar-brand {
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.4rem; letter-spacing: 0.02em;
  background: linear-gradient(90deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-user-text { color: #e2e8f0; font-size: 0.9rem; }

.hero-split { padding-top: 3rem !important; padding-bottom: 1rem !important; gap: 2rem 0; }
.hero-badge {
  display: inline-block; padding: 0.45rem 1.1rem; border-radius: 999px;
  background: linear-gradient(120deg, rgba(79,70,229,0.1), rgba(6,182,212,0.1));
  color: var(--primary-dark); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid rgba(79,70,229,0.18);
}
.hero-title {
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 2.9rem;
  line-height: 1.15; letter-spacing: -0.02em; color: var(--dark);
}
.text-gradient {
  background: linear-gradient(100deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-image-wrap {
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.28);
  position: relative; transform: rotate(1deg); transition: transform 0.4s ease;
  margin: 0 0 0 1rem;
}
.hero-image-wrap:hover { transform: rotate(0deg) scale(1.015); }
.hero-image-wrap img { width: 100%; display: block; aspect-ratio: 4 / 3.2; object-fit: cover; }

.hero-mini-stats { display: flex; align-items: center; gap: 1.6rem; padding: 1.2rem 0 0; }
.mini-stat { display: flex; flex-direction: column; }
.mini-stat-divider { width: 1px; height: 32px; background: #e2e8f0; }
.mini-stat-num { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--primary-dark); line-height: 1.1; }
.mini-stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-top: 0.15rem; }

.section-divider { height: 1px; background: linear-gradient(90deg, transparent, #e2e8f0 50%, transparent); margin: 3rem 0; }
.section-label { text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--text-muted); font-size: 0.8rem; }
.section-title { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.9rem; color: var(--dark); }

.feature-card {
  background: var(--surface); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-soft); border: 1px solid #f1f5f9;
  transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12); }
.feature-photo-wrap { height: 180px; overflow: hidden; }
.feature-photo-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.feature-card:hover .feature-photo-wrap img { transform: scale(1.08); }
.feature-body { padding: 1.6rem 1.6rem 1.8rem; }
.feature-body h5 { font-family: 'Sora', sans-serif; font-weight: 700; margin-bottom: 0.5rem; }
.feature-body p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 0; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 0.8rem; }
.feature-icon-primary { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); }
.feature-icon-success { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.feature-icon-info { background: linear-gradient(135deg, #cffafe, #a5f3fc); }

.cta-band {
  background: linear-gradient(120deg, #eef2ff 0%, #e0f2fe 100%);
  border-radius: 24px; padding: 3rem 2rem; border: 1px solid rgba(79,70,229,0.1); margin-bottom: 3rem;
}

.stat-strip { padding: 2rem 0; }
.stat-box { background: var(--surface); border-radius: var(--radius); padding: 1.6rem 1rem; box-shadow: var(--shadow-soft); transition: transform 0.25s ease; }
.stat-box:hover { transform: translateY(-4px); }
.stat-number { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 2.2rem; background: linear-gradient(100deg, var(--primary) 0%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; margin-top: 0.2rem; }

.card { border: none; border-radius: var(--radius); box-shadow: var(--shadow-soft); transition: transform 0.25s ease, box-shadow 0.25s ease; background: var(--surface); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card-title { font-family: 'Sora', sans-serif; font-weight: 700; }

.card.bg-primary { background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%) !important; }
.card.bg-success { background: linear-gradient(135deg, #34d399 0%, #059669 100%) !important; }
.card.bg-info { background: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%) !important; }
.card.bg-warning { background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%) !important; }
.card.bg-primary .card-title, .card.bg-success .card-title, .card.bg-info .card-title, .card.bg-warning .card-title { opacity: 0.9; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.card.bg-primary h2, .card.bg-success h2, .card.bg-info h2, .card.bg-warning h2 { font-size: 2.4rem; font-family: 'Sora', sans-serif; }
.card.bg-primary:hover, .card.bg-success:hover, .card.bg-info:hover, .card.bg-warning:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18); }

.col-md-5 > .card, .col-md-6 > .card { position: relative; border-radius: 20px; animation: fadeUp 0.4s ease; }
.col-md-5 > .card::before, .col-md-6 > .card::before {
  content: ''; position: absolute; inset: -2px; border-radius: 22px; padding: 2px;
  background: linear-gradient(120deg, var(--primary-light), var(--accent), var(--primary));
  background-size: 200% 200%; animation: gradientShift 5s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; z-index: -1; opacity: 0.7;
}
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.col-md-5 .card-title::before, .col-md-6 .card-title::before {
  content: ''; display: inline-block; width: 4px; height: 1.4rem;
  background: linear-gradient(var(--primary), var(--accent)); border-radius: 4px;
  margin-right: 10px; vertical-align: middle;
}

.btn { border-radius: 10px; font-weight: 600; padding: 0.55rem 1.3rem; transition: all 0.2s ease; letter-spacing: 0.01em; }
.btn-primary { background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%); border: none; box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35); position: relative; overflow: hidden; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(79, 70, 229, 0.45); }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg); transition: left 0.6s ease;
}
.btn-primary:hover::after { left: 125%; }
.btn-success { background: linear-gradient(120deg, #10b981 0%, #059669 100%); border: none; }
.btn-outline-primary:hover, .btn-outline-secondary:hover, .btn-outline-danger:hover { transform: translateY(-2px); }

.form-control, .form-select { border-radius: 10px; border: 1.5px solid #e2e8f0; padding: 0.6rem 0.9rem; transition: all 0.2s ease; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.18), 0 0 20px rgba(6, 182, 212, 0.15); }
.form-label { font-weight: 600; font-size: 0.9rem; color: #334155; }

.table { border-radius: var(--radius); overflow: hidden; }
.table thead { background: linear-gradient(120deg, #eef2ff 0%, #e0e7ff 100%); }
.table thead th { font-family: 'Sora', sans-serif; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary-dark); border: none; padding: 0.9rem; }
.table tbody tr { transition: background 0.15s ease; }
.table-hover tbody tr:hover { background: #f5f7ff; }

.badge { font-weight: 600; padding: 0.45em 0.8em; border-radius: 8px; letter-spacing: 0.02em; }

.alert { border: none; border-radius: 12px; border-left: 5px solid transparent; font-weight: 500; animation: slideDown 0.35s ease; }
.alert-success { background: #ecfdf5; border-left-color: var(--success); color: #065f46; }
.alert-danger { background: #fef2f2; border-left-color: var(--danger); color: #991b1b; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.list-group-item { border: none; border-bottom: 1px solid #f1f5f9; padding: 0.9rem 0.5rem; transition: background 0.15s ease; }
.list-group-item:hover { background: #f8fafc; }

.site-footer { background: linear-gradient(120deg, var(--dark) 0%, #1e1b4b 100%); color: #cbd5e1; margin-top: 4rem; }
.footer-brand { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.4rem; background: linear-gradient(90deg, #ffffff 0%, #a5b4fc 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-bottom { font-size: 0.85rem; color: #94a3b8; padding-top: 0.5rem; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--primary-light), var(--primary)); border-radius: 10px; }

@media (max-width: 991px) {
  .hero-title { font-size: 2.2rem; }
  .hero-image-wrap { margin: 2rem 0 0; transform: none; }
  .hero-mini-stats { flex-wrap: wrap; }
}
