:root {
  --primary-blue: #1E2A55;
  --secondary-blue: #0E1A4C;
  --accent-blue: #273871;
  --light-blue: #E8EEFA;
  --dark-text: #0A1433;
  --medium-text: #4B5563;
  --light-text: #9CA3AF;
  --white: #FFFFFF;
  --border-color: #E5E7EB;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --rounded-sm: 0.125rem;
  --rounded-md: 0.25rem;
  --rounded-lg: 0.5rem;
  --rounded-xl: 0.75rem;
  --rounded-2xl: 1rem;
  --spacing-4xs: 0.125rem;
  --spacing-3xs: 0.25rem;
  --spacing-2xs: 0.5rem;
  --spacing-xs: 0.75rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 2.5rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-text);
  line-height: 1.6;
}

/* Add smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Systematic spacing grid (4px base) */
* {
  box-sizing: border-box;
}

/* Navbar transition */
.navbar {
  transition: all 0.3s ease-in-out;
}

/* Hero text animation */
.hero-text {
  animation: fadeInUp 1s ease-out;
  padding-left: 5%;
  padding-right: 5%;
}

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

/* About section animation */
.about-section-animated {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-section-animated.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll indicator animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-10px);}
  60% {transform: translateY(-5px);}
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* Flexible animation classes - ensure initial state */
.animate-fade-in,
.animate-slide-up,
.animate-slide-left,
.animate-slide-right,
.animate-zoom-in,
.scroll-animate,
.scroll-fade-in-up,
.scroll-fade-in-left,
.scroll-fade-in-right {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.animate-slide-up,
.scroll-fade-in-up {
  transform: translateY(30px);
}

.animate-slide-left,
.scroll-fade-in-left {
  transform: translateX(-30px);
}

.animate-slide-right,
.scroll-fade-in-right {
  transform: translateX(30px);
}

.animate-zoom-in {
  transform: scale(0.8);
}

.animate-fade-in.animate {
  opacity: 1;
}

.animate-slide-up.animate,
.scroll-fade-in-up.animate {
  opacity: 1;
  transform: translateY(0);
}

.animate-slide-left.animate,
.scroll-fade-in-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.animate-slide-right.animate,
.scroll-fade-in-right.animate {
  opacity: 1;
  transform: translateX(0);
}

.animate-zoom-in.animate {
  opacity: 1;
  transform: scale(1);
}

/* Delay classes for staggered animations */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }
.delay-700 { transition-delay: 0.7s; }
.delay-800 { transition-delay: 0.8s; }

/* Duration classes */
.duration-300 { transition-duration: 0.3s; }
.duration-500 { transition-duration: 0.5s; }
.duration-700 { transition-duration: 0.7s; }
.duration-1000 { transition-duration: 1s; }

/* Scroll animation classes */
.scroll-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Directional animations */
.scroll-fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-in-up.animate {
  opacity: 1;
  transform: translateY(0);
}

.scroll-fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-in-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.scroll-fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-in-right.animate {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered animations */
.stagger-delay-1 {
  transition-delay: 0.1s;
}

.stagger-delay-2 {
  transition-delay: 0.2s;
}

.stagger-delay-3 {
  transition-delay: 0.3s;
}

.stagger-delay-4 {
  transition-delay: 0.4s;
}

.stagger-delay-5 {
  transition-delay: 0.5s;
}

/* JPMorgan-inspired section styling */
.jpm-section {
  background-color: #f9f9f9;
  padding: 4rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.jpm-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.jpm-section p {
  font-size: 1.2rem;
  color: #666;
}

/* Responsive adjustments for hero text */
@media (max-width: 768px) {
  .hero-text {
    text-align: center !important;
  }
  
  .hero-text .text-left {
    text-align: center !important;
  }
  
  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-text .inline-block {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-text .mr-4 {
    margin-right: 0;
  }
  
  .hero-text .mb-4 {
    margin-bottom: 1rem;
  }
}

/* Card hover effect */
.card-hover {
  transition: all 0.3s ease-in-out;
  will-change: transform;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* Enhanced team card animations */
.team-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  will-change: transform;
  transform-style: preserve-3d;
  height: 320px;
}

.team-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

/* Enhanced flip animation */
.team-card-inner {
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.2);
  transform-style: preserve-3d;
  position: relative;
  transform-origin: center;
  height: 100%;
}

.team-card:hover .team-card-inner {
  transform: rotateY(180deg) translateZ(20px);
}

.team-card-front, .team-card-back {
  backface-visibility: hidden;
  transition: all 0.3s ease;
  border-radius: var(--rounded-xl);
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.team-card-front {
  background: white;
  z-index: 2;
}

.team-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
  display: flex;
  flex-direction: column;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}

/* Add depth to the flip */
.team-card-inner::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(30, 42, 85, 0.1);
  transform: translateZ(-20px);
  border-radius: var(--rounded-xl);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-card:hover .team-card-inner::before {
  opacity: 1;
}

/* Glow effect on hover */
.team-card-glow {
  position: relative;
  overflow: hidden;
}

.team-card-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(39, 56, 113, 0.1), transparent);
  transition: 0.5s;
}

