/* 
  Echelon Group - Advanced Design System 
  Matches "Fractalized" Dribbble Reference
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500&display=swap');

:root {
  /* Ultra Dark / High Contrast Palette */
  --bg-main: #000000;
  --bg-surface: #0a0a0a;
  --bg-surface-elevated: #111111;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  
  --accent-blue: #4f46e5; /* Deep rich blue */
  --accent-purple: #7c3aed;
  --accent-glow: rgba(79, 70, 229, 0.5);

  --text-primary: #ffffff;
  --text-secondary: #888888;
  --text-tertiary: #555555;
  
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(255, 255, 255, 0.3);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing & Layout */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;
  --transition-fast: 0.2s ease;
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  
  --container-max: 1600px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto; /* Handled by GSAP if needed, otherwise default */
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Prevent scrolling while preloader is active */
body.loading {
  overflow: hidden;
}

/* PRELOADER */
#preloader {
  position: fixed;
  inset: 0;
  background-color: var(--bg-main);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loading-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.star-icon {
  color: var(--accent-blue);
  animation: pulse-spin 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-tertiary);
}

@keyframes pulse-spin {
  0% { transform: scale(0.9) rotate(0deg); opacity: 0.5; }
  50% { transform: scale(1.1) rotate(180deg); opacity: 1; filter: drop-shadow(0 0 15px var(--accent-glow)); }
  100% { transform: scale(0.9) rotate(360deg); opacity: 0.5; }
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.site-logo {
  height: 32px;
  width: auto;
  filter: invert(1) brightness(200%);
}

.finance-icon {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); filter: drop-shadow(0 10px 15px var(--accent-glow)); }
  100% { transform: translateY(0); }
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-slow);
  border: none;
}

.btn.rounded {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
}

.btn.lg {
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
}

.btn-primary:hover {
  background: #3b32c9;
  transform: scale(1.02);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-text {
  background: transparent;
  color: var(--text-primary);
  border-bottom: 1px solid transparent;
}

.btn-text:hover {
  color: var(--text-secondary);
}

.btn-block {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-md);
}

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

section {
  padding: 8rem 0;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  transition: var(--transition-slow);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.star-icon.small svg {
  width: 20px;
  height: 20px;
  animation: none;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
  background: var(--bg-glass);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.nav-links a:hover, .nav-links a.active {
  color: #fff;
}

/* HERO SECTION (Video Background) */
.hero-video-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: -2;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.2) 100%);
  z-index: -1;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 4rem;
}

.hero-text-area {
  flex: 1;
  max-width: 800px;
}

.hero-text-area h1 {
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  margin-bottom: 1.5rem;
}

.hero-text-area p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 3rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Hero Floating Card */
.hero-floating-card {
  width: 400px;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.5rem;
}

.card-header h3 {
  font-size: 1.25rem;
}

.dot-indicator {
  width: 8px;
  height: 8px;
  background: var(--accent-blue);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-blue);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.input-group select {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  appearance: none;
  outline: none;
}

.input-group select:focus {
  border-color: var(--border-focus);
}

select option {
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.stat span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.stat strong {
  font-size: 1.25rem;
  font-family: var(--font-display);
}

/* HORIZONTAL STATS GRID */
.grid-layout-asymmetric {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 4rem 0;
}

.media-card-left {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
  background-color: var(--bg-surface);
  cursor: pointer;
}

.media-card-left .bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.media-card-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2));
  z-index: 1;
}

.media-card-left:hover .bg-image {
  transform: scale(1.05);
}

.media-card-left .content-overlay {
  position: relative;
  z-index: 2;
}

.data-grid-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.data-cell {
  padding: 3rem;
  border-left: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-slow);
}

.data-cell:nth-child(3), .data-cell:nth-child(4) {
  border-bottom: none;
}

.data-cell:hover {
  background: var(--bg-surface);
}

.data-cell h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.data-cell p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ACCORDION SERVICES */
.interactive-services {
  background: var(--bg-main);
}

.services-header {
  margin-bottom: 5rem;
}

.services-header h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  max-width: 800px;
  color: var(--text-secondary);
}

.accordion-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.accordion-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-subtle);
}

.accordion-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 2rem 0;
  cursor: pointer;
  transition: var(--transition-fast);
}

.item-header {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.item-header .num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-tertiary);
  transition: var(--transition-fast);
}

.item-header h3 {
  font-size: 2rem;
  color: var(--text-secondary);
  flex: 1;
  transition: var(--transition-fast);
}

.item-header .arrow {
  color: var(--text-tertiary);
  transition: var(--transition-slow);
}

.item-content {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: var(--transition-slow);
}

.item-content p {
  padding-top: 1.5rem;
  padding-left: 3.5rem;
  color: var(--text-secondary);
  max-width: 90%;
}

.accordion-item:hover .item-header h3 {
  color: #fff;
}

.accordion-item:hover .item-header .num,
.accordion-item:hover .item-header .arrow {
  color: #fff;
}

.accordion-item.active .item-header h3,
.accordion-item.active .item-header .num,
.accordion-item.active .item-header .arrow {
  color: #fff;
}

