/* VIKAS RABI Website - Modern CSS Styles */

:root {
  --primary-color: #2c5530;
  --secondary-color: #4a7c59;
  --accent-color: #7fb069;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

body {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

.container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

/* Header Styles */
.navbar {
  background: var(--bg-white) !important;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  padding: 15px 0;
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand img {
  height: 50px;
  width: auto;
  transition: all 0.3s ease;
}

.navbar-brand .logo-left,
.navbar-brand .logo-right {
  height: 45px;
  margin: 0 5px;
}

.navbar-brand .logo-left {
  margin-right: 10px;
}

.navbar-nav .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  margin: 0 10px;
  padding: 10px 15px !important;
  transition: all 0.3s ease;
  border-radius: 25px;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
  background-color: var(--bg-light);
}

.navbar-nav .nav-link.active {
  color: var(--bg-white) !important;
  background: var(--gradient-primary);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  margin-top: 80px; /* Account for fixed navbar */
  background-color: #f8f9fa; /* Fallback background */
}

/* Hero section overlay removed - using individual carousel item overlays instead */

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section.page-header {
  height: 40vh;
  min-height: 300px;
  max-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-section.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 85, 48, 0.6);
  z-index: 1;
}

.hero-section.page-header .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero-section.page-header .row {
  width: 100%;
  margin: 0;
}

.hero-section.page-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  margin-bottom: 1rem;
}

.hero-section.page-header p {
  font-size: 1.2rem;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  margin-bottom: 0;
}

#heroCarousel {
  height: 100%;
  width: 100%;
}

.carousel-inner {
  height: 100%;
}

.carousel-item {
  height: 70vh;
  min-height: 500px;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  position: relative;
  background-color: var(--secondary-color); /* Fallback color */
}

.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 85, 48, 0.5);
  z-index: 1;
}

.carousel-caption {
  z-index: 2;
  bottom: 50%;
  transform: translateY(50%);
  left: 10%;
  right: 10%;
  text-align: left;
}

