:root {
  /* Dark theme - Modern & Sleek */
  --primary-color: #2d3436;
  --secondary-color: #00b894; /* Main brand color - Modern teal */
  --accent-color: #0984e3; /* Secondary accent - Modern blue */
  --text-primary: #ffffff; /* Main text color */
  --text-secondary: rgba(255, 255, 255, 0.85); /* Secondary text */
  --text-muted: rgba(255, 255, 255, 0.6); /* Muted text */
  --bg-color: #1e272e;
  --bg-gradient: linear-gradient(135deg, #1e272e 0%, #2d3436 100%);
  --card-gradient: linear-gradient(
    145deg,
    rgba(46, 51, 64, 0.8),
    rgba(30, 39, 46, 0.9)
  );
  --text-color: #dfe6e9;
  --card-bg: rgba(255, 255, 255, 0.03);
  --border-color: rgba(0, 184, 148, 0.2);
  --hover-bg: rgba(0, 184, 148, 0.1);
  --navbar-bg: rgba(26, 26, 26, 0.95);
  --footer-bg: #1a1a1a;
  --input-bg: rgba(255, 255, 255, 0.03);
  --input-text: #ffffff;
  --placeholder-color: rgba(255, 255, 255, 0.5);
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  --success-color: #2ecc71;
  --glass-effect: rgba(255, 255, 255, 0.03);
}

/* Light theme - Clean & Modern */
[data-theme="light"] {
  --primary-color: #2d3436;
  --secondary-color: #00b894; /* Keep brand color consistent */
  --accent-color: #0984e3; /* Keep accent color consistent */
  --text-primary: #2d3436; /* Main text color */
  --text-secondary: rgba(45, 52, 54, 0.85); /* Secondary text */
  --text-muted: rgba(45, 52, 54, 0.6); /* Muted text */
  --bg-color: #f5f6fa;
  --bg-gradient: linear-gradient(135deg, #f5f6fa 0%, #ffffff 100%);
  --card-gradient: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.95),
    rgba(245, 246, 250, 0.95)
  );
  --text-color: #2d3436;
  --card-bg: rgba(255, 255, 255, 0.9);
  --border-color: rgba(0, 184, 148, 0.2);
  --hover-bg: rgba(0, 184, 148, 0.05);
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --footer-bg: #ffffff;
  --input-bg: rgba(255, 255, 255, 0.9);
  --input-text: #2c3e50;
  --placeholder-color: rgba(44, 62, 80, 0.5);
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  --success-color: #27ae60;
  --glass-effect: rgba(255, 255, 255, 0.8);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Navbar Styles */
.navbar {
  background: var(--navbar-bg);
  backdrop-filter: blur(15px);
  padding: 1rem 0;
  box-shadow: var(--box-shadow);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
  color: var(--secondary-color) !important;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.navbar-logo {
  height: 45px;
  width: auto;
  vertical-align: middle;
  transition: filter 0.3s ease;
}

/* Only apply filter in dark mode */
[data-theme="dark"] .navbar-logo {
  filter: brightness(0) saturate(100%) invert(80%) sepia(19%) saturate(1115%)
    hue-rotate(114deg) brightness(89%) contrast(87%);
}

/* Remove filter for light mode */
[data-theme="light"] .navbar-logo {
  filter: none;
}

.nav-link {
  color: var(--text-primary) !important;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

.navbar .btn-warning {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--dark-bg);
  padding: 0.5rem 1.5rem;
  transition: transform 0.3s ease;
}

.navbar .btn-warning:hover {
  transform: translateY(-2px);
}

/* Modern Navbar Toggle Button Styles */
.navbar-toggler {
  padding: 0.5rem;
  margin-right: 0.5rem;
  border: none !important;
  background: var(--glass-effect);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.25);
  outline: none;
}

/* Custom hamburger icon */
.navbar-toggler-icon {
  position: relative;
  width: 24px;
  height: 2px;
  background-color: var(--secondary-color) !important;
  transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--secondary-color);
  transition: all 0.3s ease;
  left: 0;
}

.navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler-icon::after {
  bottom: -8px;
}

/* Active state animation */
.navbar-toggler[aria-expanded="true"] {
  background: var(--hover-bg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-color: transparent !important;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* Hover effect */
.navbar-toggler:hover {
  background: var(--hover-bg);
  transform: translateY(-2px);
}

/* Mobile menu padding */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--glass-effect);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
  }

  .navbar-nav {
    padding: 0.5rem;
  }

  .nav-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-item:last-child {
    border-bottom: none;
  }
}

