/* Maya Capital - Custom Styles */

/* Fonts */
@font-face {
  font-family: 'Bison';
  src: url('../fonts/Bison-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* CSS Variables */
:root {
  --primary: #2d4be0;
  --secondary: #222933;
  --tertiary: #22398d;
  --base-100: #ffffff;
  --base-200: #f9fafc;
  --neutral: #f9f9f9;
  --warning: #e08e00;
  --bg-main: #eaeaea;
  --pink-accent: #fcc5cd;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--secondary);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Typography */
.font-bison {
  font-family: 'Bison', sans-serif;
}

.text-primary {
  color: var(--primary);
}

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

.bg-primary {
  background-color: var(--primary);
}

.bg-secondary {
  background-color: var(--secondary);
}

/* Highlight text effect - outline stroke style */
.highlight-text,
.highligh-text {
  color: transparent !important;
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: var(--primary);
}

/* Variant for dark backgrounds */
.highlight-text-light,
.highligh-text-variant {
  color: transparent !important;
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: #fff;
}

@media screen and (max-width: 650px) {
  .highlight-text,
  .highligh-text,
  .highlight-text-light,
  .highligh-text-variant {
    -webkit-text-stroke-width: 1px;
  }
}

/* Hero Section */
.hero-title {
  font-family: 'Bison', sans-serif;
  font-size: clamp(3.646rem, 1vw + 1rem, 9.85rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--primary);
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 9.85rem;
  }
}

@media (min-width: 1536px) {
  .hero-title {
    font-size: 13.75rem;
  }
}

/* Navigation */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

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

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

/* Cards */
.card {
  background: var(--base-100);
  border-radius: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Team Card */
.team-card {
  position: relative;
  overflow: hidden;
}

.team-card img {
  transition: transform 0.5s ease;
}

.team-card:hover img {
  transform: scale(1.05);
}

/* Portfolio Card */
.portfolio-card {
  background: var(--base-100);
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-card .logo {
  height: 60px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.sector-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-main);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Feature Card */
.feature-card {
  min-width: 171.06px;
  min-height: 187.64px;
  padding: 1.5rem;
  border: 1px solid var(--primary);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .feature-card {
    width: 377.07px;
    height: 411px;
    min-width: 377.07px;
    min-height: 411px;
    padding: 3.5rem 2rem;
    gap: 2rem;
  }
}

@media (min-width: 1536px) {
  .feature-card {
    width: 530px;
    height: 579px;
    min-width: 530px;
    min-height: 579px;
    padding: 5rem 2rem;
  }
}

/* Filters */
.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--secondary);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background: var(--tertiary);
  border-color: var(--tertiary);
}

.btn-outline {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.btn-outline:hover {
  background: var(--secondary);
  color: white;
}

/* Header */
header {
  position: relative;
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  background-color: white;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Fullscreen Menu */
.fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  background: var(--primary);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.fullscreen-menu.open {
  opacity: 1;
  visibility: visible;
}

.fullscreen-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 83.23%;
  margin: 0 auto;
  padding: 3.5rem 0;
}

@media (min-width: 1024px) {
  .fullscreen-menu-header {
    padding: 4rem 0;
  }
}

.fullscreen-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .fullscreen-menu nav {
    gap: 1rem;
  }
}

@media (min-width: 1536px) {
  .fullscreen-menu nav {
    gap: 1.375rem;
  }
}

.fullscreen-menu nav a {
  font-family: 'Bison', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
  line-height: 3.75rem;
  text-decoration: none;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (min-width: 1024px) {
  .fullscreen-menu nav a {
    font-size: 3.5rem;
    line-height: 5rem;
  }
}

@media (min-width: 1536px) {
  .fullscreen-menu nav a {
    font-size: 5rem;
    line-height: 7.11rem;
  }
}

.fullscreen-menu.open nav a {
  opacity: 1;
  transform: translateY(0);
}

.fullscreen-menu nav a:nth-child(1) { transition-delay: 0.18s; }
.fullscreen-menu nav a:nth-child(2) { transition-delay: 0.28s; }
.fullscreen-menu nav a:nth-child(3) { transition-delay: 0.38s; }
.fullscreen-menu nav a:nth-child(4) { transition-delay: 0.48s; }
.fullscreen-menu nav a:nth-child(5) { transition-delay: 0.58s; }
.fullscreen-menu nav a:nth-child(6) { transition-delay: 0.68s; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 150;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: all 0.3s ease;
}

/* Footer - Original Design */
footer {
  background: var(--primary);
  color: white;
}

footer a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

footer a:hover {
  opacity: 0.8;
}

.footer-container {
  width: 63.43%;
  margin: 0 auto;
  padding: 4rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .footer-container {
    width: 100%;
    padding: 7rem 8.33% 5rem;
    flex-direction: row;
    gap: 12rem;
  }
}

@media (min-width: 1536px) {
  .footer-container {
    padding: 10rem 8.33% 7rem;
  }
}

.footer-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.footer-logo {
  width: 140px;
  height: 28px;
}

@media (min-width: 1024px) {
  .footer-logo {
    width: 199px;
    height: 28px;
  }
}

@media (min-width: 1536px) {
  .footer-logo {
    width: 280px;
    height: 40px;
  }
}

.footer-copyright {
  font-family: 'Manrope', sans-serif;
  font-size: 0.405rem;
  color: white;
}

@media (min-width: 1024px) {
  .footer-copyright {
    font-size: 0.875rem;
  }
}

@media (min-width: 1536px) {
  .footer-copyright {
    font-size: 1.25rem;
  }
}

.footer-content {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

@media (min-width: 1024px) {
  .footer-content {
    display: contents;
  }
}

.footer-extra-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .footer-extra-links {
    gap: 2.5rem;
  }
}

@media (min-width: 1536px) {
  .footer-extra-links {
    gap: 3.5rem;
  }
}

.footer-extra-link {
  font-family: 'Bison', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .footer-extra-link {
    font-size: 2.1875rem;
  }
}

@media (min-width: 1536px) {
  .footer-extra-link {
    font-size: 3rem;
  }
}

.footer-social {
  display: flex;
  gap: 0.25rem;
  margin-top: auto;
}

@media (min-width: 1024px) {
  .footer-social {
    gap: 1.375rem;
  }
}

@media (min-width: 1536px) {
  .footer-social {
    gap: 2rem;
  }
}

.footer-social img {
  width: 15px;
  height: 15px;
}

@media (min-width: 1024px) {
  .footer-social img {
    width: 24px;
    height: 24px;
  }
}

@media (min-width: 1536px) {
  .footer-social img {
    width: 36px;
    height: 36px;
  }
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .footer-links {
    gap: 1.25rem;
  }
}

@media (min-width: 1536px) {
  .footer-links {
    gap: 2rem;
  }
}

.footer-link {
  font-family: 'Manrope', sans-serif;
  font-size: 0.5625rem;
}

@media (min-width: 1024px) {
  .footer-link {
    font-size: 1.25rem;
    line-height: 2.875rem;
  }
}

@media (min-width: 1536px) {
  .footer-link {
    font-size: 1.75rem;
    line-height: 4.0625rem;
  }
}

/* Blog Card */
.blog-card {
  background: var(--base-100);
  overflow: hidden;
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card .content {
  padding: 1.5rem;
}

.blog-card .date {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Programs Section */
.program-card {
  padding: 3rem;
}

.program-card.variant {
  background: var(--pink-accent);
}

.program-card.default {
  background: var(--primary);
  color: white;
}

/* Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

.animate-delay-4 {
  animation-delay: 0.4s;
}

.animate-delay-5 {
  animation-delay: 0.5s;
}

/* Features container - horizontal scroll */
.features-container,
.features {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 1.25rem;
  padding-bottom: 0.75rem;
  max-width: 100%;
  overflow-x: auto;
}

/* Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

/* Infinity SVG Animation */
svg.infinity path {
  stroke-dasharray: 4288.37px;
  stroke-dashoffset: 4288.37px;
  transition: stroke-dashoffset 1.7s ease-in-out 0.2s;
}

svg.infinity.active path {
  stroke-dashoffset: 0;
}

/* Stroke color for primary */
.stroke-primary {
  stroke: var(--primary);
}

/* Portfolio scrollbar variant */
.scrollbar-variant::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

@media (min-width: 1024px) {
  .scrollbar-variant::-webkit-scrollbar {
    width: 16px;
    height: 16px;
  }
}

@media (min-width: 1536px) {
  .scrollbar-variant::-webkit-scrollbar {
    width: 22px;
    height: 22px;
  }
}

.scrollbar-variant::-webkit-scrollbar-track {
  background: #fff;
  border-radius: 14px;
}

@media (min-width: 1536px) {
  .scrollbar-variant::-webkit-scrollbar-track {
    border-radius: 20px;
  }
}

.scrollbar-variant::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 14px;
}

@media (min-width: 1536px) {
  .scrollbar-variant::-webkit-scrollbar-thumb {
    border-radius: 20px;
  }
}

/* Select dropdown styling */
select option {
  background: var(--secondary);
  color: white;
}

/* Portfolio Collapse/Accordion Transitions */
.collapse-table {
  transition: background-color 0.3s ease;
}

.collapse-table[open] {
  background-color: var(--primary);
}

.collapse-table .collapse-text {
  transition: color 0.3s ease;
}

.collapse-table[open] .collapse-text {
  color: white !important;
}

.collapse-table .short-description {
  transition: opacity 0.3s ease;
}

.collapse-table[open] .short-description {
  opacity: 0;
}

.collapse-table summary {
  transition: all 0.3s ease;
}

.collapse-table summary:hover {
  background-color: var(--primary);
}

.collapse-table summary:hover .collapse-text {
  color: white !important;
}

.collapse-table summary:hover .short-description {
  color: white !important;
}

/* Ensure SVG icons change color on hover */
.collapse-table summary:hover svg {
  color: white !important;
}

.collapse-table[open] svg {
  color: white !important;
}

/* Collapse icons positioning and transitions */
.collapse-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

.collapse-icon[data-plus] {
  z-index: 2;
  opacity: 1;
}

.collapse-icon[data-minus] {
  z-index: 1;
  opacity: 0;
}

.collapse-table[open] .collapse-icon[data-plus] {
  opacity: 0;
}

.collapse-table[open] .collapse-icon[data-minus] {
  opacity: 1;
}

/* Collapse content animation */
.collapse-table .collapse-content {
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

/* Remove default details marker */
details summary::-webkit-details-marker,
details summary::marker {
  display: none;
}

/* Grid for Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

/* Responsive - Mobile Only (max-width: 1023px) */
@media (max-width: 1023px) {
  /* Containers full width with padding on mobile/tablet */
  [class*="w-[63.43%]"],
  [class*="w-[66.67%]"],
  [class*="w-[79.73%]"] {
    width: 100% !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  /* Header on mobile */
  header > div[class*="w-[83.23%]"] {
    width: 100% !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  /* Footer on mobile */
  .footer-container {
    width: 100% !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  /* Fullscreen menu on mobile */
  .fullscreen-menu-header {
    width: 100% !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  /* Hero title on mobile */
  .hero-title {
    font-size: 2.5rem !important;
    line-height: 1.05 !important;
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem !important;
  }

  /* Tighter padding on very small screens */
  header > div,
  .footer-container,
  .fullscreen-menu-header,
  [class*="w-[63.43%]"],
  [class*="w-[66.67%]"],
  [class*="w-[79.73%]"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* Founder avatars */
.founder-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  margin-left: -10px;
}

.founder-avatar:first-child {
  margin-left: 0;
}

/* LinkedIn icon */
.linkedin-icon {
  width: 24px;
  height: 24px;
  transition: opacity 0.3s ease;
}

.linkedin-icon:hover {
  opacity: 0.7;
}