.carousel-caption h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-custom {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.btn-custom:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

/* Important Notice */
.important-notice {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 20px 0;
  text-align: center;
  animation: pulse 2s infinite;
}

.important-notice h5 {
  font-weight: 700;
  margin-bottom: 10px;
}

/* Modal Styles */
.modal-content {
  border-radius: 20px;
  border: none;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  background: var(--gradient-primary);
  color: white;
  border-radius: 20px 20px 0 0;
  border-bottom: none;
}

.modal-body {
  padding: 30px;
}

/* Section Styles */
.section {
  padding: 80px 0;
}

.section.compact {
  padding: 50px 0;
}

.section.extra-compact {
  padding: 30px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* Card Styles */
.card-custom {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.card-custom:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card-custom .card-body {
  padding: 30px;
}

.card-custom .card-title {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.card-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 2rem;
}

/* About Section */
.about-section {
  background: var(--bg-light);
}

.about-content {
  display: flex;
  align-items: center;
  min-height: 400px;
}

.about-image {
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  width: 100%;
  height: auto;
}

/* Parallax Section */
.parallax-section {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 85, 48, 0.8);
}

.parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.parallax-content h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 50px 0 20px;
}

.footer h5 {
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.footer a {
  color: #bdc3c7;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 20px;
  margin-top: 30px;
  text-align: center;
  color: #95a5a6;
}

/* Ads Panel */
.ads-panel {
  position: fixed;
  bottom: 20px;
  right: -400px;
  width: 450px;
  height: 600px;
  background: white;
  border-radius: 15px 0 0 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 10000;
  overflow: visible;
}

.ads-panel.open {
  right: 0;
}

.ads-toggle {
  position: absolute;
  left: -50px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #28a745, #20c997) !important;
  color: white !important;
  border: none !important;
  width: 60px;
  height: 100px;
  border-radius: 15px 0 0 15px;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 999999 !important;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  outline: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.ads-toggle i {
  color: white !important;
  font-size: 1.3rem !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.ads-toggle:hover {
  background: linear-gradient(135deg, #218838, #1ea471) !important;
  left: -40px;
  transform: translateY(-50%) scale(1.08);
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.5) !important;
}

/* Ads panel content styling */
.ads-content {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ads-content h5 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1rem;
  font-weight: 600;
  flex-shrink: 0;
}

.nav-tabs {
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 15px;
  flex-shrink: 0;
}

.nav-tabs .nav-link {
  border: none;
  background: none;
  color: var(--text-light);
  font-weight: 500;
  padding: 8px 12px;
  font-size: 0.9rem;
  border-radius: 8px 8px 0 0;
  margin-right: 5px;
}

.nav-tabs .nav-link.active {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.nav-tabs .nav-link:hover:not(.active) {
  background: var(--bg-light);
  color: var(--primary-color);
}

.tab-content {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.tab-content .tab-pane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.tab-content .tab-pane.active {
  display: flex !important;
}

.tab-content img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.tab-content img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Image Modal Styles */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.image-modal.show {
  display: flex;
}

.image-modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 20001;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Hero carousel background images as CSS classes */
.carousel-item.slide-1 {
  background-image: url("../images/Slider/1.jpg") !important;
}

.carousel-item.slide-2 {
  background-image: url("../images/Slider/2.jpg") !important;
}

.carousel-item.slide-3 {
  background-image: url("../images/Slider/3.jpg") !important;
}

.carousel-item.slide-4 {
  background-image: url("../images/Slider/4.jpg") !important;
}

.ads-content {
  padding: 25px;
}

.ads-content h5 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.ads-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-light);
  padding: 5px;
}

.ads-close:hover {
  color: var(--primary-color);
}

.nav-tabs .nav-link {
  border: none;
  background: none;
  color: var(--text-light);
  font-weight: 500;
}

.nav-tabs .nav-link.active {
  background: var(--gradient-primary);
  color: white;
  border-radius: 10px;
}

.tab-content img {
  width: 100%;
  border-radius: 10px;
  margin-top: 15px;
}

/* Ads Carousel Styles */
.ads-carousel {
  position: relative;
  margin: 15px 0;
}

.ads-slide {
  display: none;
}

.ads-slide:first-child {
  display: block;
}

.ads-slide img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.carousel-controls {
  margin-top: 15px;
}

.carousel-controls .btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#adsIndicator {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .carousel-caption h1 {
    font-size: 2.5rem;
  }

  .carousel-caption p {
    font-size: 1.1rem;
  }

  .section {
    padding: 50px 0;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .ads-panel {
    width: 350px;
    right: -350px;
  }

  .hero-section.page-header {
    height: 35vh;
    min-height: 250px;
  }

  .hero-section.page-header h1 {
    font-size: 2.5rem;
  }

  .hero-section.page-header p {
    font-size: 1.1rem;
  }

  .parallax-section {
    background-attachment: scroll;
  }

  .parallax-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .carousel-caption {
    left: 5%;
    right: 5%;
  }

  .carousel-caption h1 {
    font-size: 2rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .hero-section.page-header {
    height: 30vh;
    min-height: 200px;
  }

  .hero-section.page-header h1 {
    font-size: 2rem;
  }

  .hero-section.page-header p {
    font-size: 1rem;
  }

  .navbar-brand img {
    height: 40px;
  }

  .ads-panel {
    width: 320px;
    right: -320px;
  }
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: var(--gradient-primary);
}

.shadow-custom {
  box-shadow: var(--shadow-md);
}

/* Alternative ads button - always visible */
#adsPanel {
  position: fixed !important;
  bottom: 20px !important;
  right: -440px !important;
  width: 450px !important;
  height: 600px !important;
  background: white !important;
  border-radius: 15px 0 0 15px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  z-index: 50000 !important;
  overflow: visible !important;
}

#adsPanel.open {
  right: 0 !important;
}

#adsPanel .ads-toggle {
  position: absolute !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 50001 !important;
  left: -55px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 65px !important;
  height: 110px !important;
  background: #28a745 !important;
  color: #ffffff !important;
  border: 3px solid #ffffff !important;
  border-radius: 18px 0 0 18px !important;
  font-size: 1.5rem !important;
  cursor: pointer !important;
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.5) !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: auto !important;
}

#adsPanel .ads-toggle:hover {
  background: #218838 !important;
  left: -45px !important;
  transform: translateY(-50%) scale(1.1) !important;
}

#adsPanel .ads-toggle i {
  color: #ffffff !important;
  font-size: 1.5rem !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7) !important;
}
