:root {
  --primary: #4051fc;
  --primary-hover: #323ee0;
  --bg-dark: #0f172a;
  --bg-light: #f8fafc;
  --surface-light: #ffffff;
  --surface-dark: #1e293b;
  --text-dark: #f8fafc;
  --text-light: #334155;
  --border-light: rgba(0, 0, 0, 0.1);
  --border-dark: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --credik-color: #f59e0b;
}

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

body {
  font-family: 'Inter', 'Montserrat', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Glassmorphism Navbar */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-brand img {
  height: 40px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.3s;
}

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

/* BCV Widget in Nav */
.bcv-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(64, 81, 252, 0.1);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  border: 1px solid rgba(64, 81, 252, 0.2);
}

.bcv-widget .usd-rate {
  font-family: monospace;
}

/* Hero Section */
.hero {
  padding: 150px 20px 80px;
  text-align: center;
  background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(64,81,252,0.1) 0%, rgba(255,255,255,0) 70%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--primary), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: #64748b;
  margin-bottom: 40px;
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn {
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 20px -10px var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -10px var(--primary);
}

.btn-credik {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 10px 20px -10px #f59e0b;
}

.btn-credik:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -10px #f59e0b;
}

/* Bento Grid Services */
.services-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #1e293b;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(250px, auto);
  gap: 20px;
}

.bento-item {
  background: var(--surface-light);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Span columns */
.bento-item:nth-child(1), .bento-item:nth-child(4) {
  grid-column: span 2;
}

.bento-item h3 {
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 15px;
}

.bento-item p {
  color: #64748b;
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.credik-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary);
  background: rgba(64, 81, 252, 0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

/* Footer */
footer {
  background: var(--bg-dark);
  color: var(--text-dark);
  padding: 60px 20px;
  text-align: center;
}

.footer-socials a {
  color: var(--text-dark);
  font-size: 1.5rem;
  margin: 0 10px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-socials a:hover {
  opacity: 1;
  color: var(--primary);
}

/* Responsive */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-item:nth-child(1), .bento-item:nth-child(4) {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    padding: 10px 20px;
  }
  .nav-links {
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-item {
    grid-column: span 1 !important;
  }
  .cta-group {
    flex-direction: column;
  }
}

/* Portfolio & Clients Extensions */
.portfolio-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio-img {
  border-bottom: 1px solid var(--border-light);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.client-card {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.client-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px -5px rgba(64, 81, 252, 0.1);
  border-color: var(--primary);
}

.client-logo-placeholder {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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