:root {
  --bg-dark: #0f0f0f;
  --bg-light: #ffffff;
  --text-dark: #f4f4f4;
  --text-light: #121212;
  --card-dark: #1e1e1e;
  --card-light: #f2f2f2;
  --text-card-dark: #fff;
  --text-card-light: #121212;
  --primary: #23a6fc;
  --accent: #ff6d00;
  --font-main: 'Segoe UI', 'Roboto', sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-main);
  transition: background-color 0.3s, color 0.3s;
}

body.dark {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

body.light {
  background-color: var(--bg-light);
  color: var(--text-light);
}



/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  background: #1a1a1a;
  padding: 1em 2em;
  align-items: center;
}

.navbar .nav-right {
  display: flex;
  gap: 1em;
}

.nav-btn, .mode-toggle, .cta, .contact button {
  background: var(--primary);
  border: none;
  padding: 8px 14px;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.nav-btn:hover,
.mode-toggle:hover,
.cta:hover,
.contact button:hover {
  background: var(--accent);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  text-align: center;
  overflow: hidden;
  color: inherit;
}

.overlay {
  position: absolute;
  top: 40%;
  width: 100%;
  z-index: 10;
}

canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  top: 0;
  left: 0;
  background: transparent;
}

section {
  padding: 3em 2em;
  text-align: center;
}

/* Marquee ticker */
.ticker {
  white-space: nowrap;
  overflow: hidden;
  font-size: 1.1em;
  animation: tickerMove 15s linear infinite;
}

@keyframes tickerMove {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Cards */
.feature-grid, .pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2em;
  margin-top: 2em;
}

.feature-box, .price-box, .testimonial {
  padding: 1.2em;
  border-radius: 10px;
  transition: background 0.3s, color 0.3s;
}

body.dark .feature-box,
body.dark .price-box,
body.dark .testimonial {
  background: var(--card-dark);
  color: var(--text-card-dark);
}

body.light .feature-box,
body.light .price-box,
body.light .testimonial {
  background: var(--card-light);
  color: var(--text-card-light);
}

/* Contact Form */
.contact form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.contact input, .contact textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

footer {
  background: #0a0a0a;
  text-align: center;
  padding: 1em;
  font-size: 0.9em;
  color: #ccc;
}

.cta-banner {
  background: #1757b0;
  color: white;
  padding: 3em;
}

.cta-banner .cta {
  margin-top: 1em;
  display: inline-block;
}

/* Replace links with buttons visually */
a.cta, a.nav-btn {
  display: inline-block;
}

/* News Button */
.news-button {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background-color: #007bff;
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 5px 0 0 5px;
  cursor: pointer;
  z-index: 1000;
}

/* News Panel */
.news-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background-color: #f9f9f9;
  box-shadow: -2px 0 5px rgba(0,0,0,0.3);
  overflow-y: auto;
  transition: right 0.3s ease;
  z-index: 999;
}

.news-panel.open {
  right: 0;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: #007bff;
  color: #fff;
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
}

.news-content {
  padding: 15px;
}

.news-item {
  margin-bottom: 15px;
}

.news-item a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
}

.news-item p {
  margin: 5px 0 0;
  color: #333;
}

