/* Global Reset and Variables */
:root {
  /* Color System */
  --financial-navy: 210 40% 15%;
  --financial-gold: 22 100% 65%; /* Lighter, pastel orange */
  --financial-blue: 210 60% 50%;
  --financial-light: 210 20% 98%;
  --financial-dark: 210 30% 10%;
  --financial-gray: 210 10% 50%;

  /* Converted Colors */
  --color-navy: hsl(var(--financial-navy));
  --color-gold: hsl(var(--financial-gold));
  --color-blue: hsl(var(--financial-blue));
  --color-light: hsl(var(--financial-light));
  --color-dark: hsl(var(--financial-dark));
  --color-gray: hsl(var(--financial-gray));

  /* Gradients */
  --gradient-hero: linear-gradient(
    135deg,
    hsl(var(--financial-navy) / 0.95) 0%,
    hsl(var(--financial-blue) / 0.85) 50%,
    hsl(var(--financial-gold) / 0.1) 100%
  );
  --gradient-primary: linear-gradient(
    135deg,
    hsl(var(--financial-navy)) 0%,
    hsl(var(--financial-blue)) 100%
  );
  --gradient-subtle: linear-gradient(
    180deg,
    hsl(var(--financial-light)) 0%,
    hsl(var(--financial-light) / 0.5) 100%
  );

  /* Shadows */
  --shadow-elegant: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 30px hsl(var(--financial-gold) / 0.3);
  --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-nav: "EB Garamond", "Garamond", "Georgia", serif;
  --font-body: "Aptos", "Segoe UI Variable Display", "Segoe UI", system-ui,
    -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --container-padding: 1.5rem;
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-dark);
  background: var(--color-light);
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Header Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(240, 237, 232, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow-card);
}

.nav-container {
  padding: 1.25rem 0;
}

.nav-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--color-navy);
}

.logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.logo-text-container {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.logo-text {
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.05em;
}

.logo-subtitle {
  font-family: var(--font-nav);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-gray);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0;
  color: var(--color-dark);
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--color-gold);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 0;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.6);
}

.indicator.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  transform: scale(1.2);
}

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

.hero-text {
  max-width: 800px;
  animation: fadeInUp 1s ease;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title .highlight {
  color: var(--color-gold);
  display: inline-block;
  position: relative;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-card);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--color-gold);
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.floating-element .icon {
  width: 30px;
  height: 30px;
  color: var(--color-gold);
}

.element-1 {
  top: 5%;
  right: 25%;
  animation-delay: 0s;
}

.element-2 {
  bottom: 30%;
  right: 3%;
  animation-delay: 2s;
}

.element-3 {
  top: 20%;
  right: 15%;
  animation-delay: 4s;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background: var(--gradient-subtle);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elegant);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 30px;
  height: 30px;
  color: white;
}

.service-title {
  font-size: 1.5rem;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.service-description {
  color: var(--color-gray);
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
}

.service-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: bold;
}

/* About Section */
.about {
  padding: 5rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.profile-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-elegant);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.profile-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-navy);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

.profile-name {
  font-size: 1.75rem;
  color: var(--color-navy);
}

.profile-title {
  color: var(--color-gray);
}

.certifications {
  margin-bottom: 2rem;
}

