body {
  margin: 0;
  padding: 0;
  background: url('img/bg.webp') center center no-repeat;
  background-size: cover;
  font-family: 'Segoe UI', sans-serif;
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* responsive background switching */
@media (max-width: 400px) {
  body { background-image: url('img/bg%20(Phone).webp'); }
}
@media (min-width: 401px) and (max-width: 1000px) {
  body { background-image: url('img/bg%20(Small).webp'); }
}
@media (min-width: 1001px) and (max-width: 1500px) {
  body { background-image: url('img/bg%20(Medium).webp'); }
}
@media (min-width: 1501px) {
  body { background-image: url('img/bg%20(Large).webp'); }
}

.hero-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.logo img {
  max-width: 300px;
  width: 90%;
  height: auto;
}

.slogan {
  font-size: clamp(1.5rem, 2vw, 1.8rem);
  letter-spacing: 0.4em;
  margin-top: 20px;
  padding: 20px 10px;  /* ✅ padding corect adăugat */
  line-height: 1.4;
  white-space: nowrap; /* ✅ forțează o singură linie */
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 10px;
  background: rgba(0,0,0,0.85);
  position: sticky;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
}

.menu a {
  flex: 1 1 180px;
  max-width: 240px;
  padding: 14px 16px;
  border: 2px solid white;
  color: white;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  background: black;
  transition: background 0.2s, color 0.2s;
  border-radius: 100px;
}

.menu a:hover {
  background: white;
  color: black;
}

@media (max-width: 600px) {
  body {
    flex-direction: column-reverse; /* ✅ mută meniul deasupra */
  }

  .slogan{
    font-size: clamp(1.5rem, 2vw, 1rem);
  }

  .menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 10px;
    background: rgba(0, 0, 0, 0.9);
    position: static;
    max-width: 100%;
  }

  .menu a {
    font-size: 1rem;
    padding: 2px;
    width: 100%;
    text-align: center;
    flex: none;
    max-width: 100%;
  }

  .slogan {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    padding: 20px 10px;
  }
}

/* ================= POVESTEA ================= */
.poveste-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  gap: 60px;
  min-height: 100vh;
  background: black;
  color: white;
  padding: 0 5vw;
  box-sizing: border-box;
  overflow: hidden;
scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
}

.poveste-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  max-height: 100vh;
  padding-right: 5vw;
  box-sizing: border-box;
scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
}

.poveste-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 100vh;
  overflow: hidden;
}

.poveste-image img {
  width: auto;
  height: 100%;
  max-height: 100vh;
  object-fit: cover;
  border-radius: 0 60px 0 0;
}

.poveste-text h1 {
  font-size: 2.2rem;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.poveste-text h2 {
  font-size: clamp(1.5rem, 1.8vw, 2rem);
  font-weight: bold;
  margin-bottom: 20px;
}

.poveste-text p {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.8;
  margin-bottom: 16px;
}
/* RESPONSIVE MOBILE FIX */
@media (max-width: 768px) {
  .poveste-wrapper {
    flex-direction: column !important;
    padding: 40px 20px;
    height: auto;
  }

  .poveste-text,
  .poveste-image {
    flex: none;
    max-width: 100%;
    width: 100%;
    padding: 0;
  }

  .poveste-text {
    order: 1;
    overflow: visible;
    max-height: none;
    text-align: center;
  }

  .poveste-image {
    order: 2;
    margin-top: 20px;
    justify-content: center;
    align-items: center;
  }

  .poveste-image img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    border-radius: 0;
  }

  .poveste-text h1 {
    font-size: 2.2rem;
  }

  .poveste-text h2 {
    font-size: 1.4rem;
  }

  .poveste-text p {
    font-size: 1rem;
  }
}


html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;  /* ✅ oprește scrollul orizontal */
}



/* ✅ Buton Înapoi */
.back-btn {
  position: absolute;
  top: 30px;
  left: 30px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.1);
  color: white;
  border: 2px solid white;
  text-decoration: none;
  font-size: 1rem;
  z-index: 10;
  transition: background 0.2s;
  border-radius: 100px;
}

.back-btn:hover {
  background: white;
  color: black;
}

