/* ===================================
   TUTELIS SECURITY - TRUST-BUILDING DESIGN
   Psychology Principles Applied:
   - Dark blues/grays = Security & Trust
   - White space = Clarity & Professionalism  
   - Sans-serif fonts = Modern & Reliable
   - Rounded corners = Approachable
   - Gradients = Innovation
   - Icons = Quick comprehension
   =================================== */

:root {
  /* Trust-Building Color Palette */
  --primary-security: #0066ff;
  --primary-dark: #0047b3;
  --primary-light: #3385ff;
  --accent-cyan: #00d9ff;
  --dark-bg: #0a0e27;
  --dark-gradient-start: #0a0e27;
  --dark-gradient-end: #1a1f3a;
  --card-bg: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;
  --border-color: #e0e0e0;
  --success: #00c853;
  --warning: #ff9800;
  
  /* Typography - Professional & Readable */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing & Shadows - Depth Psychology */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.3);
  
  /* Border Radius - Approachable */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* --- Anchor offset for fixed navbar ---
   Use `--navbar-height` to offset fragment targets so headings are not
   hidden behind the fixed header. The JS computes the real navbar height
   at runtime and sets the variable; the default here is a sensible value. */
:root {
  --navbar-height: 72px; /* default; overridden by JS */
}

/* Apply a small extra gap so the heading isn't visually flush against the nav */
[id], h1[id], h2[id], h3[id], h4[id], h5[id], h6[id] {
  scroll-margin-top: calc(var(--navbar-height) + 8px);
}

/* Utility: add top offset for containers that would otherwise be hidden
   behind the fixed navbar (used in `Privacy.cshtml`, `Contact/Sent.cshtml`). */
.offset-for-navbar {
  padding-top: calc(var(--navbar-height) + 16px) !important;
}


/* ===================================
   GLOBAL STYLES - FOUNDATION
   =================================== */

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

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  line-height: 1.6;
  background: #ffffff;
  margin: 0;
  padding: 0;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ===================================
   NAVIGATION - TRUST & AUTHORITY
   =================================== */

.navbar.bg-dark-gradient {
  background: linear-gradient(135deg, var(--dark-gradient-start), var(--dark-gradient-end)) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar.fixed-top {
  backdrop-filter: blur(10px);
}

.brand-security {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: #ffffff !important;
  transition: all 0.3s ease;
}

.brand-security i {
  font-size: 1.8rem;
  color: var(--primary-security);
}

.brand-name {
  color: #ffffff;
  margin-right: 0.5rem;
}

.brand-tagline {
  color: var(--accent-cyan);
  font-weight: 500;
}

.brand-security:hover {
  transform: translateY(-2px);
}

/* Adjust SVG logo sizing for footer and hero only (leave header default) */
.hero-graphic .security-shield svg {
  width: 140px;
  height: 140px;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: #ffffff !important;
  transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 70%;
}

/* ===================================
   BUTTONS - CALL TO ACTION
   =================================== */

.btn-primary-security {
  background: linear-gradient(135deg, var(--primary-security), var(--primary-light));
  color: #ffffff !important;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.4);
  text-transform: none;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary-security:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 102, 255, 0.5);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-security));
  color: #ffffff !important;
}

.btn-outline-primary-security {
  border: 2px solid var(--primary-security);
  color: var(--primary-security);
  background: transparent;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary-security:hover {
  background: var(--primary-security);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===================================
   HERO SECTION - IMMEDIATE TRUST
   =================================== */

.hero-section {
  background: linear-gradient(135deg, var(--dark-gradient-start), var(--dark-gradient-end));
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.1), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 217, 255, 0.1), transparent 50%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-cyan), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 600px;
}

.trust-indicators {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.trust-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: var(--font-display);
}

.trust-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Graphic - Visual Trust */
.hero-graphic {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.security-shield {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(0, 217, 255, 0.2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 150px;
  color: var(--primary-security);
  box-shadow: var(--shadow-glow);
  animation: pulse 3s ease-in-out infinite;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 102, 255, 0.3);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.floating-element {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent-cyan);
  animation: float 4s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.element-1 { 
  top: 10%; 
  right: 20%; 
  animation-delay: 0s; 
}

.element-2 { 
  bottom: 15%; 
  left: 10%; 
  animation-delay: 1s; 
}

.element-3 { 
  top: 50%; 
  right: 5%; 
  animation-delay: 2s; 
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* ===================================
   SERVICES - VALUE PROPOSITION
   =================================== */

.services-section {
  padding: 5rem 0;
  background: #f8f9fa;
}

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-security), var(--accent-cyan));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card.featured {
  border: 2px solid var(--primary-security);
  background: linear-gradient(135deg, #ffffff, #f0f7ff);
}

.popular-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--primary-security), var(--primary-light));
  color: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-security), var(--accent-cyan));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.service-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-features i {
  color: var(--success);
  font-size: 1rem;
}

/* ===================================
   WHY US - CREDIBILITY BUILDING
   =================================== */

.why-us-section {
  padding: 5rem 0;
  background: #ffffff;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-security), var(--accent-cyan));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.feature-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-content p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-box {
  background: linear-gradient(135deg, var(--dark-gradient-start), var(--dark-gradient-end));
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

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

.stat-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===================================
   TESTIMONIALS - SOCIAL PROOF
   =================================== */

.testimonials-section {
  padding: 5rem 0;
  background: #f8f9fa;
}

.testimonial-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.testimonial-rating {
  color: #ffa500;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-security), var(--accent-cyan));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
}

.author-name {
  font-weight: 600;
  color: var(--text-primary);
}

.author-title {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===================================
   CTA SECTION - URGENCY & ACTION
   =================================== */

.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--dark-gradient-start), var(--dark-gradient-end));
}

.cta-box {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.cta-title {
  font-size: 2.5rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.cta-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cta-benefits li {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
}

.cta-benefits i {
  color: var(--accent-cyan);
  font-size: 1.25rem;
}

/* ===================================
   FOOTER - PROFESSIONAL CLOSURE
   =================================== */

.footer-security {
  background: linear-gradient(135deg, var(--dark-gradient-start), var(--dark-gradient-end));
  color: #ffffff;
  padding-top: 3rem;
}

.footer-security h5, .footer-security h6 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-security ul {
  list-style: none;
  padding: 0;
}

.footer-security ul li {
  margin-bottom: 0.75rem;
}

.footer-security a {
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-security a:hover {
  color: var(--accent-cyan) !important;
  transform: translateX(3px);
  display: inline-block;
}

.social-links a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  font-size: 1.25rem;
}

.social-links a:hover {
  background: var(--primary-security);
  color: #ffffff !important;
  transform: translateY(-3px);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-graphic {
    height: 300px;
    margin-top: 3rem;
  }
  
  .security-shield {
    width: 200px;
    height: 200px;
    font-size: 100px;
  }
  
  .floating-element {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .cta-title {
    font-size: 1.75rem;
  }
  
  .stat-value {
    font-size: 2.5rem;
  }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

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

.bg-dark-gradient {
  background: linear-gradient(135deg, var(--dark-gradient-start), var(--dark-gradient-end)) !important;
}

/* Focus States - Accessibility */
.btn:focus, 
.btn:active:focus, 
.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 255, 0.25);
  outline: none;
}