/* BitSensei Custom Styles - Modern Minimalist Design */

/* ==========================================================================
   1. Design Tokens (CSS Custom Properties)
   ========================================================================== */

:root {
  /* Color Palette - Muted & Sophisticated */
  --bs-primary: #0d8a9c;
  --bs-primary-light: #e6f4f6;
  --bs-primary-dark: #096a78;

  /* Neutral palette */
  --bs-gray-50: #fafafa;
  --bs-gray-100: #f5f5f5;
  --bs-gray-200: #e5e5e5;
  --bs-gray-300: #d4d4d4;
  --bs-gray-400: #a3a3a3;
  --bs-gray-500: #737373;
  --bs-gray-600: #525252;
  --bs-gray-700: #404040;
  --bs-gray-800: #262626;
  --bs-gray-900: #171717;

  /* Spacing Scale (8px base) */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* ==========================================================================
   2. Base Typography
   ========================================================================== */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--bs-gray-700);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--bs-gray-900);
  margin-bottom: var(--space-md);
}

h1 { font-size: 3rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: var(--space-lg);
  max-width: 65ch;
}

/* ==========================================================================
   3. Navigation
   ========================================================================== */

.navbarsection {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbarsection .navbar {
  padding: var(--space-md) 0;
}

.brand img {
  height: 36px;
  transition: opacity var(--transition-fast);
}

.brand:hover img {
  opacity: 0.8;
}

.topmenulink {
  font-weight: 500;
  color: var(--bs-gray-700) !important;
  padding: var(--space-sm) var(--space-md) !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  margin: 0 2px;
}

.topmenulink:hover {
  color: var(--bs-primary) !important;
  background: var(--bs-primary-light);
}

.topmenulink.active {
  color: var(--bs-primary) !important;
  background: var(--bs-primary-light);
}

.loginlink {
  background: var(--bs-primary) !important;
  color: #ffffff !important;
  margin-left: var(--space-sm);
}

.loginlink:hover {
  background: var(--bs-primary-dark) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   4. Hero Section
   ========================================================================== */

.herosection {
  background: linear-gradient(135deg, var(--bs-gray-900) 0%, var(--bs-gray-800) 100%);
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.herosection::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(13, 138, 156, 0.2) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.1); }
}

.herocontainer {
  position: relative;
  z-index: 1;
}

.herodiv {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out;
}

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

.hero-tagline {
  color: var(--bs-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.herotextcolour {
  color: #ffffff !important;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  color: var(--bs-gray-400);
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  background: var(--bs-primary);
  border: none;
  padding: var(--space-md) var(--space-xl);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.hero-cta:hover {
  background: var(--bs-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .herotextcolour {
    font-size: 2rem;
  }

  .herosection {
    padding: var(--space-3xl) 0;
  }
}

/* ==========================================================================
   5. CTA Sections
   ========================================================================== */

.c2abuttonsection {
  background: var(--bs-primary-light);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--bs-gray-200);
  border-bottom: 1px solid var(--bs-gray-200);
}

.c2abuttoncontainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.c2atextdiv {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--bs-gray-700);
}

.c2abutton {
  background: var(--bs-primary) !important;
  border: none !important;
  padding: var(--space-sm) var(--space-xl) !important;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.c2abutton:hover {
  background: var(--bs-primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 576px) {
  .c2abuttoncontainer {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   6. Home Section & Service Cards
   ========================================================================== */

.homesection {
  padding: var(--space-4xl) 0;
  background: var(--bs-gray-50);
}

.homecontainer {
  margin-bottom: var(--space-3xl);
}

.homecontainer:last-child {
  margin-bottom: 0;
}

.homediv {
  max-width: 900px;
  margin: 0 auto;
}

.homediv > p {
  text-align: center;
  color: var(--bs-gray-600);
  margin-bottom: var(--space-2xl);
}

.heading {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
}

.heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--bs-primary);
  margin: var(--space-md) auto 0;
  border-radius: 2px;
}

/* Service Cards */
.platformrowdiv {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
  padding: var(--space-xl);
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-lg);
  transition: all var(--transition-base);
  border: 1px solid var(--bs-gray-200);
}

.platformrowdiv:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--bs-primary-light);
}

.platformicon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  padding: var(--space-md);
  background: var(--bs-primary-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  color: var(--bs-primary);
}

.platformrowdiv:hover .platformicon {
  background: var(--bs-primary);
  color: #ffffff;
}

.platformrowcontentdiv {
  flex: 1;
}

.platformrowcontentdiv h4 {
  margin-bottom: var(--space-sm);
  color: var(--bs-gray-900);
}

.homepara {
  color: var(--bs-gray-600);
  line-height: 1.7;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .platformrowdiv {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .platformicon {
    margin-bottom: var(--space-md);
  }

  .homesection {
    padding: var(--space-3xl) 0;
  }
}

/* ==========================================================================
   7. Footer
   ========================================================================== */

.footersection {
  background: var(--bs-gray-900);
  color: var(--bs-gray-300);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footercontainer {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-3xl);
}

.footerleftdiv {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footerlogo {
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: var(--space-sm);
}

.footervisionpara {
  font-size: 1.125rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: var(--space-md);
}

.footeracknow {
  font-size: 0.875rem;
  color: var(--bs-gray-400);
  line-height: 1.6;
  max-width: 500px;
}

.footercopyrightdiv {
  display: flex;
  gap: var(--space-lg);
  font-size: 0.875rem;
  color: var(--bs-gray-500);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--bs-gray-800);
}

.footerrightdiv {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footerrightdiv a {
  text-decoration: none;
}

.footerpagelink {
  color: var(--bs-gray-300);
  font-weight: 500;
  transition: color var(--transition-fast);
  padding: var(--space-xs) 0;
}

.footerpagelink:hover {
  color: var(--bs-primary);
}

@media (max-width: 768px) {
  .footercontainer {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .footerleftdiv {
    align-items: center;
  }

  .footeracknow {
    max-width: 100%;
  }

  .footercopyrightdiv {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footerrightdiv {
    align-items: center;
  }
}

/* ==========================================================================
   8. About Page
   ========================================================================== */

.aboutsection {
  padding: var(--space-3xl) 0;
}

.aboutcontainer {
  max-width: 800px;
  margin: 0 auto;
}

.aboutoriginbrettimage {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: var(--space-xl) 0;
}

/* ==========================================================================
   9. Contact Page
   ========================================================================== */

.contactsection {
  padding: var(--space-3xl) 0;
  background: var(--bs-gray-50);
}

.contactform {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contactform .form-control {
  border: 1px solid var(--bs-gray-300);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contactform .form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px var(--bs-primary-light);
}

.contactform .btn-primary {
  background: var(--bs-primary);
  border: none;
  padding: var(--space-md) var(--space-xl);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.contactform .btn-primary:hover {
  background: var(--bs-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   10. Blog
   ========================================================================== */

.blogsection {
  padding: var(--space-3xl) 0;
}

.bloglistingdiv {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--bs-gray-200);
  margin-bottom: var(--space-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.bloglistingdiv:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* ==========================================================================
   11. Login Page
   ========================================================================== */

.loginsection {
  padding: var(--space-3xl) 0;
  background: var(--bs-gray-50);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.loginformdiv {
  max-width: 400px;
  margin: 0 auto;
  background: #ffffff;
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   12. Utility Classes
   ========================================================================== */

.text-primary {
  color: var(--bs-primary) !important;
}

.bg-primary {
  background-color: var(--bs-primary) !important;
}

.btn-primary {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.btn-primary:hover {
  background-color: var(--bs-primary-dark);
  border-color: var(--bs-primary-dark);
}
