/* EDMS Custom Color Theme */
/* Pink to Orange Gradient Branding */

:root {
  /* EDMS Brand Colors */
  --edms-pink: #e25a8a;
  --edms-coral: #ff6b6b;
  --edms-orange: #ff8c52;
  --edms-gradient: linear-gradient(135deg, #e25a8a 0%, #ff6b6b 50%, #ff8c52 100%);
  
  /* Override Bootstrap primary color */
  --bs-primary: #ff6b6b;
  --bs-primary-rgb: 255, 107, 107;
  --bs-link-color: #ff6b6b;
  --bs-link-hover-color: #e25a8a;
  --bs-link-active-color: #e25a8a;
  --bs-link-focus-color: #e25a8a;
  
  /* Kill all blue */
  --bs-blue: #ff6b6b;
  --bs-info: #ff6b6b;
}

/* Primary Button with Gradient - Kill ALL blue */
.btn-primary,
.btn-primary:link,
.btn-primary:visited,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus,
.btn-primary:focus-visible,
button.btn-primary,
a.btn-primary {
  background: linear-gradient(135deg, #e25a8a 0%, #ff6b6b 50%, #ff8c52 100%) !important;
  border: none !important;
  border-color: transparent !important;
  color: white !important;
  font-weight: 600;
  transition: all 0.3s ease;
  outline: none !important;
  box-shadow: none !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d14979 0%, #ff5252 50%, #ff7a3d 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(226, 90, 138, 0.3) !important;
  color: white !important;
}

.btn-primary:active,
.btn-primary:focus,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, #d14979 0%, #ff5252 50%, #ff7a3d 100%) !important;
  box-shadow: 0 5px 10px rgba(226, 90, 138, 0.3) !important;
  color: white !important;
  outline: none !important;
  border: none !important;
}

/* Navigation with gradient on scroll - Transparent with strong shadows */
#mainNav {
  transition: all 0.3s ease;
  background-color: transparent !important;
}

#mainNav .navbar-brand:hover {
  color: white !important;
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.8),
    -1px -1px 2px rgba(255, 255, 255, 0.3);
}

#mainNav.navbar-shrink .navbar-brand {
  color: #ff6b6b !important;
  text-shadow: none !important;
}

/* Navbar links with gradient colors and strong shadow */
#mainNav .navbar-nav .nav-link {
  color: #ff6b6b !important;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.8),
    -1px -1px 2px rgba(255, 255, 255, 0.3);
}

#mainNav .navbar-nav .nav-link:hover,
#mainNav .navbar-nav .nav-link:focus,
#mainNav .navbar-nav .nav-link:active,
#mainNav .navbar-nav .nav-link.active {
  color: white !important;
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.8),
    -1px -1px 2px rgba(255, 255, 255, 0.3);
  outline: none !important;
  box-shadow: none !important;
}

#mainNav .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  transition: width 0.3s ease;
}

#mainNav .navbar-nav .nav-link:hover::after {
  width: 80%;
}

/* Navbar when scrolled (shrink state) - add background for readability */
#mainNav.navbar-shrink {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#mainNav.navbar-shrink .navbar-nav .nav-link {
  color: #ff6b6b !important;
  text-shadow: none;
}

#mainNav.navbar-shrink .navbar-brand {
  color: #ff6b6b !important;
  text-shadow: none !important;
}

#mainNav.navbar-shrink .navbar-nav .nav-link:hover,
#mainNav.navbar-shrink .navbar-nav .nav-link:focus,
#mainNav.navbar-shrink .navbar-nav .nav-link:active,
#mainNav.navbar-shrink .navbar-nav .nav-link.active {
  color: #e25a8a !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Navbar on light background pages (like login) - clean and solid */
body:not(#page-top) #mainNav {
  background-color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body:not(#page-top) #mainNav .navbar-brand {
  color: #ff6b6b !important;
  text-shadow: none !important;
}

body:not(#page-top) #mainNav .navbar-nav .nav-link {
  color: #ff6b6b !important;
  text-shadow: none !important;
  font-weight: 600;
}

body:not(#page-top) #mainNav .navbar-nav .nav-link:hover {
  color: #e25a8a !important;
}

body:not(#page-top) #mainNav .navbar-nav .nav-link::after {
  display: none;
}

/* Remove any default Bootstrap blue focus colors */
.nav-link:focus,
.nav-link:active,
a:focus,
a:active {
  outline: none !important;
  box-shadow: none !important;
  color: #ff6b6b !important;
}

/* Override Bootstrap's default link focus color */
:focus {
  outline: none !important;
  box-shadow: none !important;
}

:focus-visible {
  outline: 2px solid rgba(255, 107, 107, 0.5) !important;
  outline-offset: 2px;
}

/* Kill any blue that might appear */
a, a:link, a:visited, a:hover, a:active, a:focus {
  color: inherit;
  text-decoration: none;
}

/* Force navbar links to never be blue */
#mainNav a,
#mainNav a:link,
#mainNav a:visited,
#mainNav a:hover,
#mainNav a:active,
#mainNav a:focus {
  color: rgba(255, 107, 107, 0.8) !important;
  text-decoration: none !important;
}

/* Specific override for clicked state */
#mainNav .navbar-nav .nav-link:active:focus {
  color: #ff6b6b !important;
  background: linear-gradient(135deg, #e25a8a 0%, #ff8c52 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Mobile menu toggle button */
#mainNav .navbar-toggler {
  border-color: rgba(255, 107, 107, 0.5);
  color: #ff6b6b;
}

#mainNav .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.3);
}

#mainNav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 107, 107, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Section headings with gradient accent */
h1, h2.section-heading {
  position: relative;
}