/* Update navbar colors for light theme */
[data-theme="light"] .navbar-nav .nav-link {
  color: var(--text-primary) !important;
}

[data-theme="light"] .navbar-nav .nav-link:hover {
  color: var(--secondary-color) !important;
}

/* Ensure navbar is visible in both themes */
[data-theme="light"] .navbar {
  background: var(--navbar-bg);
}

[data-theme="light"] .navbar-toggler {
  border-color: var(--text-color) !important;
}

[data-theme="light"] .navbar-toggler-icon::before,
[data-theme="light"] .navbar-toggler-icon::after,
[data-theme="light"] .navbar-toggler-icon {
  background-color: var(--text-color);
}

/* Enhanced Hero Section Styles */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  animation: slideShow 24s infinite;
}

.hero-slide:nth-child(1) {
  animation-delay: 0s;
}

.hero-slide:nth-child(2) {
  animation-delay: 8s;
}

.hero-slide:nth-child(3) {
  animation-delay: 16s;
}

@keyframes slideShow {
  0%,
  25%,
  100% {
    opacity: 0;
    transform: scale(1.1);
  }
  4%,
  21% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(26, 35, 126, 0.9),
    rgba(0, 0, 0, 0.7)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    45deg,
    var(--secondary-color),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  color: #ffffff !important;
  opacity: 0.9;
  animation: fadeInUp 1s ease 0.2s;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2rem auto 3rem;
  max-width: 800px;
  padding: 0 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.4s;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #ffffff !important;
  min-width: 180px;
  padding: 0.5rem;
}

.feature-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
  min-width: 24px;
}

.feature-item span {
  color: #ffffff !important;
  opacity: 0.9;
}

.hero-cta {
  margin-top: 2rem;
}

.auth-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem auto;
}

.cta-button {
  text-decoration: none;
  min-width: 160px;
  padding: 1rem 2.5rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

/* Sign In Button - Transparent with border */
.cta-button.signin {
  background: transparent;
  border: 2px solid var(--secondary-color);
  color: #ffffff;
}

.cta-button.signin:hover {
  background: var(--secondary-color);
  color: var(--bg-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 184, 148, 0.3);
}

/* Sign Up Button - Filled background */
.cta-button.signup {
  background: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  color: var(--bg-color);
}

.cta-button.signup:hover {
  background: transparent;
  color: #ffffff;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 184, 148, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .auth-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    gap: 1rem;
  }

  .cta-button.signin,
  .cta-button.signup {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-features {
    gap: 1rem;
    padding: 0 0.5rem;
  }
}

/* Update CTA Button Styles */
.cta-button {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 184, 148, 0.3);
  background: linear-gradient(
    45deg,
    var(--secondary-color),
    var(--accent-color)
  );
  border: none;
  color: #ffffff;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 184, 148, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding: 0 1rem;
  }

  .cta-button {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

/* Add hover state transition */
.cta-button {
  transition: all 0.3s ease, background-position 0.5s ease;
  background-size: 200% auto;
}

.hero-cta .cta-button:not(.secondary) {
  background-image: linear-gradient(
    45deg,
    var(--secondary-color) 0%,
    var(--accent-color) 51%,
    var(--secondary-color) 100%
  );
  background-size: 200% auto;
}

.hero-cta .cta-button:not(.secondary):hover {
  background-position: right center;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  animation: fadeInUp 1s ease 0.8s;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color) !important;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #ffffff !important;
  opacity: 0.9;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-stats {
    flex-direction: column;
    gap: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }
}

/* Animation for stats */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-item {
  animation: countUp 1s ease forwards;
}

/* Section Styles */
section {
  padding: 5rem 5%;
  width: 100%;
  overflow-x: hidden;
}

h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--secondary-color);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.about-stats {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 2rem;
  margin-top: 2rem;
}

.stat-box {
  background: var(--card-gradient);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  box-shadow: var(--card-shadow);
  animation: statFadeIn 0.5s ease forwards;
}

.stat-box:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--secondary-color);
  box-shadow: 0 20px 40px rgba(0, 184, 148, 0.2);
}

.stat-box h3 {
  color: var(--secondary-color);
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

.stat-box p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  opacity: 0.8;
  margin: 0;
}