.grid-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 60px 5vw;
  background: black;
  color: white;
}

.project {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: white;
  transition: transform 0.2s;
}

.project img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 24px;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.project:hover img {
  transform: scale(1.03);
}

.project p {
  font-size: 1rem;
  max-width: 280px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== DESIGN PUBLIC SECTION ===== */

.section-design {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 5vw;
  min-height: 100vh;
  background: black;
  color: white;
  box-sizing: border-box;
  gap: 60px;
}

.section-design:nth-child(even) {
  flex-direction: row-reverse;
}

.section-design-image {
  max-width: 40vw;
  width: 100%;
  border-radius: 32px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
  transition: transform 0.3s ease;
}

.section-design-image:hover {
  transform: scale(1.03);
}

.section-design-text {
  width: 40vw;
}

.section-design-title {
  font-size: 2rem;
  margin-bottom: 20px;
  font-family: 'Georgia', serif;
}

.section-design-description {
  font-size: 1.1rem;
  line-height: 1.6;
  white-space: pre-line;
}

/* Responsive layout */
@media (max-width: 768px) {
  .section-design {
    flex-direction: column !important;
    text-align: center;
    padding: 40px 20px;
  }

  .section-design-image {
    width: 100vw;
    max-width: 100%;
    border-radius: 0;
  }

  .section-design-text {
    width: 100%;
    padding-top: 20px;
  }
}

/* ===== ILUSTRAȚII GRID ===== */
.grid-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 60px 5vw;
  background: black;
  color: white;
}

.project {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: white;
  transition: transform 0.2s;
}

.project img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.project:hover img {
  transform: scale(1.03);
}

.project p {
  font-size: 1rem;
  max-width: 280px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.contact-page {
  background: black;
  color: white;
  font-family: 'Segoe UI', sans-serif;
  min-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 5vw;
  box-sizing: border-box;
}

.contact-wrapper {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 90%;
}

.contact-header {
  text-align: center;
  margin-bottom: 30px;
}

.contact-header h1 {
  font-size: clamp(1.5rem, 3vw, 3.5rem);
  margin-bottom: 20px;
  line-height: 1.2;
}

.contact-header p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 30px;
}

.contact-header a {
  background: white;
  color: black;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1.2rem;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}

.contact-header a:hover {
  background: #ddd;
}

.contact-separator {
  height: 2px;
  background: white;
  margin: 40px 0;
  width: 100%;
}

.contact-info {
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.4rem);
}

.contact-details {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
}

.info-block {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 300px;
  text-align: left;
}

.info-block .icon {
  font-size: 2rem;
}

.info-block p {
  margin: 0;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .contact-details {
    flex-direction: column;
    align-items: center;
  }

  .info-block {
    justify-content: center;
    text-align: center;
  }
}

.designp-body {
  margin: 0;
  padding: 0;
  background: black;
  color: white;
  font-family: 'Segoe UI', sans-serif;
}

.back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  color: white;
  border: 2px solid white;
  padding: 10px 14px;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.designp-wrapper {
  display: flex;
  height: 100vh;
  overflow: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
}

.designp-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.designp-wrapper.reverse {
  flex-direction: row-reverse;
}

.designp-text-scroll {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  box-sizing: border-box;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
}

.designp-text-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.designp-image {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.designp-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.designp-nav .designp-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 15px;
  border-radius: 50%;
}

.designp-arrow.left {
  left: 20px;
}

.designp-arrow.right {
  right: 20px;
}

@media (max-width: 768px) {
  .designp-wrapper,
  .designp-wrapper.reverse {
    flex-direction: column;
    height: auto;  /* ← AICI e cheia */
  }

  .designp-text-scroll {
    height: auto;
    overflow: visible;
  }

  .designp-image {
    width: 100%;
    height: auto;
  }

  .designp-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

.gallery-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
    justify-content: center;
}

.slider-thumb {
    height: 120px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.slider-thumb:hover {
    transform: scale(1.05);
}

.slider-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

.slider-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

.slider-overlay .prev,
.slider-overlay .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    border: none;
    font-size: 30px;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 6px;
}

.slider-overlay .prev { left: 20px; }
.slider-overlay .next { right: 20px; }

