:root{
  --main:#4caf91;
  --accent:#f4a261;
  --bg:#f5f7f6;
  --text:#222;
  --card:#fff;
  --border:#cfe6de;
  --active:#f4a261;
}
body.dark{
  --bg:#1f2a2e;
  --text:#e8f1f0;
  --card:#2b3a3f;
  --border:#4caf91;
  --active:#4caf91;
}
*{box-sizing:border-box;margin:0;padding:0;font-family:Segoe UI,sans-serif;transition:.3s}
body{background:var(--bg);color:var(--text);scroll-behavior:smooth;}
header{
  background:url("background.jpg") center/cover;
  border-bottom-left-radius:100px;
  opacity:.9;
  padding:20px;
  min-height:100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  position:relative;
  box-shadow: 0 0 8px 0 rgb(40, 40, 40);
   grid-template-areas:
    "nav"
    "hero"
    "news";
}
nav{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:10px 0;
  top:0;
  grid-row: 1;
  z-index:1000;
  background:none;
  align-self: start;
   
}
html {
  scroll-behavior: smooth;
}
.scrolled .logo-link {
  transform: translateY(-4px);
}

.flogo {
  box-shadow:0 0 40px 0 rgb(0, 0, 0);
  width:60px;
  height:60px;
  background-image: url('Avec-HSA.jpg');
  background-size: contain; 
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid rgb(3, 40, 61);
  border-radius: 30%;
  transition: transform 0.3s ease;
}
.logo {
  box-shadow:0 0 40px 0 rgb(0, 0, 0);
  width:60px;
  height:60px;
  background-image: url('Avec-HSA.jpg');
  background-size: contain; 
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid rgb(3, 40, 61);
  border-radius: 30%;  
  transition: transform 0.3s ease;
}
nav ul{list-style:none;display:flex;gap:20px;flex-wrap:wrap}
nav a{color:rgb(43, 38, 38);text-decoration:none;font-weight:500;transition:.3s;}
nav ul li a.active{color: var(--active);font-weight:600;}
.nav-buttons{display:flex;gap:10px;flex-wrap:wrap}
button{padding:8px 14px;border:none;border-radius:20px;cursor:pointer;font-weight:500;transition:.3s;}
.lang.selected{border:2px solid var(--main); background-color: #f4a261;color:#cfe6de}
.lang{background:rgba(230, 230, 230, 0.8);color:#333;}
.darkbtn{background:rgba(230, 230, 230, 0.4);color:#333;}
#supportBtn{background:rgba(230, 230, 230, 0.9);color:#333;box-shadow:0 0 40px 0 rgb(40, 40, 40);}
button:hover,.card:hover{transform:scale(1.02)}
.hero{
  color:#0e0d0d;
  max-width:500px;
  transition:opacity 0.5s,transform 0.5s;
  align-self: center;
  justify-self: center;
  grid-row: 2;
  margin:0;
  text-align: center;
}
.hero.fade{opacity:0; transform:translateY(20px)}
main{padding:60px 40px;}
.card{background:var(--card);
  justify-content: space-between;
  border:2px solid var(--border);
  border-radius:20px 0 20px 0;
  overflow:hidden;
  cursor:pointer;
  transition:transform 0.3s, box-shadow 0.3s,border-color 0.3s;}
.card:hover{box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);border-color: var(--main);}
.card img{width:100%;height:200px;object-fit:cover;transition:transform 0.5s;}
.card.open img{transform:scale(1.05)}
.card-content{padding:20px;transition:opacity 0.4s,max-height 0.4s;
overflow: visible;}
.card-content h3{color:var(--main);margin-bottom:8px;transition:color 0.3s;}
.extra {
  max-height:0;
  opacity:0;
  overflow:hidden;
  transition:opacity 0.5s,max-height 0.5s;
}
.card.open .extra{
  opacity:1;
  max-height:1000px;
  justify-content: space-between;
  transition:opacity 0.5s,max-height 0.5s;
}
.extra.expanded {
  max-height: 1000px;
}
footer{ background:var(--card);padding:10px;border-top-left-radius:40px;box-shadow:0 0 5px 0 rgb(0,0,0);}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:30px;}
input,textarea{width:100%;border-radius:10px;padding:10px;border:1px solid var(--border);margin-bottom:10px;transition:border-color 0.3s,box-shadow 0.3s;}
input:focus,textarea:focus{border-color:var(--main);box-shadow:0 0 10px rgba(76, 175, 145,0.5);}
input{height:40px;
  box-shadow:0 0 10px 0 rgb(40, 40, 40);}
textarea{height:120px;
  box-shadow:0 0 15px 0 rgb(40, 40, 40);}
.send{background:var(--main);color:#fff;width:100%;padding:10px;transition:transform 0.2s;}
.send:hover{transform:scale(1.05);}
footer nav ul{list-style:none;display:flex;}
footer nav a{color:var(--text);text-decoration:none;font-weight:500;transition:color 0.3s;}
.contact-info span,a{margin-left:5px;text-decoration:none;color:inherit;transition:color 0.3s}
@media(max-width:768px){
  .hero h1{font-size:2rem;}
  nav{flex-direction:column;align-items:flex-start;}
}
#footerMsgTitle {
  margin-bottom:20px;}
.logo-link img {
  height: 45px;
  width: auto;
}
.favec {
  margin:0;
  color:rgb(20, 21, 22); 
  line-height: 1.2;
  font-size: 20px;
  font-weight: 600;
}
.avec {
  color:rgb(20, 21, 22);   
  margin: 0;
  line-height: 1.2;
  font-size: 20px;
  font-weight: 600;
} 
.avec span {
  display: block; 
}
.favec span {
  display: block; 
}
#footerContactTitle {
  margin-left:45px;
  margin-top:45px;
}
button {
  box-shadow:0 0 20px 0 rgb(40, 40, 40);
}
.dflogo {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap:10px;
  text-decoration: none;
  margin-top: 45px;
}
.dlogo {
  align-items:center;
  display: flex;
  flex-direction: column;
  gap: 10px;  
  text-decoration: none;
}
.news-ticker {
  width: 100%;
  overflow: hidden;
  background: rgba(104, 7, 7, 0.6);
  color: whitesmoke;
  padding: 8px 0;
  border-radius: 15px;
  text-align: center;  
  margin-left: 15px;
}