/* How It Works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step {
  text-align: center;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-10px);
}

.step i {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* Statistics Section */
.charts-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.chart {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 10px;
}

.live-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
}

/* Testimonials */
.testimonials {
  padding: 5rem 0;
  background: var(--bg-gradient);
}

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem;
}

.testimonial {
  background: var(--card-gradient);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
}

.testimonial:hover {
  transform: translateY(-10px);
  border-color: var(--secondary-color);
}

.testimonial-img {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--secondary-color);
  position: relative;
}

.testimonial-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.testimonial:hover .testimonial-img img {
  transform: scale(1.1);
}

.testimonial p {
  color: var(--text-secondary);
  font-style: italic;
  margin: 1.5rem 0;
  opacity: 0.9;
  line-height: 1.6;
}

.testimonial-info {
  margin-top: 1.5rem;
}

.testimonial-info h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.testimonial-info span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.rating {
  margin-top: 1rem;
  color: var(--secondary-color);
}

.rating i {
  margin: 0 2px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .testimonials-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonials-container {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .testimonial {
    padding: 1.5rem;
  }

  .testimonial-img {
    width: 100px;
    height: 100px;
  }
}

/* Security Section */
.security-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature {
  text-align: center;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 10px;
}

.feature i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background: var(--footer-bg);
  padding: 3rem 10%;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.footer-section a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-content,
  .steps,
  .charts-container,
  .testimonials-container,
  .security-features,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2rem;
    padding: 0 1rem;
  }

  .hero p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .about-stats {
    padding: 1rem;
  }

  .stat-box {
    margin-bottom: 1rem;
    padding: 1.2rem;
  }

  .stat-box h3 {
    font-size: 2rem;
  }

  .stat-box p {
    font-size: 1rem;
  }

  .charts-container {
    width: 100%;
    overflow-x: hidden;
  }

  .chart {
    width: 100%;
    height: 300px;
  }

  .testimonial {
    padding: 1rem;
  }

  footer {
    padding: 2rem 1rem;
  }

  .footer-section {
    text-align: center;
  }
}

/* Add styles for extra small screens */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 2rem;
  }

  .step,
  .feature {
    padding: 1rem;
  }
}

/* Trading Widgets Styles */
.widgets-container {
  display: grid;
  gap: 2rem;
  width: 100%;
  margin-top: 2rem;
}

.trading-widgets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.tradingview-widget-container {
  width: 100%;
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
}

