
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0d0d0d;
  color: #d4d4d4;
  line-height: 1.7;
}


a {
  text-decoration: none;
  color: #34d399; 
  transition: color 0.3s ease;
}
a:hover {
  color: #10b981; 
}
ul {
  list-style: none;
}


header {
  background: #0f0f0f;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #1a1a1a;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.05);
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #34d399;
}

nav {
  position:relative;
}
.menu-icon {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #d4d4d4;
}
#toggle-menu {
  display: none;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links li a {
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
}
.nav-links li a:hover {
  background-color: rgba(52, 211, 153, 0.15);
}


.content-area {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 2rem;
  padding: 2rem;
}
.main-content {
  animation: fadeIn 0.8s ease-in-out;
}
.sidebar {
  background: #121212;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.05);
}
.sidebar h2 {
  color: #34d399;
  margin-bottom: 1rem;
}
.sidebar a {
  display: block;
  margin-bottom: 0.5rem;
}


.section {
  background: #111111;
  margin: 2rem;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #1a1a1a;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.05);
}
.section h2 {
  color: #34d399;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}
.section p, .section ul {
  color: #cccccc;
}


.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(52, 211, 153, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}
.card img {
  width: 100%;
  display: block;
  height: 180px;
  object-fit: cover;
}
.card h3 {
  color: #10b981;
  padding: 1rem 1rem 0.5rem;
}
.card p {
  padding: 0 1rem 1rem;
  font-size: 0.95rem;
}


footer {
  text-align: center;
  padding: 1rem;
  background: #0f0f0f;
  color: #888;
  font-size: 0.9rem;
  margin-top: 3rem;
  border-top: 1px solid #1a1a1a;
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


@media screen and (max-width: 768px) {
  .content-area {
    grid-template-columns: 1fr ;
    padding: 1rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: #111111;
    width: 200px;
    border: 1px solid #1a1a1a;
    padding: 1rem;
    gap: 1rem;
  }

  #toggle-menu:checked + .menu-icon + .nav-links {
    display: flex;
  }

  .menu-icon {
    display: block;
  }
}
