/* General Styles */
body,
html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
  color: white;
}

/* Base background layer */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: -2;
}

/* Canvas Background */
canvas {
  position: fixed;
  top: 0;
  left: 18px;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  touch-action: none; /* Disable default touch behavior */
}

/* Content Styling */
.content {
  position: relative;
  z-index: 1;
  padding: 50px;
  text-align: center;
  background: rgba(0, 0, 0, 0.1);
  overflow-y: auto; /* Enable scrolling */
  touch-action: pan-y; /* Allow vertical scrolling on mobile */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

h1 {
  font-size: 3em;
  margin-bottom: 10px;
}

h2 {
  font-size: 1.5em;
  margin-bottom: 20px;
  color: #aaa;
}

p {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #ccc;
}

/* Projects Section */
.projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  width: 80%;
  margin-left: 10%;
}

.project-card {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  width: 300px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
}

.project-card h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 0.9em;
  color: #ddd;
  margin-bottom: 10px;
}

.project-card a {
  color: #ff6f61;
  text-decoration: none;
  font-weight: bold;
}

.project-card a:hover {
  text-decoration: underline;
}

/* Divider Styling */
.section-divider {
  position: relative;
  width: 80%;
  margin: 50px auto;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.divider-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #000;
  padding: 0 20px;
  color: #aaa;
  font-size: 1.2em;
}

/* Medium Article Section */
.medium-article {
  margin-top: 50px;
  padding: 20px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  width: 30%;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 20px;
}

.medium-article img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
}

.medium-article-content {
  flex: 1;
}

.medium-article h3 {
  font-size: 1.3em;
  color: #fff;
  margin-bottom: 15px;
}

.medium-article a {
  color: #ff6f61;
  text-decoration: none;
  font-weight: bold;
}

.medium-article a:hover {
  text-decoration: underline;
}

/* Bold Text Styling */
b {
  color: #1bb2ee;
  font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .section-divider {
    width: 90%;
  }

  .medium-article {
    width: 80%;
    flex-direction: column;
    align-items: flex-start;
  }

  .medium-article img {
    width: 100%;
    height: auto;
  }
}
