@tailwind base;
@tailwind components;
@tailwind utilities;

/* Your custom styles below */


@font-face {
    font-family: 'cs-brian';
    src: url('CSBrian-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
  }

  

  @font-face {
    font-family: 'jetbrains';
    src: url('JetBrainsMono-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }

  @font-face {
    font-family: 'Billion Monoline';
    src: url('The Billion Monoline.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }

  @font-face {
    font-family: 'Griffith';
    src: url('Griffiths.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
  }


html, body {
    margin: 0;
    padding: 0;
}

body {
    background-color: black; 
    overflow-x: hidden;
}




/* Updates Section Styles - BEGIN */

/* Bouncing ball effect */
.glow-background {
  background: radial-gradient(circle at center, rgba(45, 255, 0, 0.4) 0%, rgba(45, 255, 0, 0.15) 40%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  position: absolute;
  width: 300px;
  height: 300px;
  filter: blur(30px);
  pointer-events: none;
  /* Animation will be handled by JavaScript for bouncing effect */
}

/* Update item animations */
.update-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.update-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.update-item:nth-child(1) {
  transition-delay: 0.1s;
}

.update-item:nth-child(2) {
  transition-delay: 0.3s;
}

.update-item:nth-child(3) {
  transition-delay: 0.5s;
}

/* Update content hover effect */
.update-content {
  transition: all 0.3s ease;
  border: 1px solid rgba(45, 255, 0, 0.1);
  box-shadow: 0 0 15px rgba(45, 255, 0, 0.05);
}

.update-content:hover {
  border-color: rgba(45, 255, 0, 0.3);
  box-shadow: 0 0 20px rgba(45, 255, 0, 0.15);
  transform: translateY(-2px);
}

/* Updates Ball Notification Styles - BEGIN */
#updates-ball {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 70px;
  height: 70px;
  transition: transform 0.3s ease;
  z-index: 50;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(45, 255, 0, 0.4);
}

#updates-ball:hover {
  transform: scale(1.1);
}

.updates-ball-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(45, 255, 0, 0.6) 0%, rgba(45, 255, 0, 0.3) 40%, rgba(45, 255, 0, 0.1) 70%);
  filter: blur(8px);
  z-index: 1;
  animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
  0% {
    opacity: 0.7;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Alexa-like wave animation */
.wave-container {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  border-radius: 38%;
  transform-origin: center bottom;
}

.wave1 {
  opacity: 0.9;
  animation: wave1 3s infinite ease-in-out;
  height: 60%;
  background: rgba(255, 255, 255, 0.7);
}

.wave2 {
  opacity: 0.7;
  animation: wave2 5s infinite ease-in-out;
  height: 70%;
  background: rgba(180, 255, 180, 0.6);
}

.wave3 {
  opacity: 0.5;
  animation: wave3 7s infinite ease-in-out;
  height: 80%;
  background: rgba(45, 255, 0, 0.4);
}

@keyframes wave1 {
  0% {
    transform: translate(-50%, 0) rotate(0deg);
  }
  50% {
    transform: translate(-50%, -10%) rotate(180deg);
  }
  100% {
    transform: translate(-50%, 0) rotate(360deg);
  }
}

@keyframes wave2 {
  0% {
    transform: translate(-50%, 0) rotate(45deg);
  }
  50% {
    transform: translate(-50%, -15%) rotate(225deg);
  }
  100% {
    transform: translate(-50%, 0) rotate(405deg);
  }
}

@keyframes wave3 {
  0% {
    transform: translate(-50%, 0) rotate(90deg);
  }
  50% {
    transform: translate(-50%, -20%) rotate(270deg);
  }
  100% {
    transform: translate(-50%, 0) rotate(450deg);
  }
}

/* Updates Modal Styles */
#updates-modal {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

#updates-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 0 30px rgba(45, 255, 0, 0.2);
  border: 1px solid rgba(45, 255, 0, 0.1);
}

#updates-modal.active .modal-content {
  transform: translateY(0);
}

.modal-backdrop {
  transition: opacity 0.3s ease;
}

#close-modal {
  transition: transform 0.2s ease;
}

#close-modal:hover {
  transform: rotate(90deg);
}

/* Updates Section Styles - END */

/* Updates Section - OpenAI Style */
#updates-section {
  position: relative;
  background-color: #000;
}

