/* AI Team Website Global Styles */

:root {
  /* AI Team Brand Colors */
  --color-white-bg: #FFFFFF;
  --color-purple-dark-bg: #1D1B39;
  --color-accent-pink: #BC7D85;
  --color-accent-purple-grey: #63719C;
  --color-primary-green: #008AA4;
  --color-primary-green-light: #01D8DD;
  --color-secondary-orange: #FC8B2A;
  --color-secondary-orange-light: #F68B2F;
  
  /* Extended Color System */
  --color-white: #FFFFFF;
  --color-light-gray: #F8F9FA;
  --color-medium-gray: #6C757D;
  --color-dark-gray: #343A40;
  --color-black: #000000;
  
  /* Semantic Colors */
  --color-success: #28a745;
  --color-warning: #ffc107;
  --color-danger: #dc3545;
  --color-info: #17a2b8;
  
  /* Transition Duration */
  --transition-duration: 0.8s;
}

/* Override Bulma primary colors */
.has-background-primary {
  background-color: var(--color-primary-green) !important;
}

a.has-text-primary {
  color: var(--color-primary-green) !important;
}

a.has-text-primary:hover {
  color: var(--color-primary-green-light) !important;
}

.has-text-info {
  color: var(--color-info) !important;
}

.has-text-accent {
  color: var(--color-accent-pink) !important;
}

.button.is-primary {
  background-color: var(--color-primary-green);
  border-color: var(--color-primary-green);
}

.button.is-primary:hover {
  background-color: var(--color-primary-green-light);
  border-color: var(--color-primary-green-light);
}

.has-text-secondary {
  color: var(--color-secondary-orange) !important;
}

/* Typography */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
}

/* Global link styling */
a {
  color: var(--color-primary-green);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-secondary-orange);
  text-decoration: none;
}

a:focus {
  outline: 2px solid var(--color-primary-green-light);
  outline-offset: 2px;
  border-radius: 2px;
}

strong {
  color: var(--color-purple-dark-bg);
}

/* Navigation */
.ai-navbar {
  background: linear-gradient(135deg, var(--color-purple-dark-bg) 20%, var(--color-primary-green) 100%, var(--color-secondary-orange) 107%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-height: 7.5rem;
}

.ai-navbar .navbar-brand {
  min-height: 7.5rem;
}

.ai-logo-container {
  padding: 0.75rem 1rem !important;
  display: flex;
  align-items: center;
}

.ai-navbar .ai-logo {
  height: 4rem !important;
  width: auto !important;
  max-width: 400px !important;
  max-height: none !important;
  object-fit: contain;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.ai-navbar .navbar-item {
  color: var(--color-white);
  font-weight: 500;
  transition: all var(--transition-duration) ease;
}

.ai-navbar .navbar-item:hover,
.ai-navbar .navbar-item.is-active {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-primary-green-light);
}

/* Remove hover effect from social media buttons container */
.ai-navbar .navbar-item:has(.ai-social-buttons):hover {
  background-color: transparent;
  color: var(--color-white);
}

.ai-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-green-light) !important;
}