.team-card-glow:hover::before {
  left: 100%;
}

/* Button hover effect */
.btn-hover {
  transition: all 0.3s ease-in-out;
  will-change: transform;
}

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

/* Card hover light effect */
.card-hover-light {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card-hover-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
}

.card-hover-light:hover::before {
  left: 100%;
}

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

/* View all team members button animation */
@keyframes buttonPulse {
  0% { transform: translateX(0); }
  50% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

.view-all-button:hover .transition-transform {
  animation: buttonPulse 1s infinite;
}

/* Team section improvements for mobile */
@media (max-width: 1024px) {
  .team-card {
    width: 100%;
  }
  
  .team-left-sticky {
    position: relative !important;
    top: auto !important;
  }
  
  .team-section-container {
    min-height: auto !important;
  }
}

/* Mobile menu icon transition - enhanced animation */
.mobile-menu-icon {
  transition: all 0.3s ease-in-out;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
}

.mobile-menu-icon-hamburger {
  transform: translate(-50%, -50%) rotate(0deg);
}

.mobile-menu-icon-close {
  transform: translate(-50%, -50%) rotate(-45deg);
  opacity: 0;
}

.mobile-menu-open .mobile-menu-icon-hamburger {
  transform: translate(-50%, -50%) rotate(45deg);
  opacity: 0;
}

.mobile-menu-open .mobile-menu-icon-close {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 1;
  display: block !important;
}

/* Ensure button has relative positioning for absolute icons */
#mobile-menu-button {
  position: relative;
  width: 50px;
  height: 50px;
}

/* Scroll indicator animation */
.scroll-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  fill: #000;
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.mobile-menu.open {
  max-height: 500px;
}

/* JPMorgan-inspired section styling */
.section-container {
  padding: var(--spacing-3xl) var(--spacing-lg);
}

@media (min-width: 768px) {
  .section-container {
    padding: var(--spacing-3xl) var(--spacing-xl);
  }
}

/* Typography system */
.heading-1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.heading-2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.heading-3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.body-text {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

.caption-text {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
}

/* Flip card styles */
.perspective-1000 {
  perspective: 1000px;
}

.transform-style-3d {
  transform-style: preserve-3d;
}

.backface-hidden {
  backface-visibility: hidden;
}

.rotate-y-180 {
  transform: rotateY(180deg);
}

/* Flash effect styles */
.flash-effect {
  position: relative;
  overflow: hidden;
}

.flash-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transition: 0.5s;
}

.flash-effect:hover::before {
  left: 100%;
}

/* Team card entrance animations */
@keyframes cardEntrance {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.team-card-entrance {
  animation: cardEntrance 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
}

.team-card-1 { animation-delay: 0.1s; }
.team-card-2 { animation-delay: 0.2s; }
.team-card-3 { animation-delay: 0.3s; }
.team-card-4 { animation-delay: 0.4s; }
.team-card-5 { animation-delay: 0.5s; }
.team-card-6 { animation-delay: 0.6s; }
.team-card-7 { animation-delay: 0.7s; }
.team-card-8 { animation-delay: 0.8s; }

/* Subtle pulse animation */
@keyframes cardPulse {
  0% { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
  50% { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
  100% { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
}

.team-card-pulse {
  animation: cardPulse 3s infinite ease-in-out;
}

/* Button system */
.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-lg);
  border-radius: var(--rounded-lg);
  transition: all 0.2s ease-in-out;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-blue);
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-lg);
  border-radius: var(--rounded-lg);
  border: 1px solid var(--primary-blue);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--light-blue);
  transform: translateY(-2px);
}