.updates-grid {
  position: relative;
  z-index: 10;
}

.update-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s ease;
}

.update-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(45, 255, 0, 0.15);
}

.hover\:shadow-glow:hover {
  box-shadow: 0 0 20px rgba(45, 255, 0, 0.2);
}

.glow-background {
  background: radial-gradient(circle at center, rgba(45, 255, 0, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(60px);
  opacity: 0.6;
  animation: pulse-subtle 8s infinite alternate;
}

@keyframes pulse-subtle {
  0% {
    opacity: 0.4;
    transform: scale(0.95);
  }
  100% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

/* Auto-scrolling Updates Section */
.updates-scroll-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
}

.updates-scroll-track {
  display: flex;
  animation: scrollUpdates 30s linear infinite;
}

.updates-scroll-track:hover {
  animation-play-state: paused;
}

@keyframes scrollUpdates {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-380px * 3 - 2rem * 6)); /* Width of 3 cards + their margins */
  }
}

/* Gradient fade effect on edges */
.updates-scroll-container::before,
.updates-scroll-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 10%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.updates-scroll-container::before {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent);
}

.updates-scroll-container::after {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.8), transparent);
}

/* Enhanced card styling for image backgrounds */
.update-card {
  transition: all 0.5s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transform-origin: center;
}

.update-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(45, 255, 0, 0.25);
}

/* Active card styling */
.update-card.active-card {
  z-index: 10;
  box-shadow: 0 10px 30px rgba(45, 255, 0, 0.4);
  transition: all 0.5s ease;
}

.update-card.active-card img {
  filter: brightness(0.85) contrast(1.2) saturate(1.1);
}

.update-card.active-card .card-content {
  background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,0.3) 100%);
}

.update-card img {
  transition: all 0.5s ease;
  filter: brightness(0.8) contrast(1.1);
}

.update-card:hover img {
  transform: scale(1.05);
  filter: invert(0.1) brightness(0.7) contrast(1.3) saturate(1.2);
}

/* Card content styling */
.card-content {
  transition: all 0.3s ease;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0) 100%);
}

.update-card:hover .card-content {
  background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,0.2) 100%);
}

/* BEGIN: Updates Section Styles */
/* These styles can be easily removed if needed */


.updates-section-wrapper {
  width: 100%;
  overflow-x: hidden;
  position: relative;
  margin-top: 5rem !important;
  margin-bottom: 5rem !important;
}


/* .updates-section {
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(-30%);
  position: relative;
  left: 50%;
  padding: 20px;
  background-color: #000;
  
} */

/* Modify your existing .updates-section */
/* OLD CENTER-ALIGNED LAYOUT - COMMENTED OUT FOR EASY REVERSAL
.updates-section {
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(-30%);
  position: relative;
  left: 50%;
  padding: 20px;
  background-color: #000;
  width: auto;
  max-width: none;
}
*/

/* NEW LEFT-ALIGNED LAYOUT */
.updates-section {
  display: flex;
  align-items: center;
  padding: 40px 5%;
  background-color: #000;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 40px;
}


.updates-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  font-family: 'jetbrains';
  min-width: 200px;
  position: relative;
  z-index: 20;
}

.updates-text h2, .updates-text p {
  color: #fff;
}

.updates-text button {
  background: none;
  border: none;
  padding: 0;
  outline: none;
}

