@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-image: url("assets/headers/celestial-photography-header-main.png");
  background-position: center center;
  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;
}

.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: 70px;
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

.nav__links {
  list-style: none;
  position: absolute;
  width: 100%;
  padding: 2rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
  background-color: var(--text-dark);
  transform: translateY(-100%);
  transition: 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: #234795;
  border-bottom: 2px solid transparent;
}

.nav__links a:hover {
  border-color: #234795;
}

/* ========== WHITE NAV LINKS ON MOBILE ========== */
@media (max-width: 768px) {
  .nav__links a {
    color: #ffffff;
  }
  .nav__links a:hover {
    border-color: #ffffff;
  }
}

.about__container .section__description {
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.about__container img {
  max-width: 170px;
  margin-inline: auto;
}

.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;
}

.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;
}

.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__avatar {
  width: 120px;
  height: 120px;
  border-radius: 100%;
  background-color: #234795;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 600;
  font-family: var(--header-font);
  letter-spacing: 0.05em;
  margin-inline: auto;
  margin-bottom: 2rem;
  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__grid {
  margin-block: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.gallery__grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: 0.3s;
}

.gallery__grid:hover img:not(:hover) {
  opacity: 0.5;
}

.gallery__btn {
  text-align: center;
}

.blog {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("assets/blog1.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__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);
  }

  .gallery__grid img {
    height: 220px;
  }

  .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);
  }

  .gallery__grid img {
    height: 200px;
  }

  .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) {
  .header {
    min-height: 600px;
  }

  .portfolio__grid {
    gap: 2rem;
  }
}

/* ========== DROPDOWN BASE ========== */
.dropdown {
    position: relative;
}

.dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown > a i {
    transition: transform 0.3s ease;
}

/* Global base rule for dropdown links — color set per breakpoint below */
.dropdown-menu li a {
    display: block;
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: #234795;
    color: #ffffff;
}

/* ========== DESKTOP DROPDOWN ========== */
@media (min-width: 769px) {
    .dropdown:hover > a i {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: #ffffff;
        min-width: 240px;
        padding: 0.75rem 0;
        border-radius: 0.75rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        list-style: none;
        z-index: 1000;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        border: 1px solid #e5e5e5;
    }

    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Blue text on white background on desktop */
    .dropdown-menu li a {
        color: #234795;
    }

    .dropdown-menu li a:hover {
        padding-left: 1.8rem;
        background: #234795;
        color: #ffffff;
    }
}

