/* Priyanka Dairy custom styles */

:root {
  --pd-blue: #0057a8;
  --pd-blue-dark: #003f7a;
  --pd-gold: #c49a54;
  --pd-light: #fafafa;
  --pd-gray: #f2f4f7;
}

body {
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.navbar-brand span {
  color: var(--pd-blue);
  font-weight: 600;
}

.hero-section {
  background: linear-gradient(135deg, #fff9c4 0%, #ffe082 50%, #ffca28 100%); /* soft yellow gradient */


  padding: 6rem 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-section::before, .hero-section::after {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-image: radial-gradient(rgba(255,255,255,0.15) 2px, transparent 2px);
  background-size: 30px 30px;
  animation: floatPattern 20s linear infinite;
  pointer-events: none;
}
.hero-section::after {
  animation-direction: reverse;
  opacity: 0.5;
}

@keyframes floatPattern {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(30px,30px,0); }
}

.hero-section h1 {
  color: var(--pd-blue-dark);
}

.contact-cta {
  background: var(--pd-blue);
}

.export-flag {
  width: 48px;
  height: 32px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.hero-section p.lead {
  color: var(--pd-blue);
}

/* Gallery Masonry Grid */
.masonry-grid {
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 10px;
}

.masonry-item {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  margin-bottom: 1rem;
}

.masonry-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.masonry-item:hover img {
  transform: scale(1.03);
}

/* Set different heights for a more dynamic look */
.masonry-item:nth-child(3n+1) {
  grid-row-end: span 18;
}

.masonry-item:nth-child(3n+2) {
  grid-row-end: span 24;
}

.masonry-item:nth-child(3n+3) {
  grid-row-end: span 20;
}

.masonry-item:nth-child(5n+1) {
  grid-row-end: span 22;
}

.masonry-item:nth-child(7n+1) {
  grid-row-end: span 16;
}

/* Vision & Mission */
.vision-mission {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  overflow: hidden;
  z-index: 1;
}

.vision-mission::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" opacity="0.03"><path fill="%230057a8" d="M0 0h200v200H0z"/></svg>');
  background-size: 100px;
  z-index: -1;
  opacity: 0.1;
}

.vision-card,
.mission-card {
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  background: white;
  height: 100%;
  border: 1px solid rgba(0,0,0,0.03);
}

.vision-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-top: 4px solid var(--pd-blue);
}

.mission-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-top: 4px solid var(--pd-gold);
}

.vision-card h2,
.mission-card h2 {
  color: var(--pd-blue-dark);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.vision-card h2::after,
.mission-card h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--pd-blue);
  transition: width 0.3s ease;
}

.mission-card h2::after {
  background: var(--pd-gold);
}

.vision-card p.lead,
.mission-card p.lead {
  color: #495057;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.vision-icon,
.mission-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.vision-icon {
  background: linear-gradient(135deg, var(--pd-blue), #1a73e8);
  box-shadow: 0 10px 20px rgba(0, 87, 168, 0.2);
}

.mission-icon {
  background: linear-gradient(135deg, var(--pd-gold), #e6b800);
  box-shadow: 0 10px 20px rgba(196, 154, 84, 0.2);
}

.vision-features .feature-item,
.mission-features .feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.vision-features .feature-item {
  background: rgba(0, 87, 168, 0.03);
}

.mission-features .feature-item {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0,0,0,0.05);
}

.vision-features .feature-item i {
  color: var(--pd-blue);
  margin-right: 12px;
  margin-top: 4px;
  font-size: 1.2rem;
}

.feature-number {
  background: var(--pd-blue);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: 15px;
  flex-shrink: 0;
  margin-top: 4px;
}

.mission-features .feature-number {
  background: var(--pd-gold);
}

.feature-content h5 {
  color: var(--pd-blue-dark);
  margin-bottom: 4px;
  font-weight: 600;
}

.feature-content p {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.vision-card:hover,
.mission-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.vision-card:hover h2::after,
.mission-card:hover h2::after {
  width: 80px;
}

.vision-card:hover .vision-icon,
.mission-card:hover .mission-icon {
  transform: rotate(10deg) scale(1.1);
}

.vision-features .feature-item:hover {
  background: rgba(0, 87, 168, 0.05);
  transform: translateX(5px);
}

.mission-features .feature-item:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Animation */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.vision-card {
  animation: fadeInLeft 0.8s ease-out forwards;
  opacity: 0;
}

.mission-card {
  animation: fadeInRight 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

/* Responsive */
@media (max-width: 991.98px) {
  .vision-card,
  .mission-card {
    margin-bottom: 2rem;
  }
  
  .vision-card h2,
  .mission-card h2 {
    font-size: 1.75rem;
  }
}

/* What We Stand For */
.values-section {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
  overflow: hidden;
}

.values-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(135deg, var(--pd-blue) 0%, var(--pd-blue-dark) 100%);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  transform: scaleX(1.5);
  z-index: -1;
  opacity: 0.03;
}

.values-section h2 {
  color: var(--pd-blue-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--pd-blue), var(--pd-gold));
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  to {
    left: 100%;
  }
}

.value-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--pd-blue), var(--pd-gold));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 2;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.value-card:hover::before {
  transform: scaleX(1);
}

.value-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 87, 168, 0.1) 0%, rgba(196, 154, 84, 0.1) 100%);
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
}

.value-icon i {
  font-size: 32px;
  background: linear-gradient(135deg, var(--pd-blue), var(--pd-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
}

.value-card:hover .value-icon {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, var(--pd-blue), var(--pd-gold));
}

.value-card:hover .value-icon i {
  -webkit-text-fill-color: white;
  transform: rotateY(-180deg);
}

.value-card h4 {
  color: var(--pd-blue-dark);
  font-weight: 600;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}

.value-card h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--pd-gold);
  transition: all 0.3s ease;
}

