/* Megethos Heritage Group - Additional Styles */

:root {
  /* Brand Colors - updated color scheme */
  --brand-bg: #0f0f0f;
  --brand-primary: #06b6d4; /* Teal */
  --brand-secondary: #8b5cf6; /* Purple */
  --brand-accent: #f59e0b; /* Amber for accents */
  --brand-muted: #9ca3af;
  --brand-card: #1f2937;
  --brand-cardLight: #374151;
  --brand-text: #ffffff;

  /* Fonts */
  --font-display: 'Inter', sans-serif;
  --font-sans: 'Inter', sans-serif;
}

/* Tailwind Brand Color Extensions */
.bg-brand-bg {
  background-color: var(--brand-bg);
}

.text-brand-bg {
  color: var(--brand-bg);
}

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

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

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

.text-brand-purple {
  color: var(--brand-purple);
}

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

.text-brand-muted {
  color: var(--brand-muted);
}

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

.text-brand-card {
  color: var(--brand-card);
}

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

.text-brand-cardLight {
  color: var(--brand-cardLight);
}

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

.border-brand-cardLight {
  border-color: var(--brand-cardLight);
}

.border-brand-yellow {
  border-color: var(--brand-yellow);
}

.border-brand-purple {
  border-color: var(--brand-purple);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--brand-bg);
  color: var(--brand-text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: var(--brand-bg);
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--brand-text);
  padding: 0.75rem 2rem;
  border: 1px solid var(--brand-muted);
  border-radius: 0.5rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--brand-purple);
  color: var(--brand-purple);
}

.card {
  background-color: var(--brand-card);
  border: 1px solid var(--brand-cardLight);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--brand-purple);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
}

/* Navigation */
.nav-link {
  color: var(--brand-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-primary);
}



/* Grid Layouts */
.grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* Responsive Grid Adjustments */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}


/* Desktop-specific fixes for alternating layouts using flexbox */
@media (min-width: 1024px) {
  .alternating-layout {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
  }

  .alternating-layout:nth-child(even) {
    flex-direction: row-reverse;
  }

  .content-order {
    flex: 1;
    padding: 2rem;
  }
}

/* Text Utilities */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.font-display {
  font-family: var(--font-display);
  font-weight: 700;
}

.font-bold {
  font-weight: bold;
}

.font-light {
  font-weight: 300;
}

.text-sm {
  font-size: 0.875rem;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.py-12 {
  padding: 3rem 0;
}

.py-16 {
  padding: 4rem 0;
}

.py-20 {
  padding: 5rem 0;
}

.py-24 {
  padding: 6rem 0;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Flex Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}




/* Desktop Layout Improvements */
@media (min-width: 1024px) {
  .container {
    max-width: 1280px;
    padding: 0 2rem;
  }
  
  /* Fix for existing flexbox layouts */
  .flex {
    display: flex;
  }
  
  .flex-col {
    flex-direction: column;
  }
  
  .lg\:flex-row {
    display: flex;
    flex-direction: row;
  }
  
  .lg\:flex-row-reverse {
    display: flex;
    flex-direction: row-reverse;
  }
  
  .md\:flex-row {
    display: flex;
    flex-direction: row;
  }
  
  /* Better spacing for content sections */
  .lg\:flex-row,
  .lg\:flex-row-reverse,
  .md\:flex-row,
  .md\:flex-row-reverse {
    gap: 3rem;
    align-items: center;
  }
  
  /* Improve content distribution */
  .lg\:flex-row > *,
  .lg\:flex-row-reverse > *,
  .md\:flex-row > *,
  .md\:flex-row-reverse > * {
    flex: 1;
  }
  
  /* Better text sizing on desktop */
  .lg\:text-4xl {
    font-size: 3rem;
    line-height: 1.1;
  }
  
  .lg\:text-3xl {
    font-size: 2.25rem;
    line-height: 1.2;
  }
}


/* Fix for company and program card layouts */
.company-card {
  background-color: var(--brand-card);
  border: 1px solid var(--brand-cardLight);
  border-radius: 1.5rem;
  padding: 3rem;
  margin-bottom: 3rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: row;
  gap: 3rem;
  align-items: center;
}

.company-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
}