.updates-text svg {
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.updates-text button:hover svg {
  transform: scale(1.1);
}

.updates-text svg circle {
  fill: black;
  transition: fill 0.3s ease;
}

.updates-text button:hover svg circle {
  fill: #2DFF00;
}

.updates-text svg path {
  fill: white;
  transition: fill 0.3s ease;
}

.updates-text button:hover svg path {
  fill: black;
}

.updates-cards {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* Hide scrollbar for cleaner look */
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask: linear-gradient(90deg, transparent, white 5%, white 95%, transparent);
  mask: linear-gradient(90deg, transparent, white 5%, white 95%, transparent);
}

.updates-cards::-webkit-scrollbar {
  display: none;
}




.card {
  position: relative;
  padding: 20px 30px;
  border-radius: 8px;
  color: #fff;
  min-width: 250px;
  width: 250px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Different gradient backgrounds for each card - matching site aesthetic */
.updates-cards .card:nth-child(1) {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.updates-cards .card:nth-child(2) {
  background: linear-gradient(135deg, #111111 0%, #0a0a0a 100%);
}

.updates-cards .card:nth-child(3) {
  background: linear-gradient(135deg, #0f0f0f 0%, #151515 100%);
}

.updates-cards .card:nth-child(4) {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.updates-cards .card:nth-child(5) {
  background: linear-gradient(135deg, #111111 0%, #0a0a0a 100%);
}

/* Default background for any additional cards */
.updates-cards .card {
  background: linear-gradient(135deg, #0f0f0f 0%, #151515 100%);
}

/* Subtle pattern overlay */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.01) 0px,
      rgba(255, 255, 255, 0.01) 1px,
      transparent 1px,
      transparent 15px
    );
  pointer-events: none;
}

/* Subtle glow accent */
.card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 20% 80%,
    rgba(45, 255, 0, 0.08) 0%,
    transparent 50%
  );
  pointer-events: none;
}

/* Green accent line */
.card h3::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #2DFF00;
  opacity: 1;
}

.card h3 {
  font-family: 'jetbrains';
  position: relative;
  z-index: 1;
}

.card p {
  font-family: 'jetbrains';
  position: relative;
  z-index: 1;
  opacity: 1 !important;
}



/* Add this to the end of your updates section styles */

/* Simple horizontal scroll styles */
.updates-section {
  position: relative;
}

/* Container setup for horizontal scroll */
.updates-cards {
  position: relative;
  padding: 20px 0;
  -webkit-mask: linear-gradient(90deg, transparent, white 5%, white 95%, transparent);
  mask: linear-gradient(90deg, transparent, white 5%, white 95%, transparent);
}

/* Cards setup - remove all transforms */
.updates-cards .card {
  transition: transform 0.3s ease;
  transform: none !important;
  opacity: 1 !important;
}

/* Force opacity on all card children */
.updates-cards .card,
.updates-cards .card * {
  opacity: 1 !important;
}

/* Simple shadow */
.updates-cards .card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* No hover effect - cards stay static */

/* Media query for smaller screens */
@media (max-width: 768px) {
  .updates-section {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 5%;
    gap: 20px;
  }
  
  .updates-text {
    align-items: flex-start;
    text-align: left;
    margin-bottom: 20px;
  }
  
  .updates-cards {
    width: 100%;
    max-width: 100%;
  }
  
  .card {
    min-width: 250px;
    width: 250px;
  }
}
  
  .updates-text h2 {
    font-size: 1.75rem;
  }
  
  .updates-text p {
    font-size: 0.9rem;
  }
  
  .updates-text svg {
    width: 40px;
    height: 40px;
  }


/* Extra small screens */
@media (max-width: 480px) {
  .card {
    width: 200px;
  }
}



/* END: Updates Section Styles */


/* BEGIN: Workshop Section Styles */
.workshop-section {
  font-family: 'jetbrains', monospace;
}

/* Article wrapper */
.workshop-article {
  position: relative;
}

/* Article card styling - optimized */
.article-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Hover effect - white background with black text */
.workshop-article:hover .article-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.8);
}

.workshop-article:hover .article-content h3,
.workshop-article:hover .article-content p,
.workshop-article:hover .article-meta {
  color: #000 !important;
}

.workshop-article:hover .article-meta span {
  color: #666 !important;
}

/* Article content */
.article-content {
  position: relative;
  z-index: 1;
}

/* Line clamp for description */
.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* View All button styling */
.workshop-view-all {
  font-family: 'jetbrains', monospace;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  background: #2DFF00;
  color: black;
}

.workshop-view-all:hover {
  background: #fff;
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .workshop-section h2 {
    font-size: 2.5rem;
  }
  
  .article-card {
    padding: 20px;
  }
  
  .article-number span {
    font-size: 3rem;
  }
}
/* END: Workshop Section Styles */


/* BEGIN: Articles Page Styles */
/* Filter buttons */
.filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #9ca3af;
  font-family: 'jetbrains', monospace;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.filter-btn.active {
  background: #2DFF00;
  color: #000;
  border-color: #2DFF00;
}