.value-card:hover h4::after {
  width: 60px;
  background: var(--pd-blue);
}

.value-card p {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 0;
  transition: color 0.3s ease;
}

.value-card:hover p {
  color: #495057;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.value-card {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.value-card:nth-child(1) { animation-delay: 0.1s; }
.value-card:nth-child(2) { animation-delay: 0.2s; }
.value-card:nth-child(3) { animation-delay: 0.3s; }
.value-card:nth-child(4) { animation-delay: 0.4s; }
.value-card:nth-child(5) { animation-delay: 0.5s; }
.value-card:nth-child(6) { animation-delay: 0.6s; }

/* Global Footprint */
.global-footprint {
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.global-footprint::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(135deg, var(--pd-blue) 0%, var(--pd-blue-dark) 100%);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  transform: scaleX(1.5);
  z-index: 0;
}

.global-footprint .container {
  position: relative;
  z-index: 1;
}

.global-footprint h2 {
  color: white;
  position: relative;
  padding-bottom: 15px;
}

.global-footprint h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--pd-gold);
}

.country-card {
  background: white;
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.country-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--pd-blue), var(--pd-gold));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.country-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.country-card:hover::before {
  transform: scaleX(1);
}

.country-flag {
  width: 80px;
  height: 60px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 5px;
  transition: all 0.3s ease;
}

.country-card:hover .country-flag {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.country-flag img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.country-card h4 {
  color: var(--pd-blue-dark);
  margin-bottom: 5px;
  font-weight: 600;
}

.country-card p {
  color: #6c757d;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.country-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--pd-gold);
  font-weight: 500;
  font-size: 0.9rem;
}

.country-stats i {
  margin-right: 5px;
  font-size: 1.1rem;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.country-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.country-card:nth-child(1) { animation-delay: 0.1s; }
.country-card:nth-child(2) { animation-delay: 0.2s; }
.country-card:nth-child(3) { animation-delay: 0.3s; }
.country-card:nth-child(4) { animation-delay: 0.4s; }

/* Buttons */
.btn-primary {
  background-color: var(--pd-blue);
  border-color: var(--pd-blue);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--pd-blue-dark);
  border-color: var(--pd-blue-dark);
}

.btn-outline-primary {
  color: var(--pd-blue);
  border-color: var(--pd-blue);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--pd-blue);
  color: #fff;
}

/* Sections */
section.bg-light {
  background-color: var(--pd-gray) !important;
}

/* Gallery */
.gallery-img {
  cursor: pointer;
  transition: transform 0.2s;
}
.gallery-img:hover {
  transform: scale(1.03);
}

.modal-img {
  width: 100%;
}

/* --------------------
   Interactive Effects
   -------------------- */
html {
  scroll-behavior: smooth;
}

.card:hover,
.gallery-img:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.nav-link {
  position: relative;
  color: var(--pd-blue) !important; /* brand blue font color */
  transition: color 0.3s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--pd-gold);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hover and active color states for nav links */
.nav-link:hover,
.nav-link:focus {
  color: var(--pd-blue-dark) !important;
}

.nav-link.active {
  color: var(--pd-blue) !important;
}

/* How We Make Ghee Section */
.process-step {
  position: relative;
  padding: 2rem 1.5rem;
  background: white;
  border-radius: 12px;
  transition: all 0.4s ease;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.process-step.visible {
  transform: translateY(0);
  opacity: 1;
}

.process-step img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.process-step:hover img {
  transform: scale(1.1);
}

.process-step h5 {
  color: var(--pd-blue-dark);
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.process-step h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--pd-gold);
  transition: width 0.3s ease;
}

.process-step:hover h5::after {
  width: 60px;
}

.process-step p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Staggered animation for process steps */
.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.3s; }
.process-step:nth-child(3) { animation-delay: 0.5s; }
.process-step:nth-child(4) { animation-delay: 0.7s; }

/* Contact Page Specific Styles */
.parallax-hero {
  height: 30vh;
  min-height: 250px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin: 0;
}

.contact-page {
  padding: 1.5rem 0;
}

.contact-page .card {
  font-size: 0.9rem;
}

.contact-page .card i {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.4rem;
}

.contact-page .rounded-circle {
  padding: 0.8rem !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.contact-page .card p {
  margin-bottom: 0.2rem;
  line-height: 1.3;
  font-size: 0.9rem;
}

.contact-page .card h3 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.contact-page .lead {
  font-size: 1rem;
}

.contact-page h1 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

/* Working hours specific */
.contact-page .text-muted {
  font-size: 0.9rem;
}

.contact-page .bi {
  font-size: 1.2rem !important;
}

.contact-page .fs-1 {
  font-size: 1.2rem !important;
}

/* Fade-in animation used for sections */
@keyframes fadeInUp {
  from {opacity: 0; transform: translate3d(0, 40px, 0);} 
  to {opacity: 1; transform: none;}
}

.fade-in-up {
  animation: fadeInUp 0.8s ease both;
}

section {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}
section.visible {
  opacity: 1;
}

/* Fade-up Animation (scroll) */
.fade-up{opacity:0;transform:translateY(40px);transition:all .8s ease;}
.fade-up.visible{opacity:1;transform:none;}

/* Parallax hero */
.parallax-hero {
  background-image: url('https://images.unsplash.com/photo-1506784365847-bbad939e9335?auto=format&fit=crop&w=1400&q=60');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 60vh;
  position: relative;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.parallax-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.parallax-hero > .container {
  position: relative;
  z-index: 2;
}

/* Image zoom on hover */
.img-zoom {
  transition: transform 0.35s ease;
}
.img-zoom:hover {
  transform: scale(1.05);
}
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}
.text-shadow {
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}