.news-ticker span {
  display: inline-block;  
}


hr {
  margin-top:20px;
  margin-bottom: 10px;
}
@keyframes moveLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }

}
.logo-link {
  display: flex;
  align-items: center;      
  gap: 12px;                
  text-decoration: none;
  transition: transform 0.3s ease; 
}
.logo-link:hover {
  transform: scale(1.05);
}
.logo-link:hover .logo {
  transform: rotate(10deg); 
}
.logo-link:hover .flogo {
  transform: rotate(10deg); }
@media (max-width: 600px) {
  .logo-link {
    flex-direction:row; 
    align-items: center;    
  }

  .avec span {
    display: inline; 
  }
  .favec span {
    display: inline; 
  }
}
html[dir="rtl"] .logo-link {
  flex-direction: row-reverse; 
}
.Copyright {
  display: flex;
  flex-direction: column;
  text-align: center;
  font-size: small;
}
.meta {
  max-height: 300px;   
  overflow: hidden;
  width: 90vw;
}
.meta.open {
  max-height: 600px;   
  overflow-y: auto;    
}
#firstProject {
  background-color: #e6ebec;
  height: 400px;
  width: 400px;
  border:1px solid #4caf91;
  border-radius: 10px;
}
.cards-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:30px;
}
.partners-logos {
  padding: 60px 8vw;
  text-align: center;
}
.p-l {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: center;
}
.p-l img {
  max-width: 100%;
  height: 50vh;
  width: auto;
  display: block;
  object-fit: contain;
  margin: auto;
} 
.nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ccc;
  min-width: 140px;
  border-radius: 15px;
}

.dropdown-menu a {
  display: block;
  padding: 3px;
  text-decoration: none;
  color: #000;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  color: #f4a261;
}
nav a:hover {
  color:#f4a261;
}
@media (hover: hover) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}
