/* ===== Reset & basic styles ===== */
* { margin:0; padding:0; box-sizing:border-box; font-family: 'Poppins', sans-serif; }
body {
  background:#fff;
  color:#222;
  line-height:1.6;
  scroll-behavior:smooth;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.container { width:90%; max-width:1200px; margin:0 auto; }

/* ===== Header sticky ===== */
header.sticky {
  position: sticky;
  top: 0;
  background:#fff;
  padding:15px 0;
  z-index:1000;
  border-bottom:1px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ===== Header flex + nav + hamburger + social icons ===== */
header.sticky .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .nav-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

header nav.main-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

header nav.main-nav ul.menu {
  display: flex;
  list-style: none;
  gap: 25px;
}

header nav.main-nav ul.menu li a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: color 0.3s;
}

header nav.main-nav ul.menu li a:hover {
  color: #1a1a1a;
}

/* Social icons desktop */
header nav.main-nav ul.social-icons {
  display: flex;
  list-style: none;
  gap: 15px;
  margin-left: 30px;
}

header nav.main-nav ul.social-icons li a img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform 0.3s, opacity 0.3s;
}

header nav.main-nav ul.social-icons li a img:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #222;
  border-radius: 2px;
}

/* ===== Responsive mobil (max-width: 900px) ===== */
@media(max-width:900px){

  header .nav-wrapper {
    flex-direction: column;
    align-items: flex-end;
  }

  header nav.main-nav ul.menu {
    display: none;
    flex-direction: column;
    background: #fff;
    width: 200px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  header nav.main-nav ul.menu.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  /* Ascund social-icons desktop pe mobil */
  header nav.main-nav ul.social-icons {
    display: none;
  }

  /* Social icons mobile */
  .social-row-mobile {
    display: flex;
    justify-content: left;
    gap: 5px;
    margin-top: 10px;
  }

  .social-row-mobile a img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.3s, opacity 0.3s;
  }

  .social-row-mobile a img:hover {
    transform: scale(1.2);
    opacity: 0.8;
  }

  /* Hamburger vizibil pe mobil */
  .hamburger { display: flex; cursor: pointer; }
}

/* ===== Desktop fix ===== */
@media(min-width:901px){
  .social-row-mobile { display: none; }

  header nav.main-nav ul.social-icons li a img {
    width: 24px;
    height: 24px;
  }
}

