/* General Body Styles */
body {
  font-family: 'Roboto', sans-serif;
  color: #ffffff;
  background-color: #1a1a1a;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
  scroll-behavior: smooth;
}

/* Apply smooth scroll behavior across the entire document */
html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

/* Light mode styles */
body:not(.dark-mode) {
  background-color: #ffffff;
  color: #1a1a1a;
}

/* Hero Section Text Colors */
.hero-content h1,
.hero-content p {
  color: #00ffcc; /* Default color for dark mode */
}

/* Light mode text color for hero section */
body:not(.dark-mode) .hero-content h1,
body:not(.dark-mode) .hero-content p {
  color: #f0f0f0; /* Soft white for light mode */
}

/* Underline for hero text in light mode */
body:not(.dark-mode) .hero-content h1 {
  text-decoration: underline; /* Add underline */
  text-decoration-thickness: 4px; /* Thicker underline */
  text-underline-offset: 12px; /* More space between text and underline */
}

body:not(.dark-mode) .hero-content p {
  text-decoration: underline; /* Add underline */
  text-decoration-thickness: 3px; /* Thicker underline */
  text-underline-offset: 8px; /* More space between text and underline */
}

/* Header Styles */
header {
  background: #333;
  color: #fff;
  padding: 1rem 0;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  display: inline;
  margin: 0 10px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
}

/* Main Element */
main {
  margin: 0;
  padding: 0;
  background-color: transparent;
}

/* Hero Section */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a, #003366);
  margin: 0;
  padding: 0;
}

/* Matrix Canvas */
#matrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 4rem;
  margin: 0 0 20px 0;
}

.hero-content p {
  font-size: 1.5rem;
  margin: 0 0 30px 0;
}

.cta-button {
  padding: 15px 30px;
  background-color: #00ffcc;
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #00ccaa;
}

/* Features Section */
#features {
  padding: 0;
  text-align: center;
  background-color: #2a2a2a;
  position: relative;
  z-index: 1;
  margin: 0;
}

#features h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  margin: 0 0 40px 0;
  color: #00ffcc;
  padding-top: 50px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 50px 20px;
}

.feature-card {
  background: linear-gradient(135deg, #00ffcc, #00ccaa);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 255, 204, 0.3);
}

.feature-card i {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #ffffff;
}

.feature-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #ffffff;
}

.feature-card p {
  font-size: 1.1rem;
  color: #ffffff;
}

/* Footer */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin: 0;
}