/* === IMPORT FONTS === */
@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:wght@400;500;600;700&display=swap");

/* === ROOT VARIABLES === */
:root {
  --text-dark: #171717;
  --text-light: #525252;
  --extra-light: #a3a3a3;
  --white: #ffffff;
  --max-width: 1200px;
  --header-font: "Merriweather", serif;
  --main-font: "Poppins", "Montserrat", Arial, sans-serif;
}

/* === RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === GENERAL STYLES === */
body {
  font-family: var(--main-font);
  scroll-behavior: smooth;
}

img {
  display: flex;
  width: 100%;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

html {
  scroll-behavior: smooth;
}

/* === SECTION CONTAINER === */
.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__header {
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 400;
  font-family: var(--header-font);
  color: var(--text-dark);
  text-align: center;
}

.section__description {
  color: var(--text-light);
  line-height: 1.75rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem auto;
  font-size: 1.05rem;
}

/* === BUTTONS === */
.btn {
  padding: 0.75rem 1.5rem;
  outline: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  background-color: var(--text-dark);
  border-radius: 5px;
  transition: 0.3s;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--text-light);
}

/* === HEADER === */
.header {
  min-height: 600px;
  background-image: radial-gradient(rgba(255,255,255,0), rgba(0,0,0,0.9)), url("assets/header1.webp");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (max-width: 767px) {
  .header {
    background-position: center calc(100% + 100px);
  }
}




@media (min-width: 1024px) {
  .header {
    background-position: center 5%;
    min-height: 700px;
  }
}





/* === NAVIGATION === */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  max-width: var(--max-width);
  margin: auto;
  z-index: 9;
  isolation: isolate;
}

.nav__header {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background-color: var(--text-dark);
}

.nav__logo img {
  max-width: 90px;
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
}

.nav__links {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  background-color: var(--text-dark);
  transform: translateY(-100%);
  transition: transform 0.5s;
  z-index: -1;
}

.nav__links.open {
  transform: translateY(0);
}

.nav__links .nav__logo {
  display: none;
}


.nav__links a {
  padding-bottom: 5px;
  font-weight: 500;
  color: var(--white);
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s;
}

.nav__links a:hover {
  border-color: var(--white);
}

@media (max-width: 767px) {
  /* Nav container (bara de sus) */
  .nav__header {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background-color: var(--text-dark);
    height: 70px; /* Înălțimea barei */
  }

  /* Logo mai mare și centrat vertical */
  .nav__logo img {
    max-width: 150px;
    height: auto;
    display: block;
  }

  /* Buton hamburger centrat vertical */
  .nav__menu__btn {
    font-size: 1.8rem;
    color: var(--white);
    cursor: pointer;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Meniul care apare pe verticală */
  .nav__links {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    background-color: var(--text-dark);
    transform: translateY(-100%);
    transition: transform 0.5s;
    z-index: -1;
  }

  .nav__links.open {
    transform: translateY(0);
  }

  /* Ascunde logo-ul din meniu */
  .nav__links .nav__logo {
    display: none;
  }
}


/* === ABOUT SECTION === */
.about__container .section__description {
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: 2rem;
}
.about__image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}



/* === PORTFOLIO SECTION === */
.portfolio__grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.portfolio__card {
  position: relative;
  isolation: isolate;
}

.portfolio__card::after {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  font-family: var(--header-font);
  color: var(--white);
}

.portfolio__card:nth-child(1)::after { content: "Portraits"; }
.portfolio__card:nth-child(2)::after { content: "Weddings"; }
.portfolio__card:nth-child(3)::after { content: "Fashions"; }

.portfolio__content {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: 0.3s;
  z-index: 1;
}

.portfolio__card:hover .portfolio__content {
  opacity: 1;
}



.about__image {
  width: 80vw; /* 80% din lățimea ecranului */
  height: auto; /* păstrează proporția originală */
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}









/* === SERVICES SECTION === */
.service {
  background-image: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url("assets/service.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.service__container .section__header {
  color: var(--white);
}

.service__container .section__description {
  max-width: 600px;
  margin-inline: auto;
  color: var(--extra-light);
}

.service__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .service__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service__card {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px 0 rgba(60,60,60,0.10);
  padding: 2.5rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.3s, transform 0.3s;
  min-height: 480px;
}

.service__card:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 12px 36px 0 rgba(60,60,60,0.18);
}

.service__card h4 {
  font-family: var(--header-font);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: #171717;
}

