/* Modern Design CSS for Siddha Formulation */

/* CSS Variables */
:root {
  --primary-color: #2c5530;
  --secondary-color: #8fbc8f;
  --accent-color: #ffd700;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --text-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #1a1a1a;
  --border-color: #e5e5e5;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
  --gradient-primary: linear-gradient(135deg, #2c5530 0%, #8fbc8f 100%);
  --gradient-accent: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  line-height: 1.2;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  display: flex;
  gap: 8px;
}

.herb-leaf {
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 50% 0 50% 0;
  animation: leafFloat 1.5s ease-in-out infinite;
}

.herb-leaf:nth-child(2) {
  animation-delay: 0.2s;
}

.herb-leaf:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes leafFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-light);
}

.navbar-brand {
  text-decoration: none;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-color);
  line-height: 1;
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 400;
}

.navbar-nav {
  gap: 2rem;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.search-trigger {
  font-size: 1.2rem;
  color: var(--primary-color) !important;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 0.1rem;
  margin-right: 0.1rem;
  display: none;
  position: absolute;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 120vh;
  display: flex;
  align-items: center;
  background: var(--bg-light);
  overflow: hidden;
}

.hero-background {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 80%,
      rgba(44, 85, 48, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(143, 188, 143, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(255, 215, 0, 0.05) 0%,
      transparent 50%
    );
  animation: patternFloat 20s ease-in-out infinite;
}

@keyframes patternFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(1deg);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: titleReveal 0.8s ease-out forwards;
}

.title-line:nth-child(2) {
  animation-delay: 0.2s;
}

.title-line:nth-child(3) {
  animation-delay: 0.4s;
}

.highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes titleReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.btn {
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: var(--text-white);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 12rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 1s forwards;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: "Playfair Display", serif;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

.hero-visual {
  position: relative;
  z-index: 2;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-herb {
  position: absolute;
  width: 60px;
  height: 60px;
  opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

.floating-herb:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-herb:nth-child(2) {
  top: 60%;
  right: 20%;
  animation-delay: 2s;
}

.floating-herb:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}

/* @keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
} */

.hero-image {
  position: relative;
  text-align: center;
  padding: 1rem;
  overflow: hidden;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  animation: floatImage 5s ease-in-out infinite;
}

.hero-image img:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Floating animation */
@keyframes floatImage {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border: 2px solid var(--primary-color);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) rotate(45deg);
  }
  40% {
    transform: translateY(-10px) rotate(45deg);
  }
  60% {
    transform: translateY(-5px) rotate(45deg);
  }
}

/* Section Styles */
.section-badge {
  display: inline-block;
  background: var(--gradient-accent);
  color: var(--text-dark);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 3rem;
}

.section-text {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* About Section */
.about-section {
  padding: 50px 0;
  background: var(--text-white);
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.feature-item:hover {
  background: var(--bg-light);
  transform: translateX(10px);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.feature-content p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

.about-visual {
  position: relative;
}

.image-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  height: 400px;
}

.grid-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.grid-item:hover {
  transform: scale(1.05);
}

.grid-item.large {
  grid-row: span 2;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Products Section */
.products-section {
  padding: 100px 0;
  background: var(--bg-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.product-card {
  background: var(--text-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.product-image {
  height: 250px;
  overflow: hidden;
  position: relative; /* Changed from absolute */
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  height: 100%;
  width: auto;
  object-fit: cover;
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 85, 48, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-content {
  padding: 1.5rem;
}

.product-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.product-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.product-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--bg-light);
  color: var(--primary-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Research Section */
.research-section {
  padding: 50px 0;
  background: var(--text-white);
}

.research-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-light);
}

.stat-icon {
  width: 70px;
  height: 60px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.stat-info p {
  color: var(--text-light);
  margin: 0;
  font-size: 0.9rem;
}

.research-visual {
  position: relative;
  height: 350px;
}

.lab-scene {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lab-equipment {
  position: relative;
  width: 200px;
  height: 200px;
}

.equipment-item {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 1.5rem;
  animation: equipmentFloat 4s ease-in-out infinite;
}

.equipment-item:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
}

.equipment-item:nth-child(2) {
  bottom: 0;
  left: 0;
  animation-delay: 1.5s;
}

.equipment-item:nth-child(3) {
  bottom: 0;
  right: 0;
  animation-delay: 3s;
}

@keyframes equipmentFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.1);
  }
}

/* Contact Section */
.contact-section {
  padding: 50px 0;
  background: var(--gradient-primary);
  color: var(--text-white);
}

.contact-section .section-title {
  color: var(--text-white);
}

.contact-section .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.contact-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-section .btn-primary {
  background: var(--text-white);
  color: var(--primary-color);
}

.contact-section .btn-outline-primary {
  border-color: var(--text-white);
  color: var(--text-white);
}

.contact-section .btn-outline-primary:hover {
  background: var(--text-white);
  color: var(--primary-color);
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 20px 0 5px;
}

.footer-brand .logo-container {
  margin-bottom: 1rem;
}

.footer-brand .brand-name {
  color: var(--text-white);
}

.footer-brand .brand-tagline {
  color: rgba(255, 255, 255, 0.7);
}

.footer-description {
  color: rgba(166, 145, 145, 0.8);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.footer h5 {
  color: var(--text-white);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--accent-color);
  color: var(--text-dark);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright,
.made-with {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.made-with i {
  color: #ff6b6b;
  margin: 0 4px;
}

/* Search Modal */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
}

.search-content {
  background: var(--text-white);
  border-radius: var(--border-radius);
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  transform: translateY(-50px);
  transition: var(--transition);
}

.search-modal.active .search-content {
  transform: translateY(0);
}

.search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.search-header h3 {
  margin: 0;
  color: var(--text-dark);
}

.search-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.search-close:hover {
  color: var(--text-dark);
}

.search-form {
  display: flex;
  gap: 1rem;
}

.search-input {
  flex: 1;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.search-btn {
  padding: 1rem 1.5rem;
  background: var(--gradient-primary);
  color: var(--text-white);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

/* Responsive Design */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .image-grid {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .navbar-nav {
    gap: 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .about-features {
    gap: 1rem;
  }

  .feature-item {
    padding: 0.8rem;
  }

  .research-stats {
    gap: 1rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .contact-options {
    flex-direction: column;
    align-items: center;
  }

  .footer {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .image-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .grid-item.large {
    grid-row: auto;
  }

  .search-content {
    padding: 1.5rem;
    margin: 1rem;
  }

  .search-form {
    flex-direction: column;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 1rem;
}
.mb-4 {
  margin-bottom: 1.5rem;
}
.mb-5 {
  margin-bottom: 3rem;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 1rem;
}
.mt-4 {
  margin-top: 1.5rem;
}
.mt-5 {
  margin-top: 3rem;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus Styles */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .search-modal,
  .preloader {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }
}