/* Responsive adjustments for widgets */
@media (max-width: 1024px) {
  .trading-widgets {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .widgets-container {
    gap: 1rem;
  }

  .tradingview-widget-container {
    height: 350px;
  }
}

/* Enhanced About Section Styles */
.about {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.section-title {
  color: var(--secondary-color);
  font-size: 2.8rem;
  margin-bottom: 2rem;
  position: relative;
  background: linear-gradient(
    45deg,
    var(--secondary-color),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    45deg,
    var(--secondary-color),
    var(--accent-color)
  );
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.about-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.about-image-container {
  position: relative;
  height: 500px; /* Increased height */
  margin: 2rem 0;
  padding: 0;
}

.about-image-grid {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Update image positions and sizes */
.main-image {
  width: 75%;
  height: 350px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: var(--box-shadow);
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  transition: transform 0.5s ease;
}

.overlay-image-1 {
  width: 250px;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: var(--box-shadow);
  position: absolute;
  left: 0;
  top: 100px;
  z-index: 2;
  transition: transform 0.5s ease;
}

.overlay-image-2 {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: var(--box-shadow);
  position: absolute;
  left: 50px;
  bottom: 20px;
  z-index: 3;
  transition: transform 0.5s ease;
}

/* Enhanced hover effects */
.about-image-container:hover .main-image {
  transform: translateX(-30px) rotateY(-5deg);
}

.about-image-container:hover .overlay-image-1 {
  transform: translateX(20px) translateY(-20px) rotateY(10deg);
}

.about-image-container:hover .overlay-image-2 {
  transform: translateX(40px) translateY(-20px) rotateY(15deg);
}

/* Why Choose Us section spacing */
.why-choose-us {
  margin-top: 4rem;
  padding-top: 2rem;
  position: relative;
  z-index: 2;
}

/* Mobile Responsive Styles */
@media (max-width: 991px) {
  .about-image-container {
    height: 450px;
    margin-bottom: 3rem;
  }

  .main-image {
    width: 80%;
    height: 300px;
  }

  .overlay-image-1 {
    width: 200px;
    height: 160px;
    top: 80px;
  }

  .overlay-image-2 {
    width: 180px;
    height: 180px;
    bottom: 40px;
    left: 40px;
  }
}

@media (max-width: 768px) {
  .about {
    padding: 4rem 0 2rem; /* Reduced bottom padding */
  }

  .about-image-container {
    height: 450px;
    margin: 2rem auto 2rem; /* Reduced bottom margin from 3rem to 2rem */
    max-width: 320px;
    position: relative;
  }

  .about-image-grid {
    height: 100%;
    position: relative;
    margin-bottom: 0;
  }

  /* Main image positioning */
  .main-image {
    width: 100%;
    height: 280px;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    transform: none;
    border-radius: 15px;
  }

  /* Smaller images positioning */
  .overlay-image-1 {
    width: 160px;
    height: 140px;
    position: absolute;
    left: -20px;
    top: auto;
    bottom: 100px;
    z-index: 2;
  }

  .overlay-image-2 {
    width: 160px;
    height: 160px;
    position: absolute;
    right: -20px;
    left: auto;
    bottom: 40px;
    z-index: 3;
  }

  /* Mobile hover effects */
  .about-image-container:hover .main-image {
    transform: translateY(-10px);
  }

  .about-image-container:hover .overlay-image-1 {
    transform: translate(10px, -10px);
  }

  .about-image-container:hover .overlay-image-2 {
    transform: translate(-10px, -10px);
  }

  /* Adjust spacing for Why Choose Us section */
  .why-choose-us {
    margin-top: 0; /* Removed top margin */
    padding-top: 0; /* Removed top padding */
    clear: both;
  }

  /* Adjust row spacing */
  .row.align-items-center {
    margin-bottom: 0 !important;
  }

  /* Ensure proper stacking */
  .col-lg-6 {
    margin-bottom: 0; /* Removed bottom margin */
  }
}

/* Additional fix for very small screens */
@media (max-width: 480px) {
  .about-image-container {
    height: 400px;
    max-width: 280px;
    margin-bottom: 1rem; /* Further reduced margin for smaller screens */
  }

  .why-choose-us {
    margin-top: 0;
  }
}

/* Add shadow and border effects */
.main-image,
.overlay-image-1,
.overlay-image-2 {
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Why Choose Us Styles */
.choice-card {
  background: var(--card-gradient);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  box-shadow: var(--card-shadow);
  padding: 2.5rem 2rem; /* Increased padding */
}

.choice-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--secondary-color);
  box-shadow: 0 20px 40px rgba(0, 184, 148, 0.2);
}

.choice-card i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem; /* Increased margin */
}

.choice-card h4 {
  color: var(--text-primary);
  margin-bottom: 1.2rem; /* Increased margin */
}

.choice-card p {
  color: var(--text-secondary);
  opacity: 0.8;
}

/* Service Cards Styles */
.service-card {
  background: var(--card-gradient);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  box-shadow: var(--card-shadow);
  padding: 2.5rem 2rem; /* Increased padding */
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--secondary-color);
  box-shadow: 0 20px 40px rgba(0, 184, 148, 0.2);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem; /* Increased margin */
}

.service-card h4 {
  color: var(--text-primary);
  margin-bottom: 1.2rem; /* Increased margin */
}

.service-card p {
  color: var(--text-secondary);
  opacity: 0.8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .about {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1.25rem;
  }

  .about-image-container {
    margin-top: 2rem;
  }

  .choice-card,
  .service-card {
    margin-bottom: 1rem;
  }

  .choice-card,
  .service-card {
    padding: 2rem 1.5rem; /* Slightly reduced padding for mobile */
  }
}

/* Contact Section Styles */
.contact {
  background: var(--bg-gradient);
  padding: 80px 0;
}

.contact-info-content {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  height: 100%;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.contact-info-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-right: 1rem;
  margin-top: 0.25rem;
}

.contact-info-item h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-info-item p {
  color: var(--text-secondary);
  opacity: 0.8;
  margin: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--hover-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--secondary-color);
  color: var(--dark-bg);
  transform: translateY(-3px);
}

.contact-form .form-control {
  background: var(--glass-effect);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.1);
}

.contact-form .form-control::placeholder {
  color: var(--text-muted);
}

