:root {
  --uv-purple: #6a0dad;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #fff;
  scroll-behavior: smooth;
}

header {
  background-color: var(--uv-purple);
  color: white;
  height: 120px;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo img {
  width: 250px;
  height: 80px;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 15px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
  background: none;
  border: none;
}

@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--uv-purple);
    text-align: center;
    padding: 1rem 0;
    z-index: 1000;
  }

  nav.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

section {
  padding: 60px 20px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--uv-purple);
}

.section-description {
  max-width: 700px;
  margin: auto;
  text-align: center;
}

footer {
  background: var(--uv-purple);
  color: white;
  padding: 20px;
  text-align: center;
}

.container-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px 20px;
}

.box {
  background: white;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  border-left: 6px solid var(--uv-purple);
  border-radius: 12px;
  padding: 30px;
  flex: 1;
  min-width: 280px;
  max-width: 500px;
  transition: transform 0.3s ease;
}

.box:hover {
  transform: translateY(-5px);
}

.box h3 {
  color: var(--uv-purple);
  margin-bottom: 10px;
}

.projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  padding: 40px 20px;
}

.project-box {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  width: 250px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.project-box img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.project-box h4 {
  margin: 10px 0;
  padding: 0 10px;
  color: #333;
}

.project-box:hover {
  transform: scale(1.03);
}

.research-section {
  background: #f3f0fa;
  padding: 60px 20px;
}

.research-section h2 {
  color: var(--uv-purple);
}

.research-section p {
  max-width: 800px;
  margin: auto;
  font-size: 16px;
  color: #444;
  text-align: center;
}

#particles-js {
  height: 80px;
  position: relative;
  background: #000;
}

#particles-js .section-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.5rem;
  margin: 0;
  z-index: 1;
}
