/* Basic Reset */
body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden; /* Avoid horizontal overflow */
  font-family: Arial, sans-serif;
}

/* Full-Screen Video Styling */
.video-background-wrapper {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  overflow: hidden; /* Prevent video from overflowing */
  z-index: -1; /* Ensure the video stays behind content */
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the video covers the entire background */
}

/* Overlay Content */
.content-container {
  position: relative;
  z-index: 1; /* Ensures content is above the video */
  text-align: center;
  padding: 20px;
  color: white;
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

h1 {
  font-size: 3rem;
  margin: 20px 0;
}

p {
  font-size: 1.2rem;
}

/* Optional: Make sure content does not overflow on small screens */
@media screen and (max-width: 768px) {
  .overlay-text {
    font-size: 1.5rem; /* Smaller font on smaller screens */
  }

  h1 {
    font-size: 2.5rem;
  }

  p {
    font-size: 1rem;
  }
}

/* Scoped styles for button container */
.button-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px;
}

/* Scoped styles for buttons */
.button-container .btn {
  display: flex;
  align-items: center;
  padding: 12px 25px;
  font-size: 1em;
  font-family: Arial, sans-serif;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Scoped icon styling within buttons */
.button-container .btn i {
  margin-right: 10px;
  font-size: 1.2em;
}

/* Glossy effect using gradient within buttons */
.button-container .btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  opacity: 0.5;
  border-radius: inherit;
  pointer-events: none;
}

/* Login Button Styling */
.button-container .btn-login {
  background: linear-gradient(145deg, #0095ff, #0073e6);
}

.button-container .btn-login:hover {
  background: linear-gradient(145deg, #0073e6, #005bb5);
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.4);
}

/* Register Button Styling */
.button-container .btn-register {
  background: linear-gradient(145deg, #ff5555, #cc0000);
}

.button-container .btn-register:hover {
  background: linear-gradient(145deg, #cc0000, #a30000);
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.4);
}

/* Feature Block Styling */
.elon-stocks {
  display: flex;
  gap: 20px;
  padding: 20px;
  background-color: #f4f6f8;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  justify-content: space-between;
}

.elon-stocks ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 45%; /* To make it look balanced */
}

.elon-stocks li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1rem;
  color: #333;
}

.elon-stocks img {
  width: 24px; /* Adjust size as needed */
  height: 24px;
  margin-right: 10px;
  border-radius: 50%;
}

/* Centered Heading Styling */
h1 {
  text-align: center;
  font-size: 2.5em;
  font-family: Arial, sans-serif;
  color: #333;
  text-transform: uppercase;
  margin-top: 20px;
  margin-bottom: 40px;
  position: relative;
  background: linear-gradient(145deg, #f1f1f1, #e0e0e0);
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.investment-plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  padding: 20px;
}

.plan {
  border: 1px solid #e0e0e0;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  background-color: #f1f1f1;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.plan:hover {
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
  transform: translateY(-5px);
}

.plan img {
  width: 40px;
  height: auto;
  position: absolute;
  top: 15px;
  left: 15px;
}

.plan h3 {
  margin-bottom: 15px;
  color: #333;
  font-size: 1.3em;
}

.plan p {
  margin: 5px 0;
  color: #555;
  font-size: 0.95em;
}

.plan a {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  color: #fff;
  background: linear-gradient(145deg, #cc0000, #a30000);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.plan a:hover {
  background: linear-gradient(145deg, #a30000, #800000);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Style the Google Translate dropdown */
.goog-te-combo {
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background-color: #f8f8f8;
  color: #333;
  font-size: 14px;
}

/* Hide the Google branding */
.goog-logo-link {
  display: none !important;
}

.goog-te-gadget {
  color: transparent !important;
}

/* Style the translation banner */
.skiptranslate iframe {
  display: none !important;
}

/* Smartsupp Chat Widget Styling */
.smartsupp-widget-container {
  --tesla-red: #cc0000;
  --tesla-dark: #1d1d1d;
  --tesla-light: #f5f5f5;
  --tesla-accent: #4285f4;
}

/* Base widget styling */
#smartsupp-container .ss-widget {
  border-radius: 12px !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.3s ease !important;
}

/* Widget when closed */
#smartsupp-container .ss-widget-iframe {
  border-radius: 12px !important;
  border: none !important;
}

/* Chat bubble/button */
#smartsupp-container .ss-widget-button {
  background-color: var(--tesla-red) !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3) !important;
  transition: all 0.3s ease !important;
}

#smartsupp-container .ss-widget-button:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 6px 16px rgba(204, 0, 0, 0.4) !important;
}