.accordion-item.active .item-header .arrow {
  transform: rotate(90deg);
}

.accordion-item.active .item-content {
  height: auto;
  opacity: 1;
}

.accordion-media {
  position: sticky;
  top: 120px;
}

.media-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
}

.media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.floating-badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border-subtle);
}

.play-icon {
  width: 32px;
  height: 32px;
  background: #fff;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* RICH HOVER GRID (Methodology / What we know) */
.methodology-section {
  padding-bottom: 10rem;
}

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

.section-header.center h2 {
  font-size: 3.5rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 1.5rem;
}

.bento-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: var(--transition-slow);
}

.card-tall {
  grid-column: span 1;
  grid-row: span 2;
}

.card-wide {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-card .card-inner {
  position: relative;
  z-index: 2;
}

.card-full {
  grid-column: 1 / -1;
}

.bento-card .icon {
  font-size: 2rem;
  margin-bottom: auto;
  color: var(--text-tertiary);
  transition: var(--transition-slow);
}

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  z-index: 2;
  transition: var(--transition-slow);
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-slow);
  height: 0;
}

/* Rich Group Hover Reveal Mechanics */
.group-hover-reveal {
  cursor: pointer;
}

.group-hover-reveal .bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.1);
  transition: var(--transition-slow);
  z-index: 0;
}

.group-hover-reveal .bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.6));
}

/* Specific override for Bento Cards to show image by default */
.bento-card.group-hover-reveal .bg-image {
  opacity: 1;
  transform: scale(1);
}

/* Add an extra dark overlay so text is always readable */
.bento-card.group-hover-reveal .bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6); /* Dark base overlay */
  z-index: -1;
  transition: var(--transition-slow);
}

.group-hover-reveal:hover {
  transform: scale(0.98);
  border-color: var(--border-focus);
}

.group-hover-reveal:hover .bg-image {
  opacity: 1;
  transform: scale(1);
}

/* On hover for bento cards: slight zoom and lighten the overlay */
.bento-card.group-hover-reveal:hover .bg-image {
  transform: scale(1.05);
}

.bento-card.group-hover-reveal:hover .bg-image::before {
  background: rgba(0,0,0,0.2); /* Lighter on hover so image pops */
}

.group-hover-reveal:hover .icon {
  color: #fff;
  transform: scale(1.2);
}

.group-hover-reveal:hover p {
  opacity: 1;
  transform: translateY(0);
  height: auto;
  margin-top: 1rem;
}

/* Special Highlight Card */
.highlight-card {
  background: linear-gradient(135deg, var(--bg-surface), rgba(79, 70, 229, 0.1));
}

.highlight-card:hover {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  transform: scale(1.02);
}

.highlight-card:hover h3, .highlight-card:hover p, .highlight-card:hover .icon {
  color: #fff;
}
.highlight-card:hover p {
  opacity: 1;
  transform: translateY(0);
  height: auto;
  margin-top: 1rem;
}


/* =========================================
   NEW SECTIONS (Staff, Partners, Blog, FAQ, CTA, Footer)
   ========================================= */

/* MARQUEE */
.marquee-section {
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  background: var(--bg-surface);
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: scroll-left 30s linear infinite;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.marquee-content span {
  display: inline-block;
  margin: 0 1rem;
}

.marquee-content .dot {
  color: var(--accent-blue);
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* CAROUSEL UTILITIES */
.carousel-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  gap: 2rem;
  padding-bottom: 2rem;
  scroll-behavior: smooth;
}

.carousel-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carousel-container > * {
  scroll-snap-align: start;
  flex: 0 0 calc(33.333% - 1.33rem); /* Default 3 items per view */
}

/* CAROUSEL NAV BUTTONS */
.carousel-nav {
  display: flex;
  gap: 1rem;
}
.nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border-color: var(--border-focus);
}

/* CUT CORNER EFFECT (Clip Path) */
.cut-corner-box {
  /* Default: Chamfered top-left, top-right, bottom-right */
  clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
  transition: clip-path 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.group-hover-reveal:hover .cut-corner-box,
.flip-card:hover .cut-corner-box,
.staff-card:hover .cut-corner-box,
.cut-corner-box:hover {
  /* Hover: Full rectangle */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%, 0 100%, 0 0);
}

/* STAFF SECTION (3D FLIP CARDS) */
.staff-section {
  padding: 8rem 0;
}

.staff-section .section-header {
  margin-bottom: 4rem;
}

.staff-section h2 {
  font-size: 3.5rem;
}

.staff-grid > * {
  flex: 0 0 calc(25% - 1.5rem); /* 4 items per view */
  min-width: 280px;
}

/* 3D Flip Card Logic */
.flip-card {
  background-color: transparent;
  width: 100%;
  aspect-ratio: 3/4;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.2);
}

.front-label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  z-index: 2;
  text-align: left;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}

.flip-card-back {
  background: linear-gradient(135deg, var(--bg-surface-elevated), var(--accent-blue));
  color: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem;
  text-align: left;
}

