/* Vidhilab  - Home Page Styles */

/* Hero Section */
.hero-section {
  background: linear-gradient(
      135deg,
      rgba(26, 60, 108, 0.95) 0%,
      rgba(0, 166, 124, 0.9) 100%
    ),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.1"><polygon fill="%23ffffff" points="0,1000 1000,0 1000,1000"/></svg>');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--color-white);
  position: relative;
  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 100 100" opacity="0.05"><circle cx="25" cy="25" r="2" fill="%23ffffff"/><circle cx="75" cy="75" r="2" fill="%23ffffff"/><circle cx="75" cy="25" r="1" fill="%23ffffff"/><circle cx="25" cy="75" r="1" fill="%23ffffff"/></svg>');
  background-size: 100px 100px;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  }
}

.hero-badge i {
  margin-right: 0.5rem;
  font-size: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-actions .btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: var(--radius-xl);
  min-width: 180px;
  transition: all var(--transition-normal);
}

.hero-actions .btn-primary {
  background: var(--color-white);
  color: var(--brand-primary);
  border: 2px solid var(--color-white);
}

.hero-actions .btn-primary:hover {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-actions .btn-outline-dark {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--color-white);
  background: transparent;
}

.hero-actions .btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  color: var(--color-white);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label1 {
  font-size: 1.575rem;
  color: var(--color-white);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 600px;
}

.visual-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  max-width: 400px;
  width: 100%;
  animation: float-card 6s ease-in-out infinite;
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

.chat-preview {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.chat-header {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-secondary) 100%
  );
  color: var(--color-white);
}

.chat-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  font-size: 1.2rem;
}

.chat-info .chat-name {
  font-weight: var(--font-weight-semibold);
  font-size: 0.95rem;
  margin-bottom: 0.125rem;
}

.chat-info .chat-status {
  font-size: 0.8rem;
  opacity: 0.8;
}

.chat-messages {
  padding: 1rem;
  background: var(--color-gray-50);
  min-height: 200px;
}

.message {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
}

.message-content {
  background: var(--color-white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  line-height: 1.4;
  max-width: 80%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: message-appear 0.5s ease-out;
}

@keyframes message-appear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bot-message .message-content {
  background: var(--brand-primary);
  color: var(--color-white);
}

.user-message {
  justify-content: flex-end;
}

.user-message .message-content {
  background: var(--color-gray-200);
  color: var(--color-gray-800);
}

.typing-indicator {
  padding: 0.5rem 1rem;
  background: var(--color-white);
  border-top: 1px solid var(--color-gray-200);
  display: flex;
  align-items: center;
}

.typing-dots {
  display: flex;
  gap: 0.25rem;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--color-gray-400);
  border-radius: var(--radius-full);
  animation: typing 1.5s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%,
  60%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  30% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-white);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.icon-1 {
  top: 10%;
  left: 10%;
  animation: float-icon1 8s ease-in-out infinite;
}

.icon-2 {
  top: 20%;
  right: 15%;
  animation: float-icon2 10s ease-in-out infinite;
}

.icon-3 {
  bottom: 30%;
  left: 5%;
  animation: float-icon3 12s ease-in-out infinite;
}

.icon-4 {
  bottom: 10%;
  right: 10%;
  animation: float-icon4 9s ease-in-out infinite;
}

@keyframes float-icon1 {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

@keyframes float-icon2 {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(-15deg);
  }
}

@keyframes float-icon3 {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-25px) rotate(12deg);
  }
}

@keyframes float-icon4 {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(-8deg);
  }
}

/* Features Section */
.features-section {
  padding: 6rem 0;
  background: var(--color-white);
  position: relative;
}

.features-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(
    180deg,
    var(--color-gray-50) 0%,
    transparent 100%
  );
  z-index: 1;
}

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

.section-badge {
  display: inline-flex;
  align-items: center;
  background: var(--brand-light);
  color: var(--brand-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  margin-bottom: 1rem;
}

.section-badge i {
  margin-right: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
  color: var(--color-gray-800);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-gray-600);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all var(--transition-normal);
  border: 1px solid var(--color-gray-100);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--brand-primary);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-secondary) 100%
  );
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-white);
  margin: 0 auto 1.5rem;
  transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1rem;
  color: var(--color-gray-800);
}

