@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&display=swap");

:root {
  --text-dark: #171717;
  --text-light: #525252;
  --extra-light: #a3a3a3;
  --white: #ffffff;
  --max-width: 1200px;
  --header-font: "Merriweather", serif;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.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;
}

.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);
}

img {
  display: flex;
  width: 100%;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
}

.header {
  min-height: 600px;
  background-position: center 65%; /* Adjust percentage to move down */
  background-size: cover;
  background-repeat: no-repeat;
}

nav {
  position: fixed;
  isolation: isolate;
  top: 0;
  width: 100%;
  max-width: var(--max-width);
  margin: auto;
  z-index: 9;
}

/* Navbar Header */
.nav__header {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background-color: transparent; /* Transparent background */
  position: fixed; /* Keep the header fixed */
  top: 0; /* Ensure the header stays at the top */
  width: 100%;
  z-index: 9;
  transition: top 0.3s ease; /* Smooth transition for hiding/showing */
}

.nav__logo img {
  max-width: 70px; /* Desktop logo size */
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

/* Navigation Links */
.nav__links {
  list-style: none;
  position: absolute;
  width: 100%;
  padding: 2rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
  background-color: transparent; /* Set background to transparent */
  transform: translateY(-100%);
  transition: 0.5s;
  z-index: -1;
}

.nav__links.open {
  transform: translateY(0);
}

.nav__links .nav__logo {
  display: none; /* Hide logo in the navigation links */
}

.nav__links a {
  padding-bottom: 5px;
  font-weight: 500;
  color: var(--white);
  border-bottom: 2px solid transparent;
}

.nav__links a:hover {
  border-color: var(--white);
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Mobile Logo */
  .nav__logo img {
    max-width: 85px; /* Increase the logo size for mobile */
  }

  /* Transparent background for mobile menu */
  .nav__links {
    top: 0;
    padding: 3rem 2rem;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
    background-color: transparent; /* Make the background transparent */
  }

  /* Transparent header for mobile */
  .nav__header {
    background-color: transparent; /* Make the header transparent on mobile */
  }

  /* Ensure logo inside nav__links is hidden on mobile */
  .nav__links .nav__logo {
    display: none;
  }
}

/* Hide header image on portrait page */
body.portrait-page .header {
  background-image: none; /* Removes the background image */
}

/* Social Media Icons */
.socials-container {
  display: flex;
  justify-content: center; /* Centers the icons horizontally */
  align-items: center; /* Ensures icons are vertically aligned */
  gap: 20px; /* Space between icons */
  margin: 20px 0; /* Adds space above and below the icons */
}

.socials-container a {
  font-size: 35px; /* Adjust size of icons */
  color: #333; /* Default icon color */
  transition: color 0.3s ease; /* Smooth hover effect */
}

.socials-container a:hover {
  color: #007bff; /* Hover color */
}



.about__container {
  display: flex;
  justify-content: center; /* Center the content within the section */
}

.about__container .content-container {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 900px;
  justify-content: center; /* Center content horizontally on larger screens */
}

/* Image styling */
.about__container img {
  max-width: 170px;
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* Text content styling */
.about__container .text-content {
  max-width: 600px;
}

/* Media query for mobile */
@media (max-width: 768px) {
  .about__container .content-container {
    flex-direction: column; /* Stack image on top of text */
    align-items: center;
    text-align: center;
  }

  .about__container img {
    margin-bottom: 1rem;
  }
}

.service__contact {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.contact__button {
  background-color: black;
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 8px; /* Adjust to round the corners slightly */
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.contact__button:hover {
  background-color: #333; /* Slightly lighter shade on hover */
}



/* PORTRAIT SECTION */

.portrait-section {
  padding: 50px;
  text-align: center;
  background-color: #f5f5f5;
}

.portrait-title {
  font-size: 2em;
  margin-bottom: 20px;
  color: #333;
}

.portrait-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.portrait-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Portfolio section Beginning */


.portrait-section {
  margin-top: 2rem;
}

.portfolio__grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid */
}

.portfolio__card {
  position: relative;
  isolation: isolate;
  overflow: hidden; /* Ensures content does not spill outside the card */
  border-radius: 8px; /* Optional rounded corners */
}

.portfolio__card::after {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  font-family: var(--header-font);
  color: var(--white);
  white-space: nowrap; /* Prevents text wrapping */
}

.portfolio__card:nth-child(1)::after {
  content: "Weddings";
}

/* Add "Engagements" label to the specific card */
.portfolio__card.engagements::after {
  content: "Engagements";

}

.portfolio__card:nth-child(4)::after {
  content: "Portraits";
}

.portfolio__card:nth-child(3)::after {
  content: "Graduations";
}



.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.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.portfolio__card:hover .portfolio__content {
  opacity: 1;
}

.portfolio__card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures images fill the card without distortion */
  transition: transform 0.3s ease; /* Adds zoom effect on hover */
}

.portfolio__card:hover img {
  transform: scale(1.05); /* Slight zoom-in on hover */
}

/* Hide additional portfolio cards by default */
.portfolio__card.hidden {
  display: none;
}

/* Click more button styling */
.click-more-btn {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
  font-size: 16px;
}

.click-more-btn:hover {
  background-color: #0056b3;
}

.portfolio__card.hide-text::after {
  content: none; /* This will hide the text in the pseudo-element */
}

.portfolio-section {
  display: flex;
  flex-direction: column;
  align-items: center; /* Horizontally centers the title */
  justify-content: center; /* Vertically centers within the section */
  text-align: center; /* Centers the text within the h2 element */
  padding: 2rem 0;
}

.portfolio-title {
  font-size: 2.5rem; /* Adjust the font size as needed */
  font-weight: bold;
  margin: 0;
}

/* Portfolio section Ending */

/* Wedding Section Begining */ 

.wedding-section {
  padding: 50px;
  text-align: center;
  background-color: #f5f5f5;
}

.wedding-title {
  font-size: 2em;
  margin-bottom: 20px;
  color: #333;
}

.wedding-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.wedding-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* wedding section ending */



.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 {
  margin-top: 4rem;
  display: grid;
  gap: 2rem;
}

.service__card {
  text-align: center;
}

.service__card h4 {
  position: relative;
  isolation: isolate;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  font-size: 1.75rem;
  font-weight: 400;
  font-family: var(--header-font);
  color: var(--white);
}

.service__card h4::after {
  position: absolute;
  content: "~";
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  line-height: 0;
}

.service__card p {
  color: var(--extra-light);
  line-height: 1.75rem;
}

/* Container for the Testimonials Section */
.client__container {
  padding-bottom: 2rem;
}

/* Swiper Container Styles */
.swiper {
  margin-top: 2rem;
  padding-bottom: 3rem;
  width: 100%;
}

/* Styling Each Testimonial Card */
.client__card {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

/* Client Image Styling */
.client__card img {
  max-width: 120px;
  margin-inline: auto;
  margin-bottom: 2rem;
  border-radius: 50%; /* Ensures image is circular */
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
}

/* Testimonial Text Styling */
.client__card p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.75rem;
}

/* Client Name Styling */
.client__card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.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;
}

/* gallery view all section */
.gallery-section {
  padding: 50px;
  text-align: center;
  background-color: #f5f5f5;
}

.gallery-title {
  font-size: 2em;
  margin-bottom: 20px;
  color: #333;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.gallery-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}




.contact-info {
  text-align: center; /* Centers the name, location, and phone number */
  margin-bottom: 1rem; /* Adds spacing between the lines */
}

.contact-form-section {
  padding: 3rem 1rem;
  background-color: #d3d3d3; /* Grey background for the section */
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.form-container p {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.submit-btn {
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  background-color: #0069ff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.submit-btn:hover {
  background-color: #0056b3;
}


.submit-btn {
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  background-color: #0069ff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.submit-btn:hover {
  background-color: #0056b3;
}


.calendly-inline-widget {
  width: 100%;
  max-width: 900px; /* Increases width to make it more horizontal */
  height: 400px; /* Reduces height to fit a horizontal look */
  margin-top: 20px;
}




.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));
  }
}