/* Hero Section - General */
.ai-hero {
  background: linear-gradient(135deg, var(--color-purple-dark-bg) 10%, var(--color-primary-green) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 5rem !important;
}

/* Gradient overlay */
.ai-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.ai-hero .hero-body {
  position: relative;
  z-index: 2;
  padding: 6rem 1.5rem;
}

.ai-logo {
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

/* Section */
.section {
  padding-top: 3rem !important;
  padding-bottom: 7rem !important;
}

.section .title {
  margin-bottom: 3rem !important;
}

/* Research Cards - General */
.ai-research-card {
  height: 100%;
  transition: all var(--transition-duration) ease;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(30px);
}

.ai-research-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ai-research-card .title {
  color: var(--color-purple-dark-bg);
}

/* Latest Publications Section */
.ai-latest-section {
  background: linear-gradient(135deg, var(--color-purple-dark-bg) 10%, var(--color-primary-green) 100%);
}

/* Book Section */
.ai-book-cover {
  width: 100%;
  height: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.ai-book-hero strong {
  color: var(--color-primary-green-light) !important;
}

.ai-book-section {
  background: var(--color-light-gray);
}

/* Footer */
.ai-footer {
  background: linear-gradient(135deg, var(--color-purple-dark-bg) 15%, var(--color-primary-green) 100%, var(--color-secondary-orange) 107%);
  color: var(--color-white);
}

.ai-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ai-footer-links li {
  margin-bottom: 0.5rem;
}

.ai-footer-links a {
  transition: color var(--transition-duration) ease;
}

.ai-footer-links a:hover {
  color: var(--color-primary-green-light) !important;
}

.ai-footer-divider {
  background-color: rgba(255, 255, 255, 0.2);
  height: 1px;
  margin: 2rem 0 1rem 0;
}

.ai-footer-logo {
  height: 90px !important;
  opacity: 1;
}

.madgik-logo {
  height: 50px !important;
  opacity: 1;
  filter: invert(1);
}

.ai-footer-logos {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.ai-footer-logos a {
  display: inline-block;
  transition: transform var(--transition-duration) ease, opacity var(--transition-duration) ease;
}

.ai-footer-logos a:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

/* Social Media Buttons */
.ai-social-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.ai-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
  transition: all var(--transition-duration) ease;
  text-decoration: none !important;
  font-size: 1.2rem;
}

.ai-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: var(--color-white) !important;
}

.ai-social-btn.github:hover {
  background: var(--color-purple-dark-bg);
}

.ai-social-btn.linkedin:hover {
  background: var(--color-purple-dark-bg);
}

.ai-social-btn.twitter:hover {
  background: var(--color-purple-dark-bg);
}

/* Navbar social buttons - smaller and more subtle */
.navbar .ai-social-buttons {
  gap: 0.5rem;
  margin-left: 1rem;
}

.navbar .ai-social-btn {
  width: 35px;
  height: 35px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.05);
}

/* Navbar social button icon color transitions */
.navbar .ai-social-btn i {
  transition: color var(--transition-duration) ease;
}

.navbar .ai-social-btn.github:hover i {
  color: var(--color-primary-green-light);
}

.navbar .ai-social-btn.linkedin:hover i {
  color: var(--color-primary-green-light);
}

.navbar .ai-social-btn.twitter:hover i {
  color: var(--color-primary-green-light);
}

/* Footer social buttons */
.ai-footer .ai-social-buttons {
  justify-content: flex-start;
  margin-top: 4rem;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .ai-hero .hero-body {
    padding: 3rem 1.5rem;
  }
  
  .ai-hero .title.is-1 {
    font-size: 2.5rem;
  }
  
  .ai-hero .subtitle.is-3 {
    font-size: 1.5rem;
  }
  
  .ai-logo {
    max-height: 150px;
  }
}

/* Utility classes */
.ai-section-title {
  color: var(--color-purple-dark-bg);
  margin-bottom: 2rem;
  position: relative;
  text-align: center;
}

.ai-section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(45deg, var(--color-primary-green), var(--color-secondary-orange));
  border-radius: 2px;
}

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

.ai-section-subtitle {
  color: var(--color-medium-gray) !important;
  font-weight: 400 !important;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
  text-align: center;
}

.ai-text-gradient {
  background: linear-gradient(45deg, var(--color-primary-green), var(--color-secondary-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Cards that should animate */
.card:not(.ai-fade-in) {
  opacity: 0;
  transform: translateY(30px);
}

.ai-fade-in {
  animation: fadeInUp 1.2s ease-out forwards !important;
}

/* Scroll behavior */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Focus styles for accessibility */
.button:focus,
.navbar-item:focus {
  outline: 2px solid var(--color-primary-green-light);
  outline-offset: 2px;
}

/* Tab functionality styles */
.tab-pane {
  display: none;
}

.tab-pane.is-active {
  display: block;
}

.tabs ul {
  border-bottom: 1px solid var(--color-medium-gray);
}

.tabs li a {
  color: var(--color-dark-gray) !important;
  border-color: transparent;
  transition: all var(--transition-duration) ease;
}

.tabs li.is-active a {
  color: var(--color-primary-green) !important;
  background-color: var(--color-light-gray);
  border-color: var(--color-medium-gray);
  border-bottom-color: var(--color-light-gray) !important;
}

.tabs li:hover a {
  background-color: var(--color-light-gray);
  color: var(--color-purple-dark-bg) !important;
}

.tabs li.is-active:hover a {
  background-color: var(--color-light-gray);
  color: var(--color-primary-green) !important;
}

/* Scroll to Top Button */
.scroll-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border: none;
  background: linear-gradient(135deg, var(--color-primary-green), var(--color-primary-green-light));
  color: white;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 138, 164, 0.3);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-duration) ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.scroll-to-top-btn:hover {
  background: linear-gradient(135deg, var(--color-primary-green-light), var(--color-secondary-orange));
  transform: translateY(0) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 138, 164, 0.4);
  color: white;
}

.scroll-to-top-btn:focus {
  outline: 2px solid var(--color-primary-green-light);
  outline-offset: 2px;
}

.scroll-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top-btn .icon {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive adjustments for scroll button */
@media screen and (max-width: 768px) {
  .scroll-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 480px) {
  .scroll-to-top-btn {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Print styles */
@media print {
  .navbar,
  .ai-footer,
  .scroll-to-top-btn {
    display: none;
  }
  
  .ai-hero {
    background: none !important;
    color: black !important;
  }
}