body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fff;
  color: #222;
}

/* Scroll lin pentru meniul de navigare */
html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1900px;  /* lățimea maximă */
  margin: 0 auto;     /* centru pe pagină */
  padding: 0 20px;    /* spațiu lateral pe telefoane */
  box-sizing: border-box;
}

/* Header */
header {
  width: 100%;
  background: #0077b6;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: white;
  font-size: 1.8rem;  
  font-weight: bold;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-size: 1.2rem;  
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #90e0ef;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: url("images/hero2.jpg") center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 20px;
  position: relative;
  opacity: 1;  /* vizibil */
  transform: translateY(0);
  transition: all 0.8s ease-out;
}

/* Overlay gri */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(128, 128, 128, 0.4); 
  z-index: 1;
}

/* Text și buton rămân deasupra */
.hero h1,
.hero p,
.hero .btn {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

/* Hero Section */
.hero h1 {
  font-size: 4.5rem;  
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.5rem;  
  margin-bottom: 30px;
}

.btn {
  background: #0077b6;
  color: white;
  padding: 18px 36px;  
  font-size: 3.2rem;   
  border-radius: 8px;  
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #023e8a;
}

/* Services */
.services {
  padding: 60px 20px;
  text-align: center;
}
.services h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: #f8f9fa;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card img {
  width: 100%;
  height: 280px; 
  object-fit: cover;
  transition: transform 0.3s ease;
  border-bottom: 1px solid #ddd;
}

.card h3 {
  padding: 15px;
  text-align: center;
  font-size: 1.2rem;
}

/* Hover card */
.card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 16px 30px rgba(0,0,0,0.25);
}

/* Animatie carduri vizibile la scroll */
.card.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Animatie hero vizibil */
.hero.visible h1,
.hero.visible p,
.hero.visible .btn {
  opacity: 1;
  transform: translateY(0);
}

/* Contacts */
.contacts {
  padding: 60px 20px;
  background: #0077b6;
  color: white;
  text-align: center;
}
.contacts a {
  color: white;
  font-weight: bold;
  text-decoration: none;
}
.contacts p{
  font-size: 26px;
  margin-bottom: 5px;
}

/* Footer */
footer {
  background: #023e8a;
  color: white;
  text-align: center;
  padding: 15px;
}

/* Portfolio */
.portfolio {
  padding: 60px 20px;
  text-align: center;
}
.portfolio h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}
.gallery {
  column-count: 3;       
  column-gap: 20px;      
}
.gallery img {
  width: 100%;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
}

/* Video container */
.video-container {
  position: relative;
  width: 100%;
  max-width: 1100px; 
  margin: 60px auto; 
  aspect-ratio: 16 / 9;
  border-radius: 16px; 
  overflow: hidden; 
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
  transform: scale(1.02); 
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.video-container iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border: none;
}
/*meniu*/
/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
}

.reviews {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
  position: relative;
}

.reviews h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #333;
}

.reviews-slider {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.review {
  display: none;
  background: #fff;
  padding: 35px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  font-style: italic;
  min-height: 180px;
  font-size: 1.3rem;   /* scris mai mare */
  line-height: 1.6;    /* spațiere pentru ușurință la citire */
  transition: opacity 1s ease, transform 1s ease; /* tranziție mai lină */
}

.review.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.review span {
  display: block;
  margin-top: 20px;
  font-weight: bold;
  color: #444;
  font-size: 1.1rem;
}


.slider-controls {
  margin-top: 20px;
}

.slider-controls button {
  background: #333;
  color: #fff;
  border: none;
  padding: 10px 18px;
  margin: 0 5px;
  font-size: 35px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.slider-controls button:hover {
  background: #555;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Responsive Navbar */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 60px; /* sub navbar */
    right: -100%; /* ascuns inițial */
    height: calc(100% - 60px);
    width: 250px;
    background: #0077b6;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    gap: 30px;
    transition: right 0.3s ease;
    z-index: 999;
  }

  .nav-links li a {
    font-size: 1.5rem;
  }

  .nav-links.active {
    right: 0; /* se deschide meniul */
  }

  .hamburger {
    display: flex;
  }
}




/* Media queries */
/* Telefon mic */
@media (max-width: 600px) {
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.2rem; }
  .btn { font-size: 1.5rem; padding: 12px 24px; }
  .cards { grid-template-columns: 1fr; }
  .gallery { column-count: 1; column-gap: 15px; }
}

/* Tabletă */
@media (min-width: 601px) and (max-width: 1024px) {
  .hero h1 { font-size: 3.2rem; }
  .hero p { font-size: 1.3rem; }
  .btn { font-size: 2rem; padding: 14px 28px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { column-count: 2; }
}

/* Desktop */
@media (min-width: 1025px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .gallery { column-count: 3; }
}
