/* 
   Premium Redesign for R.R Caterers
   Vanilla CSS with Modern Features: Glassmorphism, Micro-animations, Vibrant Aesthetics
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --primary: #FF6B6B;
  --secondary: #4ECDC4;
  --dark: #1A1A2E;
  --light: #F7F9FC;
  --text-main: #2D3436;
  --text-muted: #636E72;
  --gold: #D4AF37;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--light);
  color: var(--text-main);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, .serif-font {
  font-family: 'Playfair Display', serif;
}

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

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

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

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}

nav .logo img {
  height: 55px;
  transition: var(--transition);
}

nav .logo img:hover {
  transform: scale(1.05);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 35px;
  align-items: center;
}

nav ul li a {
  text-decoration: none;
  color: var(--dark);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: var(--transition);
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -6px;
  left: 0;
  background-color: var(--primary);
  transition: var(--transition);
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a:hover {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 10px 25px;
  border-radius: 30px;
}

.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--dark);
  transform: translateY(-2px);
}

/* Hero Split Layout */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  padding: 120px 50px 50px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 50px;
}

.hero-text-side {
  flex: 1;
  max-width: 600px;
  animation: fadeIn 1.2s ease forwards;
}

.hero-text-side h1 {
  font-size: 5rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 25px;
}

.hero-text-side h1 span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

.hero-text-side p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-slider-side {
  flex: 1;
  width: 100%;
  min-width: 0; /* Prevents flex item from overflowing its container */
  animation: fadeIn 1.5s ease forwards;
}

/* Hero Swiper Section */
.hero-swiper-container {
  width: 100%;
  height: 650px;
  position: relative;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  overflow: hidden;
}

.slide-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.slide-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.2); /* Very subtle overlay since text is no longer inside */
  z-index: 1;
}

/* Swiper Navigation Customization */
.swiper-button-next, .swiper-button-prev {
  color: white !important;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  transition: var(--transition);
}

.swiper-button-next {
  right: 20px !important;
}

.swiper-button-prev {
  left: 20px !important;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
  background: var(--primary);
  transform: scale(1.1);
}

.swiper-button-next::after, .swiper-button-prev::after {
  font-size: 24px !important;
}

.swiper-pagination-bullet {
  background: white !important;
  opacity: 0.5 !important;
  width: 10px !important;
  height: 10px !important;
  transition: var(--transition);
}

.swiper-pagination-bullet-active {
  background: var(--primary) !important;
  opacity: 1 !important;
  transform: scale(1.5);
}

.btn-main {
  padding: 18px 45px;
  background: linear-gradient(135deg, var(--primary), #FF4757);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-main:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(255, 107, 107, 0.5);
}

/* Sections General */
.section {
  padding: 100px 50px;
}

.section-alt {
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-header h2 {
  font-size: 3rem;
  color: var(--dark);
  margin-bottom: 15px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: 0 auto 20px;
  border-radius: 2px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text h3 {
  font-size: 2.2rem;
  margin-bottom: 25px;
  color: var(--dark);
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.about-image:hover img {
  transform: translateY(-10px);
}

.experience-badge {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background: var(--dark);
  color: white;
  padding: 30px;
  border-radius: 50%;
  width: 140px;
  height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  border: 5px solid white;
}

.experience-badge span {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
}

/* Grid Layouts (Services & Menu) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: white;
  border-radius: 20px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid #F0F2F5;
  z-index: 1;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,107,107,0.03), rgba(78,205,196,0.03));
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  border-color: transparent;
}

.card i {
  font-size: 3rem;
  margin-bottom: 25px;
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.card p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Menu Highlights */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.menu-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 250px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  cursor: pointer;
  background: var(--dark);
}

.menu-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.1));
  transition: var(--transition);
}

.menu-item:hover::after {
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.3));
}

.menu-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
  color: white;
  transition: var(--transition);
}

.menu-item:hover .menu-info {
  transform: translateY(-10px);
}

.menu-info h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.menu-info p {
  font-size: 0.9rem;
  color: #CCC;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  position: relative;
}