.submit-btn {
  background: var(--secondary-color);
  border: none;
  color: var(--dark-bg);
  padding: 0.8rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

/* Enhanced Footer Styles */
.footer {
  background: var(--footer-bg);
  color: var(--text-secondary);
  padding: 0;
}

.footer-top {
  padding: 60px 0 30px;
}

.footer-info h3 {
  color: var(--secondary-color);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.footer-info p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0;
  opacity: 0.8;
}

.footer-links {
  margin-bottom: 30px;
}

.footer-links h4 {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul a {
  color: var(--text-secondary);
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.footer-links ul i {
  font-size: 0.8rem;
  margin-right: 0.5rem;
  color: var(--secondary-color);
}

.footer-links ul a:hover {
  opacity: 1;
  color: var(--secondary-color);
  transform: translateX(5px);
}

.footer-newsletter h4 {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-newsletter p {
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.newsletter-form {
  position: relative;
  margin-bottom: 1.5rem;
}

.newsletter-form input {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  padding: 0.8rem;
  color: var(--input-text);
  width: 100%;
  border-radius: 5px;
}

.btn-subscribe {
  background: var(--secondary-color);
  border: none;
  color: var(--dark-bg);
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  margin-top: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-subscribe:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  margin: 0;
  opacity: 0.8;
}

.credits {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}

.credits a {
  color: var(--text-secondary);
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.credits a:hover {
  color: var(--secondary-color);
  opacity: 1;
}

@media (max-width: 768px) {
  .contact-info-content {
    margin-bottom: 2rem;
  }

  .credits {
    justify-content: center;
    margin-top: 1rem;
  }

  .copyright {
    text-align: center;
  }
}

/* Update Theme Toggle Button Styles */
.theme-toggle {
  background: transparent;
  border: 2px solid var(--secondary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin: 0 10px;
  padding: 0;
  cursor: pointer;
}

.theme-toggle i {
  color: var(--secondary-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--secondary-color);
  transform: rotate(180deg);
}

.theme-toggle:hover i {
  color: var(--bg-color);
}

/* Dark theme specific styles */
[data-theme="dark"] .theme-toggle {
  border-color: var(--secondary-color);
}

[data-theme="dark"] .theme-toggle i {
  color: var(--secondary-color);
}

/* Light theme specific styles */
[data-theme="light"] .theme-toggle {
  border-color: var(--secondary-color);
}

[data-theme="light"] .theme-toggle i {
  color: var(--secondary-color);
}

/* Position the theme toggle in navbar */
.nav-item .theme-toggle {
  margin: 0 15px;
}

@media (max-width: 991px) {
  .nav-item .theme-toggle {
    margin: 10px 0;
  }
}

/* Add transition for smooth theme switching */
body * {
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Enhanced Form Styles */
.contact-form .form-control {
  background: var(--glass-effect);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.1);
}

/* Modern Section Headers */
.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(
    45deg,
    var(--secondary-color),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    45deg,
    var(--secondary-color),
    var(--accent-color)
  );
  border-radius: 2px;
}

/* Enhanced Stats Animation */
@keyframes statFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-box {
  animation: statFadeIn 0.5s ease forwards;
}

/* Modern Footer */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-color);
}

.social-links a {
  background: var(--glass-effect);
  backdrop-filter: blur(10px);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-5px);
}

/* Add smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Add modern scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Trading Images Section */
.trading-images {
  padding: 4rem 0;
  background: var(--bg-gradient);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 0 1rem;
}

.image-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  padding: 2rem 1rem 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.image-overlay h3 {
  color: #ffffff !important;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.image-overlay p {
  color: #ffffff !important;
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.9;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Image Hover Effects */
.image-item:hover {
  transform: translateY(-10px);
}

.image-item:hover img {
  transform: scale(1.1);
}

.image-item:hover .image-overlay {
  transform: translateY(0);
}

/* Add floating animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.image-item:nth-child(odd) {
  animation: float 6s ease-in-out infinite;
}

.image-item:nth-child(even) {
  animation: float 6s ease-in-out infinite 3s;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .image-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .image-item {
    aspect-ratio: 16/9;
  }

  .image-overlay {
    transform: translateY(0);
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.4) 100%
    );
  }
}

/* Add shimmer effect on hover */
.image-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  transition: all 0.75s ease;
}

.image-item:hover::after {
  left: 200%;
}

/* Update About Section Responsive Styles */
@media (max-width: 768px) {
  .about {
    padding: 4rem 0 2rem; /* Reduced bottom padding */
  }

  .about-image-container {
    height: 450px;
    margin: 2rem auto 2rem; /* Reduced bottom margin from 3rem to 2rem */
    max-width: 320px;
    position: relative;
  }

  .about-image-grid {
    height: 100%;
    position: relative;
    margin-bottom: 0;
  }

  .main-image {
    width: 100%;
    height: 280px;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    transform: none;
    border-radius: 15px;
  }

  .overlay-image-1 {
    width: 160px;
    height: 140px;
    position: absolute;
    left: -20px;
    top: auto;
    bottom: 100px;
    z-index: 2;
  }

  .overlay-image-2 {
    width: 160px;
    height: 160px;
    position: absolute;
    right: -20px;
    left: auto;
    bottom: 40px;
    z-index: 3;
  }

  /* Mobile hover effects */
  .about-image-container:hover .main-image {
    transform: translateY(-10px);
  }

  .about-image-container:hover .overlay-image-1 {
    transform: translate(10px, -10px);
  }

  .about-image-container:hover .overlay-image-2 {
    transform: translate(-10px, -10px);
  }

  /* Adjust spacing for Why Choose Us section */
  .why-choose-us {
    margin-top: 0; /* Removed top margin */
    padding-top: 0; /* Removed top padding */
    clear: both;
  }

  /* Adjust row spacing */
  .row.align-items-center {
    margin-bottom: 0 !important;
  }

  /* Ensure proper stacking */
  .col-lg-6 {
    margin-bottom: 0; /* Removed bottom margin */
  }
}

/* Additional fix for very small screens */
@media (max-width: 480px) {
  .about-image-container {
    height: 400px;
    max-width: 280px;
    margin-bottom: 1rem; /* Further reduced margin for smaller screens */
  }

  .why-choose-us {
    margin-top: 0;
  }
}

/* Modern Card Styles */
.card,
.choice-card,
.service-card,
.testimonial {
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover,
.choice-card:hover,
.service-card:hover,
.testimonial:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--secondary-color);
  box-shadow: 0 20px 40px rgba(0, 184, 148, 0.2);
}

/* Modern Button Styles */
.cta-button {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(
    45deg,
    var(--secondary-color),
    var(--accent-color)
  );
  border: none;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 184, 148, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 184, 148, 0.4);
}

/* Modern Navigation */
.navbar {
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

/* Modern Stats Display */
.stat-box {
  background: var(--card-gradient);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(
    45deg,
    var(--secondary-color),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Modern Form Elements */
.form-control {
  background: var(--glass-effect);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.1);
}

/* Modern Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-aos] {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navbar Auth Buttons */
.signin-btn {
  background: transparent;
  border: 2px solid var(--secondary-color);
  color: var(--text-primary) !important;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.signin-btn:hover {
  background: var(--secondary-color);
  color: var(--bg-color) !important;
  transform: translateY(-2px);
}

.signup-btn {
  background: var(--secondary-color);
  border: none;
  color: var(--bg-color);
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.signup-btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

/* Hero Section Auth Buttons */
.auth-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem auto;
}

.cta-button.signin,
.cta-button.signup {
  text-decoration: none;
  min-width: 160px;
  padding: 1rem 2.5rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

/* Sign In Button - Transparent with border */
.cta-button.signin {
  background: transparent;
  border: 2px solid var(--secondary-color);
  color: #ffffff;
}

.cta-button.signin:hover {
  background: var(--secondary-color);
  color: var(--bg-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 184, 148, 0.3);
}

/* Sign Up Button - Filled background */
.cta-button.signup {
  background: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  color: var(--bg-color);
}

.cta-button.signup:hover {
  background: transparent;
  color: #ffffff;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 184, 148, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .navbar-nav .nav-item {
    margin: 0.5rem 0;
  }

  .signin-btn,
  .signup-btn {
    width: 100%;
    margin: 0.5rem 0;
  }
}

@media (max-width: 768px) {
  .auth-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-button.signin,
  .cta-button.signup {
    width: 100%;
  }
}

/* Add text shadow for better readability */
.hero-subtitle,
.feature-item span {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Mobile Nav Buttons Container */
.mobile-nav-buttons {
  display: none;
  align-items: center;
  gap: 1rem;
}

/* Update Theme Toggle Button */
.theme-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .mobile-nav-buttons {
    display: flex;
  }

  /* Hide desktop theme toggle */
  .nav-item .theme-toggle {
    display: none;
  }
}