.tarif-modern {
  color: #999;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.tarif-modern span {
  font-size: 1.5rem;
}

.service__card p {
  color: #444;
  margin-bottom: 1.2rem;
  text-align: center;
}

.service__details {
  list-style: none;
  padding: 0;
  width: 100%;
}

.service__details li {
  margin-bottom: 0.7rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #555;
}

.service__details li::before {
  content: '';
  display: none; /* Iconițele sunt deja în text */
}

/* === CLIENTS SECTION === */
.client__container {
  padding-bottom: 2rem;
}

.swiper {
  margin-top: 2rem;
  padding-bottom: 3rem;
  width: 100%;
}

.client__card {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.client__card img {
  max-width: 120px;
  margin-inline: auto;
  margin-bottom: 2rem;
  border-radius: 100%;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
}

.client__card p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.75rem;
}

.client__card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.swiper-pagination-bullet-active {
  background-color: var(--text-dark);
}

/* === GALLERY SECTION === */
.gallery__grid {
  margin-block: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.gallery__grid img {
  transition: 0.3s;
}

.gallery__grid:hover img:not(:hover) {
  opacity: 0.5;
}

.gallery__btn {
  text-align: center;
}

/* === BLOG SECTION === */
.blog {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("assets/blog.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.blog__container {
  padding-block: 8rem;
  display: grid;
}

.blog__content {
  text-align: center;
}

.blog__content .section__header {
  margin-bottom: 2rem;
  color: var(--white);
}

.blog__content h4 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 400;
  font-family: var(--header-font);
  color: var(--white);
}

.blog__content p {
  margin-bottom: 2rem;
  line-height: 1.75rem;
  color: var(--extra-light);
}

.blog__content .btn {
  background-color: transparent;
  border: 1px solid var(--white);
}

/* === INSTAGRAM SECTION === */
.instagram__container {
  overflow: hidden;
}

.instagram__flex {
  margin-top: 2rem;
  width: max-content;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: scroll 45s linear infinite;
}

.instagram__flex img {
  max-width: 135px;
}

@keyframes scroll {
  to {
    transform: translateX(calc(-50% - 0.5rem));
  }
}

/* === PRICING === */
.tarif {
  font-weight: bold;
  color: #25D366;
  margin-top: 0.5rem;
}

/* === FOOTER === */
.footer__container {
  display: grid;
  gap: 4rem 0;
  align-items: center;
}

.footer__col {
  padding-inline: 2rem;
}

.footer__container img {
  max-width: 170px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.footer__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__socials a {
  font-size: 1.5rem;
  color: var(--text-dark);
}

.footer__socials a:hover {
  color: var(--text-light);
}

.footer__links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.footer__links a {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
}

.footer__links a:hover {
  color: var(--text-light);
}

.footer__col h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
}

.footer__col p {
  color: var(--text-light);
  line-height: 1.75rem;
  text-align: center;
}

.footer__bar {
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--extra-light);
  background-color: var(--text-dark);
  text-align: center;
}

/* === RESPONSIVE MEDIA QUERIES === */
@media (width > 540px) {
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .service__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__container { grid-template-columns: repeat(2, 1fr); }
  .footer__col:nth-child(1) { grid-area: 1/1/2/3; }
  .footer__col:nth-child(3) { border-left: 2px solid var(--text-dark); }
}

@media (width > 768px) {
  nav {
    padding: 2rem 1rem;
    position: static;
    max-width: 900px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav__header { display: none; }
  .nav__links {
    padding: 0;
    width: 100%;
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: space-between;
    background-color: transparent;
  }
  .nav__links .nav__logo { display: block; }
  .nav__links .nav__logo img { max-width: 150px; }
  .portfolio__grid { grid-template-columns: repeat(3, 1fr); }
  .service__grid { grid-template-columns: repeat(3, 1fr); }
  .gallery__grid { grid-template-columns: repeat(4, 1fr); }
  .blog__container { grid-template-columns: repeat(2, 1fr); }
  .blog__content { grid-column: 2/3; }
  .footer__container { grid-template-columns: repeat(3, 1fr); }
  .footer__col:nth-child(1) {
    grid-area: 1/2/2/3;
    border-left: 2px solid var(--text-dark);
    border-right: 2px solid var(--text-dark);
  }
  .footer__col:nth-child(3) { border: none; }
}

@media (width > 1024px) {
  .portfolio__grid { gap: 2rem; }
}