/* Article cards on articles page - optimized */
.articles-grid .article-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  height: 100%;
  transition: all 0.3s ease;
}

.articles-grid .article-item:hover .article-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.8);
}

.articles-grid .article-item:hover .article-content span,
.articles-grid .article-item:hover .article-content h3,
.articles-grid .article-item:hover .article-content p,
.articles-grid .article-item:hover .article-meta {
  color: #000 !important;
}

.articles-grid .article-item:hover .article-meta span {
  color: #666 !important;
}

/* Slide-in panel */
.article-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 800px;
  height: 100vh;
  background: #000;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: right 0.4s ease;
  overflow-y: auto;
  font-family: 'jetbrains', monospace;
}

.article-panel.active {
  right: 0;
}

.panel-header {
  position: sticky;
  top: 0;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  z-index: 10;
}

.close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px;
  color: #fff;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.panel-content {
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
}

/* Panel overlay - optimized */
.panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Article body typography */
.article-body {
  line-height: 1.8;
  color: #e5e7eb;
}

.article-body h2 {
  color: #fff;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-body h3 {
  color: #fff;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-body ul {
  color: #e5e7eb;
}

.article-body p {
  margin-bottom: 1rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .article-panel {
    width: 100%;
    max-width: none;
  }
  
  .panel-content {
    padding: 20px;
  }
  
  .filter-btn {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
}
/* END: Articles Page Styles */





/* Accordion styling */
/* Override Flowbite accordion styles to maintain text color */
[data-accordion="collapse"] button {
    color: #f3f4f6 !important; /* text-gray-100 equivalent */
    background-color: transparent !important;
    font-family: 'Inter', sans-serif !important;
}

[data-accordion="collapse"] button[aria-expanded="true"] {
    color: #f3f4f6 !important;
    background-color: transparent !important;
}

/* Make SVG icon white */
[data-accordion="collapse"] img {
    filter: brightness(0) invert(1); /* Makes the SVG white */
}

/* Keep content background - let individual accordion styling work */

/* Fix for blue background when expanded - removed to let individual styling work */

/* Target all accordion content - removed to let individual styling work */

/* Target all accordion content children - removed background override */
#accordion-collapse-body-1 *,
#accordion-collapse-body-2 *,
#accordion-collapse-body-3 *,
#accordion-collapse-body-4 *,
#accordion-collapse-body-5 * {
    /* Let individual accordion styling work */
}

/* More generic selector - removed background override */

/* Target all elements inside any accordion body */
[id^="accordion-collapse-body-"] * {
    font-family: 'Inter', sans-serif !important;
}

/* Force all accordion panels to have transparent background */
.accordion-panel {
    background-color: transparent !important;
}

/* Ensure second accordion matches first accordion exactly */
#accordion-collapse-body-2 .p-4 {
    background-color: transparent !important;
}

/* CRITICAL: Make all three accordions use EXACT same styling */
#accordion-collapse-body-1 p,
#accordion-collapse-body-2 p,
#accordion-collapse-body-3 p,
#accordion-collapse-body-1 div p,
#accordion-collapse-body-2 div p,
#accordion-collapse-body-3 div p {
    font-family: 'Inter', sans-serif !important;
    color: #ffffff !important;
    font-size: 1rem !important; /* 16px */
    line-height: 1.625 !important; /* leading-relaxed */
    font-weight: 400 !important; /* Normal weight - matching Tailwind default */
}

/* Make first accordion tiles match black background */
#accordion-collapse .rounded-lg {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease;
}

#accordion-collapse .rounded-lg:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px);
}

/* Update accordion buttons for first accordion - Override inline Tailwind classes */
#accordion-collapse .accordion-button.bg-gray-50 {
    background-color: #000000 !important;
    color: white !important;
    border: none !important;
}

#accordion-collapse .accordion-button.bg-gray-50:hover {
    background-color: #000000 !important;
    color: white !important;
}

#accordion-collapse .accordion-button.bg-gray-50:focus {
    background-color: #000000 !important;
    color: white !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Also target without the class for safety */