/* Card system */
.card {
  background: var(--white);
  border-radius: var(--rounded-xl);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* Grid system */
.grid-container {
  display: grid;
  gap: var(--spacing-lg);
}

@media (min-width: 768px) {
  .grid-container {
    gap: var(--spacing-xl);
  }
}

/* Focus states for accessibility */
a:focus, button:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Custom cursor styles */
.custom-cursor {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFF' stroke='%23000' stroke-width='2' d='M5.5 3.21V20.8c0 .45.54.67.85.35l4.86-4.86a.5.5 0 0 1 .35-.15h6.87a.5.5 0 0 0 .35-.85L6.35 2.85a.5.5 0 0 0-.85.35Z'/%3E%3C/svg%3E") 6 6, auto;
}

.custom-cursor-hover {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFF' stroke='%23000' stroke-width='2' d='M5.5 3.21V20.8c0 .45.54.67.85.35l4.86-4.86a.5.5 0 0 1 .35-.15h6.87a.5.5 0 0 0 .35-.85L6.35 2.85a.5.5 0 0 0-.85.35Z'/%3E%3C/svg%3E") 8 8, pointer;
}

/* Apply custom cursor to interactive elements */
a, button, .team-card, .card-hover, .btn-hover {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFF' stroke='%23000' stroke-width='2' d='M5.5 3.21V20.8c0 .45.54.67.85.35l4.86-4.86a.5.5 0 0 1 .35-.15h6.87a.5.5 0 0 0 .35-.85L6.35 2.85a.5.5 0 0 0-.85.35Z'/%3E%3C/svg%3E") 6 6, pointer;
}

a:hover, button:hover, .team-card:hover, .card-hover:hover, .btn-hover:hover {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFF' stroke='%23000' stroke-width='2' d='M5.5 3.21V20.8c0 .45.54.67.85.35l4.86-4.86a.5.5 0 0 1 .35-.15h6.87a.5.5 0 0 0 .35-.85L6.35 2.85a.5.5 0 0 0-.85.35Z'/%3E%3C/svg%3E") 8 8, pointer;
}

/* Sticky team section left side */
.team-left-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 100px;
  align-self: flex-start;
  height: fit-content;
}

/* Ensure proper height for sticky element */
.team-section-container {
  min-height: 100vh;
}

/* Add some padding to prevent content from touching edges */
.team-content-wrapper {
  padding: 20px 0;
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
  /* Increase touch target sizes */
  a, button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Improve form field spacing */
  input, textarea, select {
    min-height: 44px;
  }
  
  /* Better spacing for sections */
  .section-container {
    padding: var(--spacing-xl) var(--spacing-sm);
  }
  
  /* Adjust team card height for mobile */
  .team-card {
    height: 280px;
  }
  
  /* Improve mobile menu spacing */
  .mobile-menu .space-y-4 > * + * {
    margin-top: 0.75rem;
  }
  
  /* Better footer spacing on mobile */
  footer .grid {
    gap: 2rem;
  }
  
  /* Improve button sizing on mobile */
  .btn-primary, .btn-secondary {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
  }
  
  /* Better heading sizes for mobile */
  .heading-1 {
    font-size: 2rem;
  }
  
  .heading-2 {
    font-size: 1.75rem;
  }
  
  .heading-3 {
    font-size: 1.25rem;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .hero-text {
    padding-left: 3%;
    padding-right: 3%;
  }
  
  /* Further adjust team card height */
  .team-card {
    height: 260px;
  }
  
  /* Better spacing for small screens */
  .section-container {
    padding: var(--spacing-lg) var(--spacing-xs);
  }
}

/* Build Something Timeless Section */
.build-something-section {
  position: relative;
  overflow: hidden;
  background-color: white;
}

.build-something-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, #f0f0f0 0%, transparent 70%);
  opacity: 0.1;
  z-index: 0;
}

.build-something-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 2rem;
}

.logo-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 900;
  color: rgba(10, 20, 51, 0.05);
  z-index: 1;
  pointer-events: none;
  white-space: nowrap;
}

.logo-container {
  position: relative;
  display: inline-block;
  z-index: 2;
}

@media (max-width: 768px) {
  .logo-overlay-text {
    font-size: 2rem;
  }
  
  .logo-container img {
    max-width: 80%;
    height: auto;
  }
}

@media (min-width: 769px) {
  .logo-overlay-text {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .logo-overlay-text {
    font-size: 4rem;
  }
}

/* FAQ Accordion Styles */
.rotate-180 {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.faq-content {
  transition: max-height 0.3s ease;
}
