/* Enhanced Visual Design and Animations */

/* Subtle background patterns */
.about {
  background-color: var(--light-color);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23159895' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.financial {
  background-color: var(--light-color);
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%231a5f7a' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.differentiators {
  background-color: var(--light-color);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='24' viewBox='0 0 88 24'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%2357c5b6' fill-opacity='0.05'%3E%3Cpath d='M13 0v8H8l5 6v8h2v-8l5-6h-5V0h-2zm-2 0v8H6l5 6v8h2v-8l5-6h-5V0h-2zm-2 0v8H4l5 6v8h2v-8l5-6h-5V0H9zm10 0v8h-5l5 6v8h2v-8l5-6h-5V0h-2zm10 0v8h-5l5 6v8h2v-8l5-6h-5V0h-2zm10 0v8h-5l5 6v8h2v-8l5-6h-5V0h-2zm10 0v8h-5l5 6v8h2v-8l5-6h-5V0h-2zm10 0v8h-5l5 6v8h2v-8l5-6h-5V0h-2zm10 0v8h-5l5 6v8h2v-8l5-6h-5V0h-2zm-90 0v8h-5l5 6v8h2v-8l5-6h-5V0h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Enhanced typography */
h1 {
  font-size: 4rem;
  line-height: 1.1;
  letter-spacing: -0.5px;
  font-weight: 800;
}

h2 {
  font-size: 3rem;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 25px;
}

.section-header h2:after {
  height: 4px;
  width: 100px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

/* Enhanced card styles */
.feature-card, .diff-item, .investment-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.feature-card:before, .diff-item:before, .investment-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: -1;
}

.feature-card:hover, .diff-item:hover, .investment-card:hover {
  transform: translateY(-10px) scale(1.02);
}

.feature-card:hover:before, .diff-item:hover:before, .investment-card:hover:before {
  opacity: 1;
}

/* Enhanced button styles */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  z-index: -1;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn:hover:before {
  width: 100%;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Parallax effect */
.hero {
  background-attachment: fixed;
}

.cta {
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.cta:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 95, 122, 0.8), rgba(21, 152, 149, 0.8));
  z-index: 1;
}

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

/* Enhanced header */
header {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo {
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.logo:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: all 0.3s ease;
}

.logo:hover:after {
  width: 100%;
}

/* Enhanced navigation */
nav ul li a {
  position: relative;
  padding: 5px 0;
}

nav ul li a:after {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  height: 2px;
  border-radius: 1px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator span {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.scroll-indicator .mouse {
  width: 30px;
  height: 50px;
  border: 2px solid white;
  border-radius: 15px;
  position: relative;
}

.scroll-indicator .mouse:before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background-color: white;
  border-radius: 2px;
  animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

/* Enhanced animations */
[data-aos] {
  transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-right"] {
  transform: translateX(-30px);
}

[data-aos="fade-left"] {
  transform: translateX(30px);
}

[data-aos="zoom-in"] {
  transform: scale(0.9);
}

[data-aos="flip-up"] {
  transform: perspective(2500px) rotateX(-15deg);
}

[data-aos="flip-down"] {
  transform: perspective(2500px) rotateX(15deg);
}

/* Section transitions */
section {
  position: relative;
  z-index: 1;
}

section:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, transparent, white);
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}

/* Enhanced stats counter */
.stats-counter {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: inline-block;
  position: relative;
}

.stats-counter:after {
  content: '+';
  position: absolute;
  top: 0;
  right: -20px;
  font-size: 2rem;
  color: var(--accent-color);
}

/* Image hover effects */
.about-image {
  position: relative;
  overflow: hidden;
}

.about-image:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 95, 122, 0.2), rgba(21, 152, 149, 0.2));
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 1;
}

.about-image:hover:before {
  opacity: 1;
}

.about-image img {
  transition: all 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about-image:hover img {
  transform: scale(1.1) rotate(2deg);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, rgba(26, 95, 122, 0.05), rgba(21, 152, 149, 0.05));
  border-left: 4px solid var(--accent-color);
  padding: 20px;
  margin: 30px 0;
  border-radius: 0 8px 8px 0;
}

/* Floating elements */
.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Pulse animation */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(21, 152, 149, 0.4);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(21, 152, 149, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(21, 152, 149, 0);
  }
}

/* Enhanced form elements */
.form-control {
  border: 2px solid transparent;
  background-color: #f8f9fa;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
  border-color: var(--accent-color);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(21, 152, 149, 0.2);
}

/* Custom checkbox */
.custom-checkbox {
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  display: inline-block;
  margin-bottom: 15px;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #f8f9fa;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.custom-checkbox:hover input ~ .checkmark {
  background-color: #e9ecef;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--accent-color);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox .checkmark:after {
  left: 9px;
  top: 5px;
  width: 7px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