.flip-card-back h4 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.staff-title {
  color: rgba(255,255,255,0.8);
  font-family: var(--font-display);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.staff-bio {
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.staff-social a {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
}

.staff-social a:hover {
  background: #fff;
  color: var(--accent-blue);
}

/* PARTNERS SECTION */
.partners-section {
  padding: 4rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.partners-title {
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 3rem;
}

.partners-marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

/* Gradient fades on the edges of the marquee for smooth entry/exit */
.partners-marquee::before,
.partners-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}
.partners-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-surface), transparent);
}
.partners-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-surface), transparent);
}

.partners-marquee-track {
  display: inline-block;
  animation: partners-scroll 25s linear infinite;
}

@keyframes partners-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-tertiary);
  opacity: 0.6;
  transition: var(--transition-fast);
  cursor: default;
  margin: 0 3rem;
}

.partner-logo:hover {
  color: #fff;
  opacity: 1;
}

/* BLOG SECTION */
.blog-section {
  padding: 8rem 0;
}

.section-header.split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.section-header.split h2 {
  font-size: 3.5rem;
}

.blog-grid {
  /* Uses carousel utility now, no grid needed */
}

.blog-card {
  text-decoration: none;
  display: block;
}

.blog-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--bg-surface);
}

.blog-tag {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  color: #fff;
  border: 1px solid var(--border-subtle);
  z-index: 2;
}

.blog-content {
  padding-right: 1rem;
}

.blog-date {
  display: block;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}

.blog-card h4 {
  font-size: 1.25rem;
  color: #fff;
  transition: var(--transition-fast);
}

.blog-card:hover h4 {
  color: var(--accent-blue);
}

/* FAQ SECTION */
.faq-section {
  padding: 8rem 0;
  border-top: 1px solid var(--border-subtle);
}

.faq-left h2 {
  font-size: 3.5rem;
  margin-bottom: 2rem;
}

.faq-icon-decoration {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 2rem 0;
  cursor: pointer;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h4 {
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.toggle-icon {
  font-size: 2rem;
  color: var(--text-tertiary);
  transition: var(--transition-fast);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.faq-answer p {
  padding-top: 1.5rem;
  color: var(--text-secondary);
  max-width: 90%;
}

.faq-item.active .faq-question h4 {
  color: #fff;
}

.faq-item.active .toggle-icon {
  transform: rotate(45deg);
  color: #fff;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  opacity: 1;
}

/* GIANT CTA SECTION */
.giant-cta-section {
  position: relative;
  padding: 10rem 0; /* Increased padding so more background is visible */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cta-overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2); /* Lighter overlay so image pops out more */
  z-index: 0;
}

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

.cta-box-white {
  background: #ffffff;
  padding: 6rem 4rem;
  width: 100%;
  max-width: 100%;
  /* Cut top-right and bottom-left corners */
  clip-path: polygon(0 0, calc(100% - 60px) 0, 100% 60px, 100% 100%, 60px 100%, 0 calc(100% - 60px));
}

.cta-content-dark {
  color: #0a0a0a;
}

.cta-content-dark h2 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin-bottom: 1rem;
  color: #000;
}

.cta-content-dark p {
  color: #333;
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* ANIMATED FOOTER */
.main-footer {
  position: relative;
  border-top: 1px solid var(--border-subtle);
  padding: 6rem 0 2rem;
  background: var(--bg-surface-elevated);
  overflow: hidden;
}

.footer-motion-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(79, 70, 229, 0.1), transparent 50%);
  z-index: 0;
  animation: pulse-bg 10s ease-in-out infinite alternate;
}

@keyframes pulse-bg {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 1; }
}

.footer-grid, .footer-bottom {
  position: relative;
  z-index: 1;
}

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

.footer-logo {
  height: 40px;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  margin: 1.5rem 0;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.social-links a:hover {
  background: #fff;
  color: #000;
}

.footer-links h4, .footer-contact h4 {
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-contact .phone {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
}

.email-link {
  color: var(--accent-blue);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.legal-links {
  display: flex;
  gap: 2rem;
}

.legal-links a {
  color: var(--text-tertiary);
  text-decoration: none;
}

.legal-links a:hover {
  color: var(--text-secondary);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-content { flex-direction: column; align-items: flex-start; }
  .grid-layout-asymmetric { grid-template-columns: 1fr; }
  .accordion-layout { grid-template-columns: 1fr; }
  .accordion-media { position: relative; top: 0; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .card-wide { grid-column: span 2; }
  .carousel-container > * { flex: 0 0 calc(50% - 1rem); }
  .staff-grid > * { flex: 0 0 calc(50% - 1rem); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .bento-grid { grid-template-columns: 1fr; }
  .card-wide, .card-tall { grid-column: span 1; grid-row: span 1; }
  .data-grid-right { grid-template-columns: 1fr; }
  .data-cell { border-left: none; }
  .carousel-container > * { flex: 0 0 85%; }
  .staff-grid > * { flex: 0 0 85%; }
  .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
  .section-header.split { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .marquee-content { font-size: 2rem; }
}

