/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(145deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
}
a {
  color: #4ecdc4;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

/* HEADER */
header {
  text-align: center;
  padding: 80px 20px 40px;
}
header img {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
}
header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
header h2 {
  font-weight: 300;
  font-size: 1.2rem;
  color: #d9d9d9;
}
.header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.header-brand img {
  width: 80px;
  transition: transform 0.3s ease;
}
.header-brand img:hover {
  transform: scale(1.1);
}


/* ABOUT SECTION */
#about {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 30px;
  margin: 40px auto;
  max-width: 800px;
  text-align: center;
  animation: fadeInUp 1s ease;
}
#about h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}
#about p {
  line-height: 1.6;
  color: #ccc;
  margin-bottom: 10px;
}

/* PROJECTS SECTION */
#projects {
  padding: 60px 20px;
  text-align: center;
}
#projects h3 {
  font-size: 2rem;
  margin-bottom: 40px;
}
.card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}
.card p {
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 90px;
}

.badge-fr {
  margin-top: 15px;
  background: rgba(255,255,255,0.08);
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  color: #4ecdc4;
}
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #888;
}
.social-links {
  margin-top: 20px;
}
.social-links a {
  font-size: 1.8rem;
  margin: 0 10px;
  color: #4ecdc4;
  transition: color 0.3s ease, transform 0.3s ease;
}
.social-links a:hover {
  color: #ffffff;
  transform: scale(1.2);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s;
  backdrop-filter: blur(10px);
  color: white;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.card img {
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}
.card h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.card p {
  font-size: 0.95rem;
  color: #ccc;
}

/* PARTICLES BACKGROUND */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Animations */
@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(30px);}
  to {opacity: 1; transform: translateY(0);}
}

/* Responsive tweaks */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.8rem;
  }
  header h2 {
    font-size: 1rem;
  }
  #about, .card {
    margin: 20px;
  }
}
