/* ===================================
   Sri Vinayaka Bakers - Custom Styles
   =================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

/* ===================================
   CSS Variables - Brand Colors
   =================================== */
:root {
  --gold: #D4AF37;
  --dark-gold: #B8941F;
  --brown: #8B4513;
  --dark-brown: #6B3410;
  --cream: #F5F5DC;
  --light-cream: #FFFEF0;
  --black: #000000;
  --dark-gray: #333333;
  --white: #FFFFFF;
  --shadow: rgba(0, 0, 0, 0.1);
}

/* ===================================
   Global Styles
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--dark-gray);
  background-color: var(--light-cream);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  color: var(--brown);
  font-weight: 700;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===================================
   Header & Navigation
   =================================== */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 10px var(--shadow);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  background-color: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-brand img {
  height: 60px;
  width: auto;
}

.navbar-brand .brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.navbar-brand .tagline {
  font-size: 0.75rem;
  color: var(--brown);
  font-style: italic;
}

.navbar-nav .nav-link {
  color: var(--dark-gray);
  font-weight: 500;
  padding: 0.5rem 1.5rem !important;
  position: relative;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--gold);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 70%;
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
  position: relative;
  height: 600px;
  background: linear-gradient(135deg, var(--brown) 0%, var(--dark-brown) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23D4AF37" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
}

.hero-content {
  text-align: center;
  color: var(--white);
  z-index: 1;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInDown 1s ease;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--cream);
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-content .btn {
  animation: fadeInUp 1s ease 0.6s both;
}

/* ===================================
   Hero Slider Section
   =================================== */
.hero-slider-section {
  position: relative;
  overflow: hidden;
}

#heroCarousel {
  width: 100%;
}

#heroCarousel .carousel-inner {
  max-height: 600px;
}

#heroCarousel .carousel-item {
  height: 600px;
  position: relative;
}

#heroCarousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Carousel Controls Styling */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(212, 175, 55, 0.8);
  border-radius: 50%;
  opacity: 0.7;
  transition: all 0.3s ease;
}

#heroCarousel .carousel-control-prev {
  left: 20px;
}

#heroCarousel .carousel-control-next {
  right: 20px;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
  opacity: 1;
  background-color: var(--gold);
  transform: translateY(-50%) scale(1.1);
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
  width: 30px;
  height: 30px;
  filter: brightness(0);
}

/* Carousel Indicators Styling */
#heroCarousel .carousel-indicators {
  bottom: 20px;
  margin-bottom: 0;
}

#heroCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid var(--gold);
  margin: 0 5px;
  transition: all 0.3s ease;
}

#heroCarousel .carousel-indicators button.active {
  background-color: var(--gold);
  width: 40px;
  border-radius: 10px;
}

/* Carousel Fade Animation */
.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}


/* ===================================
   Buttons
   =================================== */
.btn-primary {
  background-color: var(--gold);
  border: 2px solid var(--gold);
  color: var(--black);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--dark-gold);
  border-color: var(--dark-gold);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn-outline-primary {
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  background-color: transparent;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* ===================================
   Section Styles
   =================================== */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--brown);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--brown));
}

.section-title p {
  color: var(--dark-gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1.5rem auto 0;
}

/* ===================================
   Card Styles
   =================================== */
.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow);
  transition: all 0.3s ease;
  background-color: var(--white);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.1);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  color: var(--brown);
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.price-tag {
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 700;
}

/* ===================================
   Floating Action Buttons
   =================================== */
.floating-buttons {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  animation: bounce 2s infinite;
}

.float-btn.whatsapp {
  background-color: #25D366;
}

.float-btn.call {
  background-color: var(--gold);
}

.float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  animation: none;
}

/* ===================================
   Footer
   =================================== */
footer {
  background: linear-gradient(135deg, var(--dark-brown) 0%, var(--black) 100%);
  color: var(--cream);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
  color: var(--cream);
  margin-bottom: 0.5rem;
  display: block;
}

.footer-section a:hover {
  color: var(--gold);
  padding-left: 5px;
}

.footer-section .social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-section .social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--gold);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-section .social-links a:hover {
  background-color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--cream);
}

.footer-bottom .designer-link {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-bottom .designer-link:hover {
  color: var(--white);
  background-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(212, 175, 55, 0.4);
}


/* ===================================
   Contact Form
   =================================== */
.contact-form {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px var(--shadow);
}

.form-control {
  border: 2px solid var(--cream);
  border-radius: 10px;
  padding: 0.75rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 0.5rem;
}

/* ===================================
   Gallery Grid
   =================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item .overlay p {
  color: var(--white);
  font-weight: 600;
  margin: 0;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .floating-buttons {
    right: 20px;
    bottom: 20px;
  }

  .float-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .navbar-brand img {
    height: 45px;
  }

  .navbar-brand .brand-text {
    font-size: 1.2rem;
  }

  /* Hero Slider Responsive */
  #heroCarousel .carousel-item {
    height: 400px;
  }

  #heroCarousel .carousel-inner {
    max-height: 400px;
  }

  #heroCarousel .carousel-control-prev,
  #heroCarousel .carousel-control-next {
    width: 45px;
    height: 45px;
  }

  #heroCarousel .carousel-control-prev {
    left: 10px;
  }

  #heroCarousel .carousel-control-next {
    right: 10px;
  }

  #heroCarousel .carousel-control-prev-icon,
  #heroCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
  }

  #heroCarousel .carousel-indicators button {
    width: 8px;
    height: 8px;
  }

  #heroCarousel .carousel-indicators button.active {
    width: 25px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    height: 400px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  section {
    padding: 3rem 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* Hero Slider Mobile */
  #heroCarousel .carousel-item {
    height: 300px;
  }

  #heroCarousel .carousel-inner {
    max-height: 300px;
  }

  #heroCarousel .carousel-control-prev,
  #heroCarousel .carousel-control-next {
    width: 35px;
    height: 35px;
  }

  #heroCarousel .carousel-indicators {
    bottom: 10px;
  }
}

/* ===================================
   Utility Classes
   =================================== */
.text-gold {
  color: var(--gold);
}

.text-brown {
  color: var(--brown);
}

.bg-cream {
  background-color: var(--cream);
}

.bg-light-cream {
  background-color: var(--light-cream);
}