/* --- Variables & Reset --- */
:root {
  --primary-color: #0f3460;
  /* Deep Blue */
  --secondary-color: #16213e;
  /* Darker Blue */
  --accent-color: #e94560;
  /* Red/Orange Accent for CTAs */
  --gold-accent: #d4af37;
  /* Gold for luxury feel */
  --text-light: #f1f1f1;
  --text-dark: #333;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Utility Classes --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #c0394d;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

.btn-block {
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: var(--transition);
  padding: 20px 0;
}

.header.scrolled {
  background-color: var(--white);
  box-shadow: var(--shadow);
  padding: 15px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.header.scrolled .logo a {
  color: var(--primary-color);
}

.nav-menu ul {
  display: flex;
  gap: 30px;
}

.nav-menu a {
  color: var(--white);
  font-weight: 500;
  position: relative;
}

.header.scrolled .nav-menu a {
  color: var(--text-dark);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--gold-accent);
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-cta {
  background-color: var(--gold-accent);
  color: var(--white) !important;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  margin-left: 20px;
}

.nav-cta:hover {
  background-color: #b5952f;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  transition: var(--transition);
}

.header.scrolled .hamburger span {
  background-color: var(--text-dark);
}

.close-menu {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.hero-text {
  flex: 1;
  padding-right: 50px;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  gap: 15px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Abstract Finance Graphic */
.finance-graphic {
  position: relative;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  padding-bottom: 40px;
}

.bar {
  width: 30px;
  background: var(--gold-accent);
  border-radius: 5px 5px 0 0;
  animation: growBar 2s infinite alternate;
}

.bar-1 {
  height: 100px;
  animation-delay: 0s;
}

.bar-2 {
  height: 150px;
  animation-delay: 0.2s;
}

.bar-3 {
  height: 80px;
  animation-delay: 0.4s;
}

.circle-graph {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

@keyframes growBar {
  0% {
    height: 50px;
  }

  100% {
    height: 180px;
  }
}

@keyframes spin {
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Background Shapes */
.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  animation: float 10s infinite ease-in-out;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: -50px;
  left: -50px;
}

.shape-2 {
  width: 200px;
  height: 200px;
  bottom: 50px;
  right: 10%;
  animation-delay: 2s;
}

.shape-3 {
  width: 100px;
  height: 100px;
  top: 40%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* Animation Classes */
.animate-hero {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- About Section --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent-color);
}

/* --- Why Us --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
  /* For scroll animation */
  transform: translateY(20px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.icon-box {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* --- Services --- */
.service-category {
  margin-bottom: 60px;
}

.service-category h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-accent);
  display: inline-block;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  border-bottom: 3px solid var(--accent-color);
}

.service-card i {
  font-size: 2rem;
  color: var(--gold-accent);
  margin-bottom: 15px;
}

.service-card h4 {
  margin-bottom: 10px;
  color: var(--secondary-color);
}

/* --- Testimonials --- */
.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-card {
  min-width: 100%;
  padding: 40px;
  text-align: center;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.client-img i {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.quote {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #555;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.slider-controls button {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.slider-controls button:hover {
  background: var(--accent-color);
}

/* --- FAQ --- */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.accordion-header {
  width: 100%;
  padding: 20px;
  background: var(--white);
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-color);
  transition: var(--transition);
}

.accordion-header:hover {
  background: #f0f0f0;
}

.accordion-header i {
  transition: transform 0.3s;
}

.accordion-header.active i {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: var(--white);
}

.accordion-body p {
  padding: 20px;
  color: #666;
  border-top: 1px solid #eee;
}

/* --- Contact & Newsletter --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-form-wrapper,
.newsletter-box,
.company-info {
  background: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.newsletter-box {
  background: var(--primary-color);
  color: var(--white);
  margin-bottom: 20px;
}

.newsletter-box h3 {
  color: var(--gold-accent);
}

.form-group {
  margin-bottom: 15px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.form-success-msg {
  margin-top: 10px;
  color: #2ecc71;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.5s;
}

.company-info {
  background: var(--bg-light);
}

.company-info p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-info i {
  color: var(--accent-color);
}

/* --- Footer --- */
.footer {
  background: var(--secondary-color);
  color: var(--text-light);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--gold-accent);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a:hover {
  color: var(--gold-accent);
  padding-left: 5px;
}

.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--gold-accent);
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .hero-text h1 {
    font-size: 2.8rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 30px;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 20px;
  }

  .nav-menu a {
    color: var(--text-dark);
  }

  .close-menu {
    display: block;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    padding-top: 80px;
  }

  .hero-text {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-image {
    width: 100%;
  }

  .finance-graphic {
    width: 200px;
    height: 200px;
  }
}

/* Modal styles */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px 30px;
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
  text-align: left;
  position: relative;
}

.modal-content h2 {
  margin-top: 0;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: black;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}