body,html{
  margin:0;
  padding:0;
  font-family:'Poppins',sans-serif;
  background:#f8f8f8 url('bg.jpg') center/cover fixed;
  color:#222;
}
.wrapper{display:flex;flex-direction:column;min-height:100vh;}
header{
  background:rgba(255,255,255,0.95);
  display:flex;justify-content:space-between;align-items:center;
  padding:15px 40px;border-bottom:1px solid #ddd;
}

.menu a{margin-left:20px;text-decoration:none;color:#333;font-weight:500;}
.menu a:hover{color:#2c5364;}
main{flex:1;}
.hero{
  text-align:center;
  padding:80px 20px 60px;
  background:rgba(255,255,255,0.85);
  margin:30px auto;
  width:80%;
  border-radius:15px;
  box-shadow:0 4px 25px rgba(0,0,0,0.1);
}
.hero h1{font-size:36px;color:#1b3949;}
.hero p{margin:10px 0 30px;font-size:18px;}
.analyzer-form input{
  padding:14px;width:320px;border:1px solid #bbb;border-radius:8px;
}
.analyzer-form button{
  padding:14px 24px;background:#2c5364;color:#fff;border:none;
  border-radius:8px;margin-left:8px;cursor:pointer;font-weight:600;
}
.analyzer-form button:hover{background:#1b3949;}

.trends{width:90%;margin:50px auto;}
.trends h2{text-align:center;margin-bottom:30px;color:#1b3949;}
.trend-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:20px;
}
.trend-card{
  background:rgba(255,255,255,0.9);
  border-radius:10px;
  padding:20px;
  box-shadow:0 2px 10px rgba(0,0,0,0.1);
  transition:transform 0.2s;
}
.trend-card:hover{transform:translateY(-4px);}
.trend-card h3{color:#2c5364;margin-bottom:10px;}
.trend-card ul{list-style:none;padding-left:10px;}
.trend-card li{margin:6px 0;}

.about{
  width:80%;margin:60px auto;text-align:center;
  background:rgba(255,255,255,0.85);
  padding:30px;border-radius:12px;
  box-shadow:0 4px 15px rgba(0,0,0,0.1);
}
.about h2{color:#1b3949;margin-bottom:15px;}
footer{
  background:rgba(255,255,255,0.9);
  border-top:1px solid #ddd;
  text-align:center;
  padding:15px;
  font-size:14px;
}
footer a{color:#2c5364;text-decoration:none;}
/* === Modal popups === */
.modal-overlay{
  display:none;
  position:fixed;
  top:0;left:0;width:100%;height:100%;
  background:rgba(0,0,0,0.5);
  z-index:99;
  animation:fadeIn .3s ease;
}
.modal{
  display:none;
  position:fixed;
  top:50%;left:50%;
  transform:translate(-50%,-50%);
  z-index:100;
  width:90%;max-width:500px;
}
.modal-content{
  background:#fff;
  color:#333;
  padding:25px 30px;
  border-radius:10px;
  box-shadow:0 4px 20px rgba(0,0,0,0.2);
  animation:popIn .3s ease;
}
.modal-content h2{color:#2c5364;margin-bottom:10px;}
.modal-content p{margin:10px 0;font-size:15px;line-height:1.6;}
.close{
  float:right;
  font-size:26px;
  cursor:pointer;
  color:#888;
}
.close:hover{color:#000;}
@keyframes popIn{from{transform:translate(-50%,-48%) scale(0.95);opacity:0;}to{transform:translate(-50%,-50%) scale(1);opacity:1;}}

/* Reset UL spacing inside trend cards */
.trend-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Headings with icons */
.trend-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
  margin: 0 0 10px;
}
.trend-card h3 img {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;         /* reserve exact space */
  object-fit: contain;
  display: block;
}

/* Each technology row */
.trend-card li {
  display: flex;
  align-items: center;    /* vertically centers icon & text */
  gap: 10px;
  padding: 6px 0;
  line-height: 1.4;
  border-bottom: 1px dashed rgba(0,0,0,0.06);
}
.trend-card li:last-child { border-bottom: 0; }

/* Icons in rows: consistent box + no wobble */
.trend-card li img {
  width: 40px;
  height: 40px;          /* fixed box prevents jumpiness */
  flex: 0 0 20px;
  object-fit: contain;   /* no distortion */
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.12));
}

/* Text containers to prevent wrap overlap */
.trend-name { 
  flex: 1 1 auto; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
}
.trend-share {
  flex: 0 0 auto;
  opacity: 0.8;
}

/* Optional: subtle hover polish */
.trend-card li:hover {
  transform: translateX(4px);
  transition: transform 0.15s ease;
}


