/**
 * Brass Tacks Digital Core Global CSS Styles
 * Implements high-contrast dark theme presets and layout utility wrappers.
 */

/* Import Google Web Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Fira+Code:wght@400;500&display=swap');

/* CSS Variables */
:root {
  /* Brand Colors */
  --primary: #3fc1c9;
  --primary-dark: #2aa8af;
  --primary-light: #6dd5db;
  --primary-glow: rgba(63, 193, 201, 0.18);

  /* Primary Gradient (use this everywhere instead of flat --primary) */
  --gradient-primary: linear-gradient(135deg, #3fc1c9 0%, #0e9aa7 50%, #0a7a85 100%);
  --gradient-primary-soft: linear-gradient(135deg, #3fc1c9 0%, #6dd5db 100%);
  --gradient-primary-vivid: linear-gradient(135deg, #5ecdd4 0%, #3fc1c9 40%, #0e9aa7 100%);

  /* Accent */
  --accent: #ff6b35;
  --accent-dark: #e05a26;

  /* Deep Dark Theme Backgrounds (Superb contrast, gorgeous high-density green-toned cyber-obsidian) */
  --dark-bg: #02090b;
  --dark-surface: #041215;
  --dark-card: #081d20;
  --dark-border: rgba(63, 193, 201, 0.2);

  /* Text Colors — High Contrast Light on Dark */
  --text-primary: #f2f9fb;
  --text-secondary: #abc4cd;
  --text-muted: #72919d;
  --white: #ffffff;

  /* Dark Theme Gradients */
  --gradient-dark: linear-gradient(135deg, #02090b 0%, #010405 100%);
  --gradient-card: linear-gradient(145deg, #0a272a 0%, #01080a 100%);

  /* Shadows — Ambient brand-tinted glows */
  --shadow-primary: 0 0 24px rgba(63, 193, 201, 0.35);
  --shadow-card: 0 8px 32px rgba(3, 6, 10, 0.6);
  --shadow-card-hover: 0 16px 48px rgba(63, 193, 201, 0.25);

  /* Shape & Motion */
  --border-radius: 14px;
  --border-radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Bricolage Grotesque', sans-serif;
  --font-mono: 'Fira Code', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--dark-bg);
  color: var(--text-primary);
  font-family: var(--font-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Cards — light glassmorphism */
.card, [class*="card"] {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  box-shadow: var(--shadow-card);
}

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

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #060b11; }
::-webkit-scrollbar-thumb { 
  background: var(--gradient-primary); 
  border-radius: 10px; 
}

/* Text selection */
::selection {
  background: rgba(63, 193, 201, 0.2);
  color: var(--text-primary);
}

/* Core Responsive Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Layout Utilities */
.section-padding {
  padding: 100px 0;
}

.text-center {
  text-align: center;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Typography styles */
h1, h2, h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }

p, li, input, textarea, select, button {
  font-family: 'Plus Jakarta Sans', sans-serif;
}
p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 400;
}
.section-tag, .badge, .tag {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
code, pre, .code-text {
  font-family: 'Fira Code', monospace;
}

/* Nav links */
.nav-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Gradient Text Effect */
.gradient-text {
  background: var(--gradient-primary-vivid);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Glassmorphism Cards */
.card-glass {
  background: rgba(10, 26, 29, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.card-glass:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 15px var(--primary-glow);
}

/* Global Buttons Setup */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 50px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-primary);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: var(--shadow-primary);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(63, 193, 201, 0.40);
  background: var(--gradient-primary-vivid);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background: var(--gradient-primary);
  color: #ffffff;
  border-color: transparent;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

/* Section backgrounds — update all alternating sections */
.section-light { background: var(--dark-bg); }
.section-white { background: var(--dark-surface); }
.section-tint  { background: linear-gradient(135deg, #09111a 0%, #0d1c2b 100%); }

/* Nav update */
nav {
  background: rgba(4, 18, 21, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--dark-border);
}
nav .nav-logo { 
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
nav .nav-link { color: var(--text-secondary); }
nav .nav-link:hover { color: var(--primary); }
nav.scrolled {
  background: rgba(2, 9, 11, 0.96);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
nav .dropdown-menu {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  box-shadow: var(--shadow-card);
}

/* Footer update */
footer {
  background: linear-gradient(180deg, #02090b 0%, #041215 100%);
  color: var(--text-secondary);
  border-top: 1px solid var(--dark-border);
}
footer a { color: var(--text-secondary); }
footer a:hover { color: var(--primary); }
footer .footer-bottom {
  border-top: 1px solid rgba(63, 193, 201, 0.1);
  color: var(--text-muted);
}
/* Footer stays dark — this is intentional for contrast */

.gradient-bg {
  background: var(--gradient-primary) !important;
}
.gradient-border {
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

/* Badges & Tags */
.badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid rgba(63, 193, 201, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--dark-surface);
  color: var(--text-secondary);
  border: 1px solid var(--dark-border);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition);
}

.tag:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Page Loader styling */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--dark-bg);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(63, 193, 201, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

/* GLOBAL WAVING SHIMMER GRADIENT EFFECT FOR HEADINGS */
.shimmer-text-active {
  background: linear-gradient(
    120deg,
    #3fc1c9 0%,
    #0e9aa7 18%,
    #ffffff 38%,
    #ffffff 48%,
    #0e9aa7 68%,
    #3fc1c9 100%
  ) !important;
  background-size: 300% auto !important;
  background-repeat: repeat !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  text-shadow: none !important;
  filter: none !important;
  animation: aiGridShimmerKeyframe 3s linear infinite !important;
  display: inline-block !important;
  position: relative !important;
}

/* ORANGE SHIMMER ENFORCED FOR FIRST HEADINGS OF FIRST SECTIONS OF SELECT PAGES */
.shimmer-text-orange {
  background: linear-gradient(
    120deg,
    #3fc1c9 0%,
    #ff6b35 18%,
    #ffffff 38%,
    #ffffff 48%,
    #ff6b35 68%,
    #3fc1c9 100%
  ) !important;
  background-size: 300% auto !important;
  background-repeat: repeat !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  text-shadow: none !important;
  filter: none !important;
  animation: aiGridShimmerKeyframe 3s linear infinite !important;
  display: inline-block !important;
  position: relative !important;
}

@keyframes aiGridShimmerKeyframe {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: -300% center;
  }
}