#accordion-collapse .accordion-button {
    background-color: #000000 !important;
    color: white !important;
    border: none !important;
}

#accordion-collapse .accordion-button:hover {
    background-color: #000000 !important;
    color: white !important;
}

#accordion-collapse .accordion-button:focus {
    background-color: #000000 !important;
    color: white !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Fix arrow icons for first accordion */
#accordion-collapse .accordion-button img {
    filter: brightness(0) invert(1) !important;
}

/* Marquee Animation Styles */
@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes scroll-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.scroller {
    overflow: hidden;
}

.scroller[data-animated="true"] {
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller[data-animated="true"] .scroller__inner {
    width: max-content;
    flex-wrap: nowrap;
    animation: scroll-left 40s linear infinite; /* Default animation */
}

.scroller[data-direction="left"] .scroller__inner {
    animation-name: scroll-left;
}

.scroller[data-direction="right"] .scroller__inner {
    animation-name: scroll-right;
}

.scroller:hover .scroller__inner {
    animation-play-state: paused;
}
/* End Marquee Styles */

/* ===== Mobile Navigation Styles ===== */
.mobile-menu-container {
    position: absolute;
    top: calc(100% + 0.25rem); /* Position below the pill nav */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px; /* Max width for the dropdown */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 25; /* Ensure it's below the main nav pill but above content */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: auto; /* Enable clicks on menu items */
}

.mobile-menu-container.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mobile-menu-container .pill-nav-item {
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
}
/* ===== End Mobile Navigation Styles ===== */

/* ===== FOOTER STYLES (MOVED TO END TO OVERRIDE CSS/STYLE.CSS) ===== */

.footer{
  background: url('4.png') center center / cover no-repeat;
  background-size: cover !important;
  background-position: center center !important;
  animation: none !important;
  position: relative;
  margin-top: 0 !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  bottom: 0;
  z-index: 1;
}

/* Use 1.jpg for smaller screens to prevent animation issue */
@media (max-width: 768px) {
  .footer {
    background: url('1.jpg') center center / cover no-repeat;
  }
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  z-index: 1;
}

.footer h1{
  font-family: 'cs-brian';
  color: white;
  position: relative;
  z-index: 2;
}

.footer-content {
  width: 100%;
  padding: 2rem 4rem;
}

/* Fix for footer layout intrusion issue */
.footer-left {
  flex: 0 0 auto;
  max-width: 45%;
  width: 45%;
}

.footer-right {
  flex: 1 1 auto;
  max-width: 55%;
  width: 55%;
  overflow: hidden;
}

.footer-right .text-mask-text {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.footer-right {
  align-self: center;
}

.footer-content {
  flex-direction: column;
}

.footer-right {
  margin-top: 1rem;
  padding: 0 0 1rem 0;
}

.footer h1 {
  font-size: 3rem;
}

.footer-right .text-mask-text {
  font-size: 1.125rem;
}

@media (max-width: 767px) {
  .footer-content {
    padding: 1.5rem 2rem;
    flex-direction: column;
  }
  
  .footer-left {
    max-width: 100%;
    width: 100%;
    margin-bottom: 2rem;
  }
  
  .footer-right {
    max-width: 100%;
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    padding: 2rem 4rem;
  }
  
  .footer-left {
    max-width: 45%;
    width: 45%;
  }
  
  .footer-right {
    margin-top: 0;
    padding-right: 0;
    padding-top: 2rem;
    max-width: 55%;
    width: 55%;
  }
  
  .footer h1 {
    font-size: 3.75rem;
  }
  
  .footer-right .text-mask-text {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .footer-content {
    padding: 2rem 6rem;
  }
  
  .footer h1 {
    font-size: 4.5rem;
  }
  
  .footer-right .text-mask-text {
    font-size: 1.5rem;
  }
}

/* ===== END FOOTER STYLES ===== */

/* ===== TIMELINE ANIMATION STYLES ===== */

/* Stat Annotation Styles */
.stat-annotation {
    position: relative;
    min-height: 80px;
}

.annotation-line {
    transition: height 0.4s ease, opacity 0.4s ease;
}

.annotation-text {
    transition: opacity 0.5s ease;
}

.annotation-text p {
    line-height: 1.5;
    text-align: center;
}

/* Mobile Stat Annotation Styles */
.mobile-stat-annotation {
    position: relative;
    min-height: 60px;
}

.mobile-annotation-line {
    transition: height 0.4s ease, opacity 0.4s ease;
}

.mobile-annotation-text {
    transition: opacity 0.5s ease;
}

.mobile-annotation-text p {
    line-height: 1.5;
    text-align: left;
}

/* ===== END TIMELINE ANIMATION STYLES ===== */

/* ===== ASSOCIATES PAGE STYLES ===== */

/* Associates Accordion - Exact Same Effects as White Accordion */
/* Since inline styles are removed, associates accordion will inherit white-accordion class styles */
/* Just ensure any specific overrides are clean */

#associates-accordion .accordion-button {
    background-color: #000000 !important;
    color: white !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#associates-accordion .accordion-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(125, 0, 102, 0.15), rgba(255, 0, 3, 0.15), transparent);
    transition: left 0.5s ease;
}

#associates-accordion .accordion-button:hover::before {
    left: 100%;
}

#associates-accordion .accordion-button img {
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
}

