:root {
  --primary-color: #333;
  --secondary-color: #fff;
  --accent-color: #e50914;
  --background-color: #f5f5f5;
  --font-family: 'Poppins', sans-serif;
  --card-bg: #fff;
  --border-radius: 8px;
  --shadow-light: 0 4px 12px rgba(0,0,0,0.1);
  --sidebar-width: 250px;
  --sidebar-bg: #1a1a1a;
  --link-hover-color: #ff496d;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background: var(--background-color);
  color: var(--primary-color);
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100%;
  background: var(--sidebar-bg);
  padding: 2em 1em;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 1em;
  color: var(--secondary-color);
}

.sidebar-logo img {
  border-radius: 50%;
}

.sidebar-logo span {
  font-size: 1.1em;
  font-weight: 600;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.sidebar-nav a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s;
}

.sidebar-nav a:hover {
  color: var(--link-hover-color);
}

.main-content {
  margin-left: var(--sidebar-width);
  padding: 0;
}

.hero {
  background: linear-gradient(135deg, #111 0%, #333 50%, #555 100%);
  color: #fff;
  padding: 5em 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 50vh;
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 1em;
  line-height: 1.5em;
}

.cta-btn {
  background: var(--accent-color);
  color: var(--secondary-color);
  padding: 0.75em 1.5em;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1em;
  box-shadow: var(--shadow-light);
  transition: 0.3s;
}

.cta-btn:hover {
  background: #c40811;
}

.section-wrapper {
  padding: 3em 1em;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section-wrapper h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
}

.section-wrapper p {
  max-width: 600px;
  margin: 0.5em auto 2em;
  line-height: 1.6em;
  font-size: 1em;
  color: #555;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
}

.single-card {
  display: flex;
  justify-content: center;
}

.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}

.card-content {
  padding: 1em;
  flex: 1;
}

.card-content h3 {
  margin-top: 0;
  font-size: 1.3em;
  margin-bottom: 0.5em;
}

.card-content p {
  margin: 0 0 1em;
  line-height: 1.4em;
  color: #444;
}

.link-btn {
  display: inline-block;
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 0.75em 1.5em;
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: 0.3s;
  font-weight: 500;
  box-shadow: var(--shadow-light);
}

.link-btn:hover {
  background: #444;
}

footer {
  padding: 2em 1em;
  text-align: center;
  background: #fafafa;
  font-size: 0.9em;
  color: #999;
  border-top: 1px solid #ddd;
}

/* Responsive Design */
@media (max-width: 800px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .sidebar-logo {
    font-size: 1em;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1em;
  }

  .main-content {
    margin-left: 0;
  }

  .hero {
    padding: 3em 1em;
  }

  .section-wrapper {
    padding: 2em 1em;
  }
}

.hero h1 {
  font-size: 2em; /* Smaller font size */
}

/* Light Theme */
.light-theme {
  --background-color: #ffffff;
  --primary-color: #000000;
  --card-bg: #f9f9f9;
}

/* Dark Theme */
.dark-theme {
  --background-color: #121212;
  --primary-color: #ffffff;
  --card-bg: #1e1e1e;
}