.certifications-title,
.experience-title,
.background-title {
  font-size: 1.25rem;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.professional-background {
  margin-bottom: 2rem;
}

.background-content {
  background: hsl(var(--financial-light) / 0.5);
  border-left: 3px solid var(--color-gold);
  padding: 1rem 1.5rem;
  border-radius: 8px;
}

.background-content p {
  color: var(--color-dark);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.background-content p:last-child {
  margin-bottom: 0;
}

.certification-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.experience-list {
  list-style: none;
}

.experience-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.experience-list .icon {
  width: 20px;
  height: 20px;
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Info Cards */
.info-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}

.info-title {
  font-size: 1.25rem;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.info-text {
  color: var(--color-gray);
  line-height: 1.7;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat {
  background: var(--gradient-primary);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Euler Section */
.euler-section {
  padding: 5rem 0;
  background: var(--gradient-subtle);
}

.euler-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}

.euler-image {
  text-align: center;
}

.euler-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-elegant);
  margin-bottom: 2rem;
}

.euler-equation {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.equation {
  font-size: 2rem;
  font-family: "Georgia", serif;
  color: var(--color-navy);
  display: block;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.equation-caption {
  font-size: 0.875rem;
  color: var(--color-gray);
  font-style: italic;
}

.euler-text {
  color: var(--color-dark);
}

.euler-intro {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--color-dark);
}

.euler-highlight {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--color-gold);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.euler-highlight h3 {
  color: var(--color-navy);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.euler-highlight p {
  line-height: 1.7;
}

.euler-highlight strong {
  color: var(--color-gold);
  font-weight: 600;
}

.euler-philosophy {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.euler-quote {
  background: linear-gradient(135deg, var(--color-navy), var(--color-blue));
  color: white;
  padding: 2rem;
  border-radius: 12px;
  position: relative;
  box-shadow: var(--shadow-elegant);
}

.euler-quote p {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.euler-quote cite {
  display: block;
  text-align: right;
  font-size: 0.95rem;
  opacity: 0.9;
  font-style: normal;
}

/* Footer */
.footer {
  background: var(--color-navy);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-logo .logo-text {
  color: white;
}

.footer-logo .logo-subtitle {
  color: var(--color-gold);
  font-size: 1rem;
  font-weight: 700;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
}

.footer-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-gold);
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.contact-list .icon {
  width: 20px;
  height: 20px;
  color: var(--color-gold);
}

.contact-list a {
  color: inherit;
  transition: color 0.3s ease;
}

.contact-list a:hover {
  color: var(--color-gold);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
  margin-top: 0.5rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--color-gold);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(5deg);
  }
  66% {
    transform: translateY(10px) rotate(-5deg);
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 1s ease-out;
}

.slide-up {
  animation: slideUp 0.8s ease-out;
}

.slide-left {
  animation: slideLeft 0.8s ease-out;
}

.slide-right {
  animation: slideRight 0.8s ease-out;
}

.scale-in {
  animation: scaleIn 0.6s ease-out;
}

/* Delayed animations for staggered effect */
.delay-1 {
  animation-delay: 0.1s;
  animation-fill-mode: both;
}

.delay-2 {
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

.delay-3 {
  animation-delay: 0.3s;
  animation-fill-mode: both;
}

.delay-4 {
  animation-delay: 0.4s;
  animation-fill-mode: both;
}

/* Responsive Design - Tablet/Small Desktop */
@media (max-width: 1200px) and (min-width: 769px) {
  /* Adjust floating elements for tablet/small desktop */
  .floating-element {
    width: 50px;
    height: 50px;
  }

  .floating-element .icon {
    width: 25px;
    height: 25px;
  }

  .element-1 {
    top: 3%;
    right: 5%;
  }

  .element-2 {
    bottom: 10%;
    right: 1%;
  }

  .element-3 {
    top: 30%;
    right: 0%;
  }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-card);
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: flex;
  }

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

  .hero-description {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .euler-content {
    grid-template-columns: 1fr;
  }

  .euler-image img {
    max-width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Adjust floating elements for mobile to avoid text overlap */
  .floating-element {
    width: 40px;
    height: 40px;
  }

  .floating-element .icon {
    width: 20px;
    height: 20px;
  }

  /* Position all bubbles at the top to avoid text */
  .element-1 {
    top: 3%;
    right: 5%;
  }

  .element-2 {
    top: 3%;
    right: 45%;
  }

  .element-3 {
    top: 3%;
    left: 5%;
  }
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Print Styles */
@media print {
  .header,
  .hero-carousel,
  .floating-elements,
  .footer {
    display: none;
  }

  .hero {
    min-height: auto;
    margin-top: 0;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }
}
