* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #0a0c12;
  color: #eef2ff;
  line-height: 1.5;
  transition: background-color 0.3s ease, color 0.2s ease;
}

.app-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation */
.navbar {
  background: #0f111a;
  border-bottom: 1px solid #1e2438;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.logo-link {
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.logo-link:hover {
  opacity: 0.85;
}

.company-logo {
  height: 48px;
  width: auto;
  display: block;
}

.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 320px;
}

.search-input {
  width: 100%;
  padding: 0.6rem 2rem 0.6rem 1rem;
  background: #1a1d2b;
  border: 1px solid #2d3348;
  border-radius: 40px;
  color: #f0f3ff;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #3b4b8c;
  background: #212536;
}

.search-input::placeholder {
  color: #6c7293;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c7293;
  pointer-events: none;
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: #d9e0ff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.nav-link:hover {
  color: white;
  border-bottom-color: #4c6ef5;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid #2d3348;
  border-radius: 40px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  color: #d9e0ff;
  font-family: inherit;
}

.theme-toggle-btn:hover {
  border-color: #4c6ef5;
  background: rgba(76, 110, 245, 0.1);
  transform: translateY(-1px);
}

.theme-icon {
  font-size: 1rem;
}

/* Main Content */
.main-content {
  flex: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 2rem;
  width: 100%;
}

.welcome-section {
  text-align: center;
  margin-bottom: 4rem;
}

.hero-badge {
  display: inline-block;
  background: #1a1f2e;
  padding: 0.3rem 1rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #8f9bb5;
  margin-bottom: 1.5rem;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, #b4c6ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.highlight {
  background: linear-gradient(135deg, #6082ff, #a47eff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #a3adcf;
  max-width: 700px;
  margin: 0 auto 2rem auto;
  transition: color 0.3s ease;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: #2d3e7c;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  background: #3e53a3;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid #3e4a6b;
  color: #cfdbff;
}

.btn-secondary:hover {
  border-color: #6082ff;
  background: rgba(96, 130, 255, 0.08);
  color: white;
}

.trust-badge {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #8d99c9;
  padding-top: 1rem;
  border-top: 1px solid #202432;
  transition: all 0.3s ease;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: #11141f;
  border-radius: 24px;
  padding: 1.8rem;
  border: 1px solid #212638;
  transition: transform 0.2s, border-color 0.2s, background 0.3s ease;
}

.card:hover {
  border-color: #3c4b7a;
  transform: translateY(-3px);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.card p {
  color: #9aa2c2;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

/* Services Page Specific */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.service-card {
  background: #11141f;
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid #212638;
  transition: all 0.3s ease;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: #9aa2c2;
  line-height: 1.6;
  transition: color 0.3s ease;
}

/* Contact Page Specific */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 2rem 0;
}

.contact-info {
  background: #11141f;
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid #212638;
  transition: all 0.3s ease;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.contact-details p {
  margin: 1rem 0;
  color: #9aa2c2;
  transition: color 0.3s ease;
}

.contact-form {
  background: #11141f;
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid #212638;
  transition: all 0.3s ease;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #cfdbff;
  font-weight: 500;
  transition: color 0.3s ease;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  background: #1a1d2b;
  border: 1px solid #2d3348;
  border-radius: 12px;
  color: #eef2ff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4c6ef5;
  background: #212536;
}

.form-group textarea {
  resize: vertical;
}

/* WAF Page Specific */
.waf-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.waf-feature {
  background: #11141f;
  border-radius: 24px;
  padding: 1.8rem;
  border: 1px solid #212638;
  text-align: center;
  transition: all 0.3s ease;
}

.waf-feature .feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.waf-feature h3 {
  margin-bottom: 0.75rem;
}

.waf-stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 3rem 0;
  padding: 2rem;
  background: #11141f;
  border-radius: 24px;
  border: 1px solid #212638;
  text-align: center;
  transition: all 0.3s ease;
}

.stat h4 {
  font-size: 2rem;
  color: #6082ff;
}

/* Footer */
.site-footer {
  background: #080b12;
  border-top: 1px solid #171c2a;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-info p {
  color: #7e85aa;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.contact-demo {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #5b638b;
}

/* Page Headers */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff, #b4c6ff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.page-header p {
  color: #a3adcf;
  max-width: 700px;
  margin: 0 auto;
  transition: color 0.3s ease;
}

/* ============================================
   LIGHT THEME STYLES
   ============================================ */
body.light-theme {
  background: #f8fafc;
  color: #0f172a;
}

body.light-theme .navbar {
  background: #ffffff;
  border-bottom-color: #e2e8f0;
}

body.light-theme .search-input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

body.light-theme .search-input::placeholder {
  color: #94a3b8;
}

body.light-theme .nav-link {
  color: #334155;
}

body.light-theme .nav-link:hover {
  color: #0f172a;
  border-bottom-color: #4c6ef5;
}

body.light-theme .theme-toggle-btn {
  border-color: #cbd5e1;
  color: #334155;
}

body.light-theme .theme-toggle-btn:hover {
  border-color: #4c6ef5;
  background: rgba(76, 110, 245, 0.08);
}

body.light-theme .hero-badge {
  background: #eef2ff;
  color: #4c6ef5;
}

body.light-theme .hero-title {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

body.light-theme .hero-subtitle {
  color: #475569;
}

body.light-theme .btn-primary {
  background: #4c6ef5;
}

body.light-theme .btn-primary:hover {
  background: #3b5bdb;
}

body.light-theme .btn-secondary {
  border-color: #cbd5e1;
  color: #334155;
}

body.light-theme .btn-secondary:hover {
  border-color: #4c6ef5;
  background: rgba(76, 110, 245, 0.08);
  color: #0f172a;
}

body.light-theme .trust-badge {
  color: #64748b;
  border-top-color: #e2e8f0;
}

body.light-theme .card {
  background: #ffffff;
  border-color: #e2e8f0;
}

body.light-theme .card:hover {
  border-color: #94a3b8;
}

body.light-theme .card p {
  color: #475569;
}

body.light-theme .service-card,
body.light-theme .contact-info,
body.light-theme .contact-form,
body.light-theme .waf-feature,
body.light-theme .waf-stats {
  background: #ffffff;
  border-color: #e2e8f0;
}

body.light-theme .service-card p,
body.light-theme .contact-details p,
body.light-theme .waf-feature p {
  color: #475569;
}

body.light-theme .form-group label {
  color: #334155;
}

body.light-theme .form-group input,
body.light-theme .form-group textarea {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

body.light-theme .form-group input:focus,
body.light-theme .form-group textarea:focus {
  border-color: #4c6ef5;
  background: #ffffff;
}

body.light-theme .site-footer {
  background: #f1f5f9;
  border-top-color: #e2e8f0;
}

body.light-theme .footer-info p {
  color: #64748b;
}

body.light-theme .contact-demo {
  color: #94a3b8;
}

body.light-theme .page-header p {
  color: #475569;
}

/* Responsive */
@media (max-width: 760px) {
  .nav-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-wrapper {
    max-width: 100%;
  }
  
  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .main-content {
    padding: 2rem 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .theme-toggle-btn {
    padding: 0.4rem 1rem;
  }
}