/* Notification badge */
#smartsupp-container .ss-widget-notification {
  background-color: var(--tesla-accent) !important;
  color: white !important;
  font-weight: bold !important;
}

/* Header styling */
#smartsupp-container .ss-widget-header {
  background: linear-gradient(145deg, var(--tesla-dark), #2a2a2a) !important;
  color: white !important;
  border-radius: 12px 12px 0 0 !important;
  padding: 15px 20px !important;
}

/* Message bubbles */
#smartsupp-container .ss-widget-message.ss-widget-message-agent {
  background-color: #f1f1f1 !important;
  border-radius: 18px 18px 18px 4px !important;
}

#smartsupp-container .ss-widget-message.ss-widget-message-client {
  background-color: var(--tesla-red) !important;
  color: white !important;
  border-radius: 18px 18px 4px 18px !important;
}

/* Input area */
#smartsupp-container .ss-widget-input {
  border-top: 1px solid #e0e0e0 !important;
  padding: 15px !important;
  border-radius: 0 0 12px 12px !important;
}

#smartsupp-container .ss-widget-input-text {
  border-radius: 20px !important;
  padding: 12px 20px !important;
  border: 1px solid #ddd !important;
}

/* Send button */
#smartsupp-container .ss-widget-send {
  background-color: var(--tesla-red) !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
}

/* Typing indicator */
#smartsupp-container .ss-widget-typing-indicator span {
  background-color: var(--tesla-red) !important;
}

/* Pre-chat form */
#smartsupp-container .ss-widget-prechat {
  background-color: white !important;
  border-radius: 12px !important;
}

#smartsupp-container .ss-widget-prechat-input {
  border-radius: 8px !important;
  border: 1px solid #ddd !important;
  padding: 12px 15px !important;
}

#smartsupp-container .ss-widget-prechat-submit {
  background-color: var(--tesla-red) !important;
  border-radius: 8px !important;
  padding: 12px 25px !important;
  font-weight: bold !important;
  transition: all 0.3s ease !important;
}

#smartsupp-container .ss-widget-prechat-submit:hover {
  background-color: #b30000 !important;
  transform: translateY(-2px) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #smartsupp-container .ss-widget {
    width: 90% !important;
    max-width: 400px !important;
    right: 20px !important;
    bottom: 20px !important;
  }

  #smartsupp-container .ss-widget-button {
    width: 50px !important;
    height: 50px !important;
    right: 15px !important;
    bottom: 15px !important;
  }
}

/* Animation for new messages */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

#smartsupp-container .ss-widget-new-message {
  animation: pulse 0.5s ease !important;
}

/* Enhanced Google Translate Widget Styling */
#google_translate_element {
  position: relative;
  z-index: 10;
}

.goog-te-combo {
  padding: 10px 15px;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  background-color: white;
  color: var(--tesla-dark);
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%231e1e1e' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  min-width: 140px;
}

.goog-te-combo:hover {
  border-color: var(--tesla-red);
  box-shadow: var(--shadow-md);
}

.goog-te-combo:focus {
  outline: none;
  border-color: var(--tesla-accent);
  box-shadow: 0 0 0 3px rgba(62, 106, 225, 0.2);
}

/* Hide Google branding and banner */
.goog-te-banner-frame.skiptranslate,
.goog-logo-link,
.goog-te-gadget-icon {
  display: none !important;
}

.goog-te-gadget {
  color: transparent !important;
  font-size: 0 !important;
}

/* Language dropdown styling */
.goog-te-menu-value {
  display: none !important;
}

.goog-te-menu2 {
  max-width: 300px !important;
  font-family: "Montserrat", sans-serif !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-lg) !important;
  border: none !important;
}

.goog-te-menu2-item div,
.goog-te-menu2-item-selected div {
  padding: 10px 15px !important;
  font-size: 14px !important;
}

.goog-te-menu2-item:hover {
  background-color: #f5f5f5 !important;
}

.goog-te-menu2-item-selected {
  background-color: #e8f0fe !important;
  color: var(--tesla-accent) !important;
}

/* Main content styling */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  min-height: 60vh;
}

h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--tesla-dark);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--tesla-red);
  border-radius: 2px;
}

p {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  line-height: 1.8;
}

/* Floating language selector alternative */
.floating-language-selector {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.language-btn {
  background-color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--tesla-dark);
}

.language-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.language-btn.active {
  background-color: var(--tesla-red);
  color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  nav ul {
    gap: 1rem;
  }

  .goog-te-combo {
    min-width: 120px;
  }

  .floating-language-selector {
    bottom: 20px;
    right: 20px;
  }
}