h2.section-heading::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(135deg, #e25a8a 0%, #ff8c52 100%);
  border-radius: 2px;
}

/* Cards hover effect with gradient border */
.card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.card:hover {
  border-image: linear-gradient(135deg, #e25a8a 0%, #ff6b6b 50%, #ff8c52 100%);
  border-image-slice: 1;
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(226, 90, 138, 0.2);
}

/* Catalogue and Projects section headings with EDMS gradient */
#catalogue h2,
#projects h2 {
  background: linear-gradient(135deg, #e25a8a 0%, #ff6b6b 50%, #ff8c52 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Projects section - Use Cases styling */
.projects-section .project h4 {
  background: linear-gradient(135deg, #e25a8a 0%, #ff6b6b 50%, #ff8c52 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  color: transparent !important;
}

/* Catalogue cards - add subtle gradient accent on hover */
#catalogue .card {
  transition: all 0.3s ease;
}

#catalogue .card:hover {
  box-shadow: 0 10px 25px rgba(226, 90, 138, 0.15);
}

#catalogue .card-title {
  color: #333;
  transition: color 0.3s ease;
}

#catalogue .card:hover .card-title {
  background: linear-gradient(135deg, #e25a8a 0%, #ff6b6b 50%, #ff8c52 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* General links with gradient underline */
a:not(.btn):not(.navbar-brand):not(.nav-link) {
  color: #ff6b6b;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

a:not(.btn):not(.navbar-brand):not(.nav-link):hover {
  color: #e25a8a;
}

a:not(.btn):not(.navbar-brand):not(.nav-link)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(135deg, #e25a8a 0%, #ff8c52 100%);
  transition: width 0.3s ease;
}

a:not(.btn):not(.navbar-brand):not(.nav-link):hover::after {
  width: 100%;
}

/* Footer with gradient accent */
.footer {
  background: linear-gradient(135deg, rgba(226, 90, 138, 0.1) 0%, rgba(255, 140, 82, 0.1) 100%), #000;
}

/* Masthead SVG Logo responsive sizing */
@media (max-width: 768px) {
  .masthead svg {
    width: 300px;
    height: 105px;
  }
}

@media (max-width: 480px) {
  .masthead svg {
    width: 250px;
    height: 87px;
  }
}

/* Animated gradient background for special sections */
.gradient-bg {
  background: linear-gradient(135deg, #e25a8a 0%, #ff6b6b 50%, #ff8c52 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

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

/* Colorful icon for projects section */
.project-icon {
  background: linear-gradient(135deg, #e25a8a 0%, #ff8c52 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 3rem;
  font-weight: bold;
}

/* About Section - EDMS branded with background image */
.about-section {
  position: relative;
  background: url('https://images.unsplash.com/photo-1449824913935-59a10b8d2000?w=1600&h=900&fit=crop') !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  background-size: cover !important;
  padding-top: 8rem !important;
  padding-bottom: 8rem !important;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.85) 15%, rgba(0, 0, 0, 0.75) 50%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 0;
}

.about-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.95) 30%, rgba(0, 0, 0, 0.85) 60%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

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

.about-section h2 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 3.5rem;
  background: linear-gradient(135deg, #e25a8a 0%, #ff6b6b 50%, #ff8c52 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}

.about-section .text-white-50 {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 1.08rem;
  line-height: 1.8;
  font-weight: 400;
}

.about-section p {
  margin-bottom: 2rem;
}

.about-section p:last-child {
  margin-bottom: 0;
}

/* Login page link hover effects */
.login-link {
  color: #666 !important;
  transition: color 0.3s ease;
}

.login-link:hover {
  color: #ff6b6b !important;
}

/* Smooth scrolling enhancement */
html {
  scroll-behavior: smooth;
}

/* Language toggle button - clean arrow design */
.lang-toggle-btn {
  background-color: transparent !important;
  border: 1px solid rgba(255, 107, 107, 0.6) !important;
  color: #ff6b6b !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  padding: 0.4rem 0.8rem !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.5 !important;
  height: auto !important;
  vertical-align: middle !important;
  border-radius: 0.375rem !important;
}

.lang-toggle-btn:hover {
  background-color: rgba(255, 107, 107, 0.1) !important;
  border-color: rgba(255, 107, 107, 0.9) !important;
  color: #ff6b6b !important;
  transform: translateX(2px);
}

.lang-toggle-btn:active,
.lang-toggle-btn:focus {
  outline: none !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25) !important;
}

.lang-toggle-btn #langArrow {
  font-size: 0.65rem;
  transition: transform 0.3s ease;
  margin-left: 0.25rem;
}

.lang-toggle-btn:hover #langArrow {
  transform: translateX(2px);
}

/* Ensure proper alignment in navbar */
#mainNav .navbar-nav .nav-item:last-child {
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}

/* Language button alignment with nav links */
#mainNav .navbar-nav .nav-item:last-child .lang-toggle-btn {
  margin-top: 0;
  margin-bottom: 0;
  height: calc(1.5em + 0.75rem + 2px);
  display: inline-flex;
  align-items: center;
}

/* Match navbar link styling when navbar is transparent */
#mainNav:not(.navbar-shrink) .lang-toggle-btn {
  border-color: rgba(255, 107, 107, 0.8) !important;
  color: #ff6b6b !important;
}

/* Match navbar link styling when navbar is scrolled */
#mainNav.navbar-shrink .lang-toggle-btn {
  border-color: rgba(255, 107, 107, 0.8) !important;
  color: #ff6b6b !important;
}

/* Selection color matching brand */
::selection {
  background: #ff6b6b;
  color: white;
}

::-moz-selection {
  background: #ff6b6b;
  color: white;
}