/* ========== MOBILE DROPDOWN ========== */
@media (max-width: 768px) {
    .dropdown {
        width: 100%;
        text-align: center;
    }

    .dropdown > a {
        justify-content: center;
        padding: 0.5rem;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        padding: 0;
        list-style: none;
        display: none;
        border: 1px solid rgba(255,255,255,0.1);
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    /* White text on blue background on mobile */
    .dropdown-menu li a {
        padding: 0.6rem 1rem;
        color: #ffffff;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        white-space: normal;
    }

    .dropdown-menu li a:hover {
        background: #234795;
        color: #ffffff;
        padding-left: 1rem;
    }

    .dropdown-menu li:last-child a {
        border-bottom: none;
    }

    .dropdown.open > a i {
        transform: rotate(180deg);
    }
}

/* ========== MOBILE MENU SCROLL FIX ========== */
@media (max-width: 768px) {
    .nav__links {
        max-height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transition: all 0.3s ease-in-out;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* ========== MOBILE NAVBAR COLOURS ========== */
@media (max-width: 768px) {
    .nav__header {
        background: linear-gradient(180deg, #234795, #234795) !important;
    }

    .nav__links {
        background: linear-gradient(180deg, #234795, #9A9A9C) !important;
    }

    .dropdown-menu {
        background: rgba(35, 71, 149, 0.9) !important;
        backdrop-filter: blur(5px);
    }
}

/* ========== RESPONSIVE LOGO STYLES ========== */

.logo-white {
    display: none;
}

.logo-dark {
    display: block;
}

@media (max-width: 768px) {
    .logo-white {
        display: block !important;
        width: auto !important;
        max-width: 70px !important;
        height: auto !important;
    }

    .logo-dark {
        display: none !important;
    }
}

/* Override global img { width: 100% } for nav logos */
.nav__header .nav__logo img,
.nav__header .logo-dark,
.nav__header .logo-white {
    width: auto;
    max-width: 70px;
    height: auto;
    display: block;
}

.nav__links .nav__logo img {
    width: auto;
    max-width: 150px;
    height: auto;
    margin: 0 auto;
}

/* ========== MISC UTILITIES ========== */

.about-page-gallery {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.space {
    width: 100%;
    height: 100px;
}

.neg-space {
    width: 100%;
    height: -150px;
}

/* ========== PHOTOGRAPHY PAGES GALLERY SECTION ========== */

.gallery-section {
    width: 100%;
    padding: 2rem 4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.15) rotate(2deg);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        115deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0) 40%,
        rgba(255,255,255,0.3) 50%,
        rgba(255,255,255,0) 60%,
        rgba(255,255,255,0) 100%
    );
    transform: rotate(25deg);
    transition: all 0.6s ease;
    opacity: 0;
    pointer-events: none;
}

.gallery-item:hover::after {
    animation: shine 0.6s ease forwards;
}

@keyframes shine {
    0%   { transform: translateX(-100%) rotate(25deg); opacity: 0; }
    50%  { opacity: 0.6; }
    100% { transform: translateX(100%) rotate(25deg); opacity: 0; }
}

@media (max-width: 1024px) {
    .gallery-section { padding: 2rem; }
    .gallery-grid { gap: 1rem; }
}

@media (max-width: 768px) {
    .gallery-section { padding: 1.5rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (max-width: 480px) {
    .gallery-section { padding: 1rem; }
    .gallery-grid { grid-template-columns: 1fr; }
}

/* ========== PAGE HEADERS ========== */

.header-blog-post {
    min-height: 100px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

#blog1-header,
#blog2-header,
#blog3-header,
#blog4-header,
#blog-header,
#about-header,
#contact-header,
#family-portraits-header,
#birthday-shoots-header,
#himachal-pradesh-photography-header,
#jammu-photography-header,
#hotel-photography-header,
#kids-shoots-header,
#maternity-shoots-header,
#model-shoots-header,
#punjab-photography-header,
#school-photography-header,
#corporate-photography-header,
#uttarakhand-photography-header,
#wedding-photography-header {
    min-height: 600px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

#blog1-header,
#blog2-header,
#blog3-header,
#blog4-header,
#blog-header {
    background-image: url("assets/headers/celestial-photography-header-blogs.png");
}

#about-header {
    background-image: url("assets/headers/celestial-photography-header-about.png");
}

#contact-header {
    background-image: url("assets/headers/celestial-photography-header-contact-us.png");
}

#family-portraits-header {
    background-image: url("assets/headers/celestial-photography-header-family.png");
}

#birthday-shoots-header {
    background-image: url("assets/headers/celestial-photography-header-birthday.png");
}

#himachal-pradesh-photography-header {
    background-image: url("assets/headers/celestial-photography-header-himachal.png");
}

#jammu-photography-header {
    background-image: url("assets/headers/celestial-photography-header-jammu.png");
}

#hotel-photography-header {
    background-image: url("assets/headers/celestial-photography-header-hotel.png");
}

#kids-shoots-header {
    background-image: url("assets/headers/celestial-photography-header-newborn.png");
}

#maternity-shoots-header {
    background-image: url("assets/headers/celestial-photography-header-maternity.png");
}

#model-shoots-header {
    background-image: url("assets/headers/celestial-photography-header-model.png");
}

#punjab-photography-header {
    background-image: url("assets/headers/celestial-photography-header-punjab.png");
}

#school-photography-header {
    background-image: url("assets/headers/celestial-photography-header-school.png");
}

#corporate-photography-header {
    background-image: url("assets/headers/celestial-photography-header-corporate.png");
}

#uttarakhand-photography-header {
    background-image: url("assets/headers/celestial-photography-header-uttarakhand.png");
}

#wedding-photography-header {
    background-image: url("assets/headers/celestial-photography-header-wedding.png");
}

/* ========== HOMEPAGE NAVIGATION - WHITE WITH #234795 SHADOW ========== */

#index-header .nav__links > li > a {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px #234795;
    font-weight: 500;
}

#index-header .dropdown > a {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px #234795;
}

#index-header .nav__links > li > a:hover {
    color: #ffffff !important;
    border-color: #ffffff !important;
    text-shadow: 2px 2px 6px #234795;
}

#index-header .dropdown-menu li a {
    color: #234795 !important;
    text-shadow: none !important;
    font-weight: 400 !important;
}

#index-header .dropdown-menu li a:hover {
    background: #234795 !important;
    color: #ffffff !important;
    text-shadow: none !important;
}

#index-header .dropdown > a i {
    text-shadow: 2px 2px 4px #234795;
}