#associates-accordion .accordion-button:hover img {
    transform: rotate(45deg);
    filter: brightness(0) invert(1);
}

/* Associates Accordion Dropdown Styling */
#associates-accordion [id^="associates-accordion-body-"] {
    background: transparent !important;
}

#associates-accordion [id^="associates-accordion-body-"] .p-4 {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px);
}

#associates-accordion [id^="associates-accordion-body-"] p,
#associates-accordion [id^="associates-accordion-body-"] h4,
#associates-accordion [id^="associates-accordion-body-"] li,
#associates-accordion [id^="associates-accordion-body-"] strong {
    color: white !important;
    font-size: 1rem !important; /* text-base equivalent */
}

/* Modern Team Slider Styles */
.associate-slider-mask {
    position: relative;
}

.associate-slider-mask::before,
.associate-slider-mask::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.associate-slider-mask::before {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8), transparent);
}

.associate-slider-mask::after {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.8), transparent);
}

.team-card {
    position: relative;
    overflow: hidden;
}

.team-card img {
    transition: all 0.4s ease;
    display: block;
}

.team-card-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

.team-card-overlay p {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.slider-nav-btn {
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    background: rgba(255, 255, 255, 0.03) !important; 
    border: 1px solid rgba(255, 255, 255, 0.1) !important; 
    color: white; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

.slider-nav-btn:hover {
    background: rgba(45, 255, 0, 0.1) !important;
    border-color: #2DFF00 !important;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(45, 255, 0, 0.2);
}

.slider-nav-btn svg {
    transition: transform 0.3s ease;
}

.slider-nav-btn:hover svg {
    transform: scale(1.2);
    stroke: #2DFF00;
}

/* Responsive Styles for Team Section */
@media (max-width: 768px) {
    .team-section-title {
        font-size: 2rem !important;
        letter-spacing: 0.05em !important;
        margin-bottom: 1rem !important;
    }

    .team-section-description {
        font-size: 0.875rem !important;
        margin-bottom: 2rem !important;
    }

    .associate-slider-mask {
        margin: 0 -1rem !important;
    }

    .associate-slider-mask::before,
    .associate-slider-mask::after {
        width: 50px;
    }

    #team-slider-track {
        gap: 1.5rem !important;
        padding: 1rem 1rem !important;
    }

    .team-card {
        flex: 0 0 220px !important;
    }

    .slider-nav-btn {
        width: 50px !important;
        height: 50px !important;
    }

    .slider-nav-btn svg {
        width: 20px;
        height: 20px;
    }

    .team-nav-container {
        margin-top: 2rem !important;
        padding: 0 0.5rem !important;
    }
}

@media (max-width: 480px) {
    .team-section-title {
        font-size: 1.5rem !important;
        letter-spacing: 0.03em !important;
    }

    .team-section-description {
        font-size: 0.8rem !important;
    }

    .team-card {
        flex: 0 0 180px !important;
    }

    #team-slider-track {
        gap: 1rem !important;
    }

    .slider-nav-btn {
        width: 45px !important;
        height: 45px !important;
    }
}

/* ===== END ASSOCIATES PAGE STYLES =====*/
