
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-image: url("site_pictures/background\ page\ 1.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
  }

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }
  .hamburger {
    display: none;
  }
  .header-left {
    display: flex;
    flex-flow:row;
    width: 65%;
    align-items: center;
    justify-content: space-around;
  }
  header {
    position: sticky;
    top:0;
    z-index: 1000;
    background-color: #222;
    color: white;
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left:0px;
  }
  header img {
    margin-left:10%;
    width:10rem;
  }
  
  header h1 {
    margin: 0;
    font-size: 24px;
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    width:35%;
  }
  .links {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: right;
    width:100%;
  }

  nav a {
    color: white;
    margin-left: 1%;
    text-decoration: none;
    font-weight: bold;
    padding:8px 15px;
    border-radius: 5px;
  }
  
  nav a:hover {
    background-color: white;
    color:#222
  }
  
  section {
    padding: 20px 20px;
    max-width: 70%;
    margin: auto;
  }
  
  h2 {
    color: white;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
  }
  
  .services, .projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 270px));
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
  }
  
  .card {
    height:25vh;
    background: white;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    color:#333;
  }
  
  footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px;
  }
  
  
  .language-switcher {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    margin-bottom: -7px;
    margin-right: 8%;
  }
  
  .language-switcher img {
    width: 20px;
    height: 20px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: border 0.2s;
  }
  
  .language-switcher img:hover {
    border: 2px solid white;
  }

  .card_title {
    width:100%;
    height: 35%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px; /* spațiu între titlu și iconiță */
  }
  
  .card_title h3 {
    margin-right: 0; /* elimină marginile implicite dacă vrei o aliniere mai curată */
    font-size: 126%;
  }
  .card_fata p {
    height: 65%;
  }
  
  .service_icon {
    margin-right: 10px;
    margin-top: -7px;
    width: 50px;
    height: 50px;
  }

  p {
    line-height: 4vh;
  }
  #despre p {
    font-size:22px;
  }
  #despre {
    font-family: 'Roboto', sans-serif;
    line-height:30px;
    font-weight: 300;
    font-size: 19px;
  }
.card_portofoliu {
  height: 35vh;
  cursor: pointer;
  padding:0
}
.portofoliu {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
} 
.card_portofoliu:hover .portofoliu {
  cursor: pointer;
  transform: rotateY(180deg);
}

.card_fata,
.card_spate {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 0.5rem;
}

.card_fata {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  justify-content:space-evenly;
  width:85%;
  background: white;
}
.card_spate {
  color: #333;
  transform: rotateY(180deg);
  position: relative; /* Required for overlay positioning */
  overflow: hidden;   /* Ensures overlay doesn't leak out */
}

#excome_card_spate {
  background: url("./Excome/excome_main_page.png") center/cover no-repeat;
}

#atestate_card_spate {
  background: url("./atestate/locatii.png") center/cover no-repeat;
}

#logos_card_spate {
  background: url("./logos/fundal_logo.png") center/cover no-repeat;
}

#broscuta_card_spate {
  background: url("./broscuta/broscuta_matematiciana_main.png") center/cover no-repeat;
}
#games_card_spate {
  background: url("./games/background-games.png") center/cover no-repeat;
}
#akee_card_spate {
  background: url("./akee/akee_principal.png") center/cover no-repeat;
}

.card_spate::before {
  content: "";
  position: absolute;
  inset: 0; /* shorthand for top, right, bottom, left: 0 */
  backdrop-filter: blur(2px); /* Blur effect */
  background: rgba(255, 255, 255, 0.4); /* Whitish overlay */
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.2); /* Shadowy effect */
  z-index: 1;
  pointer-events: none; /* Allows clicks to pass through */
}

/* Optional: Ensure your actual content stays above the overlay */
.card_spate > * {
  position: relative;
  z-index: 2;
}
footer {
  position: static;
  bottom:0;
  width:100%;
}
#legal-button {
    background-color: #222;
    color: white;
    border: none;
    padding: 10px 22px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
}