/* ===== BUTOANE UNIFORME ===== */
.btn, .vezi-mai-mult {
  display:inline-block;
  margin-top:15px;
  padding:12px 25px;
  background: linear-gradient(135deg, #1a1a1a, #333333);
  color:#fff;
  text-decoration:none;
  font-weight:500;
  border-radius:30px;
  box-shadow:0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.btn:hover, .vezi-mai-mult:hover {
  transform: translateY(-3px);
  box-shadow:0 10px 20px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, #2a2a2a, #404040);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  width: 60%;
  max-width: 500px;
  margin: 40px auto 0;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-top-left-radius: 50% 40%;
  border-top-right-radius: 50% 40%;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.hero-overlay {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  padding: 40px 20px;
  max-width: 800px;
  text-align: center;
  background: rgba(0,0,0,0.25);
  border-radius:12px;
}

.hero h2, .hero p { color: #fff; }

/* ===== Animations ===== */
@keyframes fadeInDown {
  0% { opacity:0; transform: translateY(-50px);}
  100% { opacity:1; transform: translateY(0);}
}

/* ===== Servicii ===== */
.preview-servicii { background:#f4f4f9; padding:80px 0; }
.preview-servicii h3 { font-size:2rem; text-align:center; margin-bottom:50px; color:#333; }
.preview-servicii .grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:30px;
}
.card {
  background:#fff;
  padding:25px;
  border-radius:15px;
  text-align:center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-10px); box-shadow:0 15px 25px rgba(0,0,0,0.15); }
.card img { width:100%; height:200px; object-fit:cover; border-radius:12px; margin-bottom:15px; }
.card h4 { margin-bottom:10px; font-size:1.3rem; color:#1a1a1a; }
.card p { font-size:1rem; color:#555; }

/* ===== Carduri fade-in Servicii ===== */
.servicii-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 80px 0;
}

.serviciu-card {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.serviciu-card.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.serviciu-card h3 {
  color: #1a1a1a;
  margin-bottom: 10px;
  font-size: 1.4rem;
  font-weight: 600;
}

.serviciu-card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
}


/* ===== Portofoliu ===== */
.preview-portofoliu { background:#fff; padding:80px 0; text-align:center; }
.preview-portofoliu h3 { font-size:2rem; margin-bottom:50px; color:#222; }

.portfolio-slider {
  position: relative;
  width: 90%;
  max-width: 1000px;
  margin:0 auto;
  overflow: hidden;
}
.slider-track { display: flex; transition: transform 0.5s ease; }
.slide { width: 250px; height: 312px; margin:0 10px; overflow: hidden; flex-shrink: 0; border-radius:12px; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

/* fade lateral */
.slide:not(:nth-child(2)) { opacity:0.4; transform: scale(0.8); }

/* săgeți */
.arrow {
  position: absolute;
  top:50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color:#fff;
  border:none;
  font-size:2rem;
  padding:10px 15px;
  cursor:pointer;
  border-radius:50%;
  z-index:10;
  transition: background 0.3s;
}
.arrow:hover { background: rgba(0,0,0,0.6); }
.arrow.left { left:10px; }
.arrow.right { right:10px; }

/* ===== Despre ===== */
.preview-despre { background:#f9f9f9; padding:80px 0; text-align:center; }
.preview-despre h3 { font-size:2rem; margin-bottom:20px; color:#333; }
.preview-despre p { max-width:800px; margin:0 auto; font-size:1.1rem; color:#555; line-height:1.7; }

/* ===== Contact ===== */
.preview-contact { background:#1a1a1a; padding:80px 0; color:#fff; text-align:center; }
.preview-contact h3 { font-size:2rem; margin-bottom:20px; }
.preview-contact p { font-size:1.1rem; margin-bottom:30px; }

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 25px 0;
  background: #f0f0f0;
  color: #555;
  font-size: 14px;

  margin-top: auto;
}

footer p {
  margin: 0;
}

footer a {
  color: #555;
  text-decoration: none;
  margin-left: 5px;
  transition: 0.3s;
}

footer a:hover {
  color: #000;
}
.footer-text {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.dot {
  opacity: 0.5;
  font-size: 12px;
}

/* ===== Pagina Portofoliu ===== */
.portfolio-page {
  background: #fff;
  padding: 100px 0;
  text-align: center;
}

.portfolio-page h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #222;
}

.portfolio-page .intro {
  max-width: 700px;
  margin: 0 auto 60px;
  font-size: 1.1rem;
  color: #555;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.project {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project:hover .overlay {
  opacity: 1;
}

.project .overlay h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.project .overlay .btn {
  background: linear-gradient(135deg, #1a1a1a, #333333);
  color: #fff;
  text-decoration: none;
  padding: 10px 25px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.project .overlay .btn:hover {
  background: linear-gradient(135deg, #2a2a2a, #404040);
  transform: translateY(-3px);
}

.preview-portofoliu .vezi-toate {
  display: inline-block;
  margin-top: 40px;
  padding: 14px 35px;
  background: linear-gradient(135deg, #1a1a1a, #333333);
  color: #fff;
  font-weight: 500;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.preview-portofoliu .vezi-toate:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, #2a2a2a, #404040);
}

/* ===== Pagini de proiect ===== */
.project-details {
  padding: 100px 0 60px;
  text-align: center;
  background: #fff;
}
.project-details h1 {
  font-size: 2.5rem;
  color: #222;
  margin-bottom: 20px;
}
.project-details p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}


.project-gallery {
  position: relative;
  width: 100%;
  padding: 80px 0;
  text-align: center;
  background: #fff;
  overflow: hidden;
}

.slider-track {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s ease;
}

.slide {
  flex: 0 0 500px;
  height: 624px;
  margin: 0 15px;
  overflow: hidden;
  border-radius: 12px;
  opacity: 0.4;
  transform: scale(0.8);
  transition: all 0.5s ease;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s;
}

.arrow:hover { background: rgba(0,0,0,0.6); }
.arrow.left { left: 20px; }
.arrow.right { right: 20px; }

.next-project {
  position: relative;
  text-align: right;
  margin: -120px 10% 60px 0;
  z-index: 5;
}

.next-project .btn {
  background: linear-gradient(135deg, #1a1a1a, #333333);
  color: #fff;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.next-project .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, #2a2a2a, #404040);
}



/* ===== About / Despre ===== */
.about-page .about-hero {
  padding: 100px 20px;
  text-align: center;
  background: #f4f4f9;
}

.about-page .about-hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #222;
}

.about-page .about-hero p {
  font-size: 1.2rem;
  color: #555;
}

.about-section {
  padding: 80px 0;
}

.about-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
}

.about-item.reverse {
  flex-direction: row-reverse;
}

.about-item .text {
  flex: 1;
}

.about-item .text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.about-item .text p {
  font-size: 1.1rem;
  color: #555;
  line-height:1.7;
}

.about-item .image {
  flex: 1;
}

.about-item .image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  height: 400px;
}

/* Responsive about */
@media(max-width:768px) {
  .about-item, .about-item.reverse { flex-direction: column; }
  .about-item .image img { height: auto; }
}

/* About hero */
.about-hero {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 50px;
}
.about-hero .about-text { flex:1; }
.about-hero .about-text h2 { font-size:2.5rem; margin-bottom:20px; }
.about-hero .about-text p { font-size:1.2rem; line-height:1.7; color:#222; }
.about-hero .about-image { flex:1; position: relative; }
.about-hero .about-image img {
  width: 100%;
  height: auto;
  aspect-ratio:4/5;
  object-fit: cover;
  border-top-left-radius: 50% 40%;
  border-top-right-radius: 50% 40%;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

/* Responsive */
@media(max-width:900px){
  .about-hero { flex-direction: column; }
  .about-hero .about-image img { border-radius: 12px; }
}

/* ===== Accordion proces ===== */
.accordion .accordion-item {
  border:1px solid #ddd;
  border-radius:10px;
  margin-bottom:10px;
  overflow:hidden;
}
.accordion-btn {
  background:#1a1a1a;
  color:#fff;
  padding:12px 20px;
  width:100%;
  text-align:left;
  font-size:1rem;
  border:none;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-radius:10px;
  transition:background 0.3s;
}
.accordion-btn:hover { background:#2a2a2a; }
.accordion-content {
  max-height:0;
  overflow:hidden;
  transition:max-height 0.4s ease;
  background:#f9f9f9;
  padding:0 20px;
}
.accordion-content p { padding:10px 0; color:#555; }

/* ===== Text final centrat ===== */
.about-summary {
  padding:80px 20px;
  text-align:center;
}
.about-summary p {
  font-size:1.2rem;
  line-height:1.7;
  color:#222;
}

/* ===== Hero shape ===== */
.hero-shape {
  position: relative;
  overflow: hidden;
}

.hero-shape img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-top-left-radius: 50% 30px;
  border-top-right-radius: 50% 30px;
  transition: transform 0.2s;
}

/* ===== CONTACT ===== */
.contact-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9fb;
  padding: 100px 20px;
}

.contact-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
}

.contact-form {
  background: #fff;
  padding: 40px 50px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 500px;
  text-align: center;
  z-index: 2;
}

.contact-form h2 {
  margin-bottom: 10px;
  color: #1a1a1a;
  font-size: 1.8rem;
}

.contact-form p {
  color: #555;
  margin-bottom: 25px;
}

.contact-form label {
  display: block;
  text-align: left;
  font-weight: 500;
  color: #333;
  margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 15px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #1a1a1a;
}

.contact-form button {
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #2a2a2a;
}

.form-status {
  margin-top: 15px;
  font-size: 0.95rem;
}

/* Pozele laterale */
.contact-img {
  position: absolute;
  width: 150px;
  height: auto;
  border-top-left-radius: 50% 40%;
  border-top-right-radius: 50% 40%;
  z-index: 1;
  opacity: 0.9;
  transition: transform 0.3s ease;
}

.contact-img.left {
  bottom: 50px;
  left: 80px;
}

.contact-img.right {
  top: 40px;
  right: 80px;
}

.contact-img:hover {
  transform: scale(1.05);
}

/* Responsivitate */
@media (max-width: 768px) {
  .contact-img.left,
  .contact-img.right {
    display: none;
  }

  .contact-form {
    padding: 30px 25px;
  }
}

/* ===== ADMIN PANEL ===== */
.admin-panel {
  max-width: 700px;
  margin: 100px auto;
  background: #fff;
  padding: 40px 50px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.admin-panel h1 {
  text-align: center;
  font-size: 1.8rem;
  color: #1a1a1a;
  margin-bottom: 25px;
}

.admin-panel label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #333;
}

.admin-panel input[type="text"],
.admin-panel textarea,
.admin-panel input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-bottom: 15px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.admin-panel input:focus,
.admin-panel textarea:focus {
  border-color: #1a1a1a;
  outline: none;
}

.admin-panel button {
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.admin-panel button:hover {
  background: #333;
  transform: translateY(-2px);
}

.admin-panel h4 {
  margin-top: 25px;
  font-size: 1rem;
  color: #555;
}

.admin-panel input[type="file"] {
  border: none;
  background: #f7f7f7;
  padding: 8px;
  cursor: pointer;
}

.admin-panel input[type="file"]:hover {
  background: #eee;
}

/* ===== Project Gallery Fix & Lightbox ===== */

.project-gallery {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.project-gallery img {
  display: block;                 /* elimină dunga albă */
  vertical-align: middle;
  width: 100%;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0.5; }
  to { transform: scale(1); opacity: 1; }
}