.feature-description {
  font-size: 0.95rem;
  color: var(--color-gray-600);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Plans Section */
.plans-section {
  padding: 6rem 0;
  background: linear-gradient(
    135deg,
    rgba(26, 60, 108, 0.05) 0%,
    rgba(0, 166, 124, 0.05) 100%
  );
  position: relative;
  overflow: hidden;
}

.plans-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 100 100" opacity="0.03"><circle cx="20" cy="20" r="2" fill="%2300A67C"/><circle cx="80" cy="80" r="2" fill="%231a3c6c"/><circle cx="80" cy="20" r="1" fill="%2300A67C"/><circle cx="20" cy="80" r="1" fill="%231a3c6c"/></svg>');
  background-size: 100px 100px;
  animation: float 30s ease-in-out infinite;
}

.plans-content {
  position: relative;
  z-index: 2;
  background: var(--color-white);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-2xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 166, 124, 0.1);
  transition: all var(--transition-normal);
}

.plans-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.plans-action {
  margin-top: 2rem;
}

.plans-btn {
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-secondary) 100%
  );
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 25px rgba(0, 166, 124, 0.3);
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  color: var(--color-white);
}

.plans-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 166, 124, 0.4);
  color: var(--color-white);
}

.plans-btn:focus {
  color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(0, 166, 124, 0.2);
}

.plans-btn i {
  transition: transform var(--transition-fast);
}

.plans-btn:hover i {
  transform: translateX(5px);
}

.plans-note {
  font-size: 0.95rem;
  color: var(--color-gray-600);
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--accent-blue) 100%
  );
  color: var(--color-white);
  position: relative;
}

.cta-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  padding: 3rem;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.cta-content {
  flex: 1;
  min-width: 300px;
}

.cta-title {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-actions .btn {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  min-width: 160px;
}

.cta-visual {
  flex: 0 0 auto;
}

.cta-icon {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  animation: pulse-cta 3s ease-in-out infinite;
}

@keyframes pulse-cta {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.4);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    height: 500px;
    margin-top: 3rem;
  }

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

  .cta-card {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: auto;
  }

  .hero-stats {
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .visual-card {
    max-width: 100%;
  }

  .floating-elements {
    display: none;
  }

  .features-section {
    padding: 4rem 0;
  }

  .plans-section {
    padding: 4rem 0;
  }

  .plans-content {
    padding: 2rem 1.5rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .cta-section {
    padding: 3rem 0;
  }

  .cta-card {
    padding: 2rem;
  }

  .cta-title {
    font-size: 1.5rem;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-visual {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

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

  .hero-visual {
    height: 400px;
  }

  .chat-messages {
    min-height: 150px;
  }

  .plans-section {
    padding: 3rem 0;
  }

  .plans-content {
    padding: 2rem 1.25rem;
  }

  .plans-btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }

  .plans-note {
    font-size: 0.875rem;
    margin-top: 1.25rem;
  }
}

/* Alert Messages Styling */
.alert-overlay {
  animation: slideInRight 0.3s ease-out;
}

.alert-overlay .alert {
  border: none;
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-medium);
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.3s ease-out forwards;
  opacity: 0;
  transform: translateY(-20px);
}

.alert-overlay .alert:nth-child(1) {
  animation-delay: 0s;
}
.alert-overlay .alert:nth-child(2) {
  animation-delay: 0.1s;
}
.alert-overlay .alert:nth-child(3) {
  animation-delay: 0.2s;
}
.alert-overlay .alert:nth-child(4) {
  animation-delay: 0.3s;
}

.alert-overlay .alert-success {
  background: rgba(34, 197, 94, 0.9);
  color: white;
  border-left: 4px solid #16a34a;
}

.alert-overlay .alert-error,
.alert-overlay .alert-danger {
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border-left: 4px solid #dc2626;
}

.alert-overlay .alert-warning {
  background: rgba(245, 158, 11, 0.9);
  color: white;
  border-left: 4px solid #d97706;
}

.alert-overlay .alert-info {
  background: rgba(59, 130, 246, 0.9);
  color: white;
  border-left: 4px solid #2563eb;
}

.alert-overlay .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

.alert-overlay .btn-close:hover {
  opacity: 1;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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