.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;
}

@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) {
  .header {
    min-height: 650px;
  }

  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);
  }

  .contact-form-section {
    padding: 2rem;
    background-color: #f9f9f9;
  }
  
  .form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .form-container h2 {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .form-container p {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .contact-form {
    display: grid;
    gap: 1rem;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
  }
  
  .form-group label {
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  
  .form-group input, .form-group textarea {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
  }
  
  .form-group textarea {
    height: 150px;
    resize: vertical;
  }
  
  .submit-btn {
    background-color: black;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .submit-btn:hover {
    background-color: #333;
  }
  

  .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) {
  .header {
    min-height: 700px;
  }

  .portfolio__grid {
    gap: 2rem;
  }
}

.instagram__handle {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #333;
}

.instagram__handle a {
  color: #0077ff;
  text-decoration: none;
  font-weight: bold;
}

.instagram__handle a:hover {
  text-decoration: underline;
}




/* Contact Form Section */
.contact-form-section {
  padding: 2rem;
  background-color: #f9f9f9;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.form-container p {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.submit-btn {
  background-color: black;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #333;
}



/* all gallery section */
.gallery-section {
  padding: 50px;
  text-align: center;
  background-color: #f5f5f5;
}

.gallery-title {
  font-size: 2em;
  margin-bottom: 20px;
  color: #333;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Default for larger screens */
  gap: 20px;
  justify-items: center;
}

.gallery-card img {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-card img:hover {
  transform: scale(1.05);
}

/* Mobile specific styles */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
  }
}
