:root {
  --bg-dark: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-hover: rgba(51, 65, 85, 0.8);
  --primary: #3b82f6;
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --accent: #f472b6;
  --accent-gradient: linear-gradient(135deg, #f472b6 0%, #db2777 100%);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-light: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: #1C1550;
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px; /* Space for bottom nav */
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(244, 114, 182, 0.15) 0%, transparent 40%);
  background-attachment: fixed;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.wrap {
  max-width: 480px; /* Mobile focused max-width */
  margin: 0 auto;
  padding: 20px;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-top: 10px;
}

.brand {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

/* Hero Section */
.hero {
  background: #000000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 9px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.hero h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 0;
}

/* Quick Grid (Services, Products, etc) */
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.card {
  background: #000000;
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-radius: 9px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.card:active {
  transform: scale(0.98);
  background-color: var(--bg-card-hover);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.card-title {
  font-weight: 700;
  font-size: 20px;
  color: var(--text-main);
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

/* Sections */
.section {
  margin-bottom: 32px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

.section-link {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
}

/* Expertise Grid */
.expertise-grid {
  display: grid;
  gap: 12px;
}

.expertise-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.e-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 24px;
  color: white;
  flex-shrink: 0;
}

.e-content {
  flex: 1;
}

.e-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}

.e-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Portfolio / Case Studies */
.portfolio-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  margin: 0 -20px;
  padding: 0 20px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.portfolio-scroll::-webkit-scrollbar {
  display: none;
}

.portfolio-card {
  min-width: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  display: block;
}

.portfolio-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.portfolio-content {
  padding: 16px;
}

.portfolio-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

.portfolio-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* Process Steps */
.process-steps {
  position: relative;
  padding-left: 20px;
}

.process-steps::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border-light);
  border-radius: 2px;
}

.process-step {
  position: relative;
  padding-bottom: 24px;
  padding-left: 24px;
}

.process-step:last-child {
  padding-bottom: 0;
}

.step-dot {
  position: absolute;
  left: -25px; /* Adjust based on padding-left of parent + line width */
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-dark);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.step-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* CTA */
.cta-box {
  background: #000000;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 24px;
  text-align: center;
  margin-top: 40px;
}

.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 14px;
  background: #4B2A75;
  color: white;
  font-weight: 700;
      border-top-left-radius: 15px;
    border-bottom-right-radius: 15px;
  font-size: 16px;
  
  margin-bottom: 12px;
}

.btn-secondary {
  display: inline-block;
  width: 100%;
  padding: 14px;
  background: #000000;
  color: var(--text-main);
  font-weight: 600;
  border-radius: 90px;
  font-size: 16px;
  border: 1px solid var(--border-light);
}

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 440px;
  margin: 0 auto;
  background: #000000;
 
  border: 1px solid var(--border-light);
  border-radius: 90px;
  height: 74px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 100;
}

.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  width: 60px;
}

.bn-item.active {
  color: #FFFFFF;
}

.bn-item svg {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  stroke-width: 2px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeIn 0.6s ease forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