.quote-icon {
  position: absolute;
  top: -20px;
  left: 30px;
  background: var(--primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.testimonial-card p {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
  margin-top: 15px;
}

.client-name {
  font-weight: 700;
  color: var(--dark);
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
}

.client-role {
  font-size: 0.9rem;
  color: var(--secondary);
}

.stars {
  color: var(--gold);
  margin-top: 10px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--dark), #2c3e50);
  color: white;
  text-align: center;
  padding: 100px 50px;
}

.cta-section h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.phone-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
  margin-bottom: 30px;
}

/* AI Chatbot Widget (Refined) */
.ai-chatbot {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}

.ai-toggle {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), #FF4757);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
  transition: var(--transition);
  animation: float 3s ease-in-out infinite;
}

.ai-toggle:hover {
  transform: scale(1.1);
}

.ai-window {
  position: absolute;
  bottom: 90px;
  right: 0;
  width: 360px;
  height: 520px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px);
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.2);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition);
  transform-origin: bottom right;
}

.ai-window.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.ai-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 20px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-header h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.ai-close {
  cursor: pointer;
  font-size: 18px;
  opacity: 0.8;
  transition: 0.2s;
}

.ai-close:hover { opacity: 1; }

.ai-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(255,255,255,0.5);
}

.msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  font-family: 'Outfit', sans-serif;
}

.msg.ai {
  background: white;
  color: var(--dark);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.msg.user {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.2);
}

.ai-input {
  display: flex;
  padding: 15px;
  background: white;
  border-top: 1px solid #EAEAEA;
}

.ai-input input {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid #EAEAEA;
  border-radius: 30px;
  outline: none;
  font-family: 'Outfit', sans-serif;
  background: var(--light);
  transition: 0.2s;
}

.ai-input input:focus {
  border-color: var(--secondary);
  background: white;
}

.ai-input button {
  background: var(--primary);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin-left: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.ai-input button:hover {
  transform: scale(1.1) rotate(10deg);
  background: var(--dark);
}

/* Footer Details */
footer {
  background: var(--dark);
  color: white;
  padding: 80px 50px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto 50px;
}

.footer-col h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--gold);
}

.footer-col p {
  color: #CCC;
  line-height: 1.8;
  margin-bottom: 15px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 15px;
}

.footer-col ul li a {
  color: #CCC;
  text-decoration: none;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.social-icons-footer {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons-footer a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.social-icons-footer a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-deity-photo {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-deity-photo img {
  max-height: 250px;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  transition: var(--transition);
  border: 2px solid rgba(255,255,255,0.1);
}

.footer-deity-photo img:hover {
  transform: scale(1.03);
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.2);
}

.footer-bottom {
  text-align: center;
  color: #888;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Mobile Responsiveness */
.mobile-menu-btn {
  display: none;
  font-size: 24px;
  color: var(--dark);
  cursor: pointer;
}

/* Menu Category Grid Fixes (Legacy Bootstrap Override) */
.picture {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.picture img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.picture:hover img {
  transform: scale(1.1);
}
.portfolio-overlay-2 {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.picture:hover .portfolio-overlay-2 {
  opacity: 1;
}
.portfolio-overlay-2 h1 {
  color: white;
  font-size: 2rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.portfolio-overlay-2 a {
  color: var(--gold);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
}
.portfolio-overlay-2 a:hover {
  color: white;
}
.icons { text-align: center; }

@media (max-width: 768px) {
  /* Navbar */
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: none; /* Hidden by default */
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
  }

  /* Hero Section */
  .hero-section {
    flex-direction: column;
    padding: 100px 20px 30px;
    gap: 30px;
  }

  .hero-text-side {
    text-align: center;
  }

  .hero-text-side h1 {
    font-size: 3rem;
  }

  .hero-text-side p {
    font-size: 1rem;
  }

  .hero-swiper-container {
    height: 350px; /* Much smaller on mobile */
    border-radius: 20px;
    margin: 0;
  }

  .ai-window { width: 320px; right: -15px; }
  .about-grid { grid-template-columns: 1fr; }
}