.program-card {
  background-color: var(--brand-card);
  border: 1px solid var(--brand-cardLight);
  border-radius: 1.5rem;
  overflow: hidden;
  margin-bottom: 3rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: row;
  gap: 3rem;
  align-items: center;
}

.program-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
}

/* Mobile responsive for cards */
@media (max-width: 768px) {
  .company-card,
  .program-card {
    flex-direction: column;
    gap: 1.5rem;
  }
}


/* Removed duplicate alternating layout CSS */

/* Responsive */
@media (max-width: 768px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .text-4xl {
    font-size: 2rem;
  }

  .text-3xl {
    font-size: 1.5rem;
  }

  .text-2xl {
    font-size: 1.25rem;
  }

  .py-24 {
    padding: 4rem 0;
  }

  .py-20 {
    padding: 3rem 0;
  }

  /* Prevent horizontal overflow on mobile */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }

  body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Ensure containers don't overflow */
  .container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Fix modal positioning and sizing on mobile */
  .fixed {
    position: fixed !important;
  }

  .inset-0 {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
  }

  /* Modal close button visibility */
  .absolute.top-4.right-4 {
    top: 1rem !important;
    right: 1rem !important;
    z-index: 60 !important;
  }

  /* Consistent button sizing on mobile */
  .btn-primary,
  .btn-secondary,
  button[type="submit"],
  a[class*="bg-gradient"],
  a[class*="border"] {
    min-height: 3rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  /* Consistent text sizing */
  h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  h2 {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }

  h3 {
    font-size: 1.5rem !important;
    line-height: 1.4 !important;
  }

  p, span, div {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  /* Small text consistency */
  .text-sm, .text-xs {
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
  }

  /* Large text consistency */
  .text-lg, .text-xl {
    font-size: 1.125rem !important;
    line-height: 1.5 !important;
  }
}

/* Enhanced Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-shimmer {
  animation: shimmer 3s infinite;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.1), transparent);
  background-size: 200% 100%;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-gradient-shift {
  animation: gradientShift 4s ease infinite;
  background-size: 200% 200%;
}

.animate-pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* Glassmorphism Effects */
.glass {
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background-color: rgba(17, 25, 40, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.125);
}

/* Enhanced Button Styles */
.btn-enhanced {
  position: relative;
  overflow: hidden;
  background: linear-gradient(45deg, #06b6d4, #8b5cf6);
  transition: all 0.3s ease;
}

.btn-enhanced::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: left 0.5s;
}

.btn-enhanced:hover::before {
  left: 100%;
}

.btn-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

/* Advanced Card Hover Effects */
.card-advanced {
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-advanced::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(45deg, #06b6d4, #8b5cf6, #06b6d4);
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: subtract;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-advanced:hover::before {
  opacity: 1;
}

.card-advanced:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Gradient Text Effects */
.gradient-text {
  background: linear-gradient(135deg, #06b6d4, #8b5cf6, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

/* Custom Scrollbar Enhancements */
.custom-scrollbar-enhanced::-webkit-scrollbar {
  width: 8px;
}

.custom-scrollbar-enhanced::-webkit-scrollbar-track {
  background: rgba(31, 41, 55, 0.5);
  border-radius: 4px;
}

.custom-scrollbar-enhanced::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #06b6d4, #8b5cf6);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.custom-scrollbar-enhanced::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0ea5e9, #a855f7);
}

/* Responsive Animation Adjustments */
@media (max-width: 768px) {
  .animate-fade-in-up {
    animation-duration: 0.6s;
  }

  .card-advanced:hover {
    transform: translateY(-4px) scale(1.01);
  }
}

/* Loading States */
.loading-shimmer {
  position: relative;
  overflow: hidden;
}

.loading-shimmer::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 1.5s infinite;
  content: '';
}

/* Focus States for Accessibility */
.btn-enhanced:focus,
.card-advanced:focus {
  outline: 2px solid #06b6d4;
  outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .animate-fade-in-up,
  .animate-shimmer,
  .animate-float,
  .animate-gradient-shift,
  .animate-pulse-glow {
    animation: none;
  }

  .card-advanced,
  .btn-enhanced {
    transition: none;
  }

  .card-advanced:hover,
  .btn-enhanced:hover {
    transform: none;
  }
}

/* Lucide Icons CSS */
.lucide {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
}

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: var(--brand-card);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--brand-purple);
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--brand-primary);
}
