/* HiStyle Studios CMS - Custom Styles */

:root {
  --primary-color: #246394;
  --secondary-color: #0d2445;
  --accent-pink: #fa3185;
  --accent-burgundy: #8e0023;
  --dark-color: #0d2445;
  --light-color: #f8f9fa;
  --accent-color: #246394;
  --text-dark: #0d2445;
  --text-light: #6c757d;
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

/* Navigation Styles */
.navbar {
  background: rgba(13, 36, 69, 0.95) !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-slide {
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(13, 36, 69, 0.7), rgba(36, 99, 148, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Section Styles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 3rem;
}

/* Service Cards */
.service-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  border: none;
}

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

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-content {
  padding: 2rem;
}

.service-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.service-description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.service-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Service Category Cards */
.service-category-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  border: none;
  position: relative;
  min-height: 350px;
}

.service-category-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.service-category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-category-card:hover::before {
  opacity: 1;
}

.service-category-content {
  padding: 3rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.service-category-icon {
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.service-category-card:hover .service-category-icon {
  transform: scale(1.1);
}

.service-category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  text-align: center;
}

.service-category-description {
  color: var(--text-light);
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.6;
}

.service-category-card .btn {
  border-radius: 30px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(36, 99, 148, 0.3);
}

.service-category-card .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(36, 99, 148, 0.4);
}

/* Portfolio Items */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: scale(1.05);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(13, 36, 69, 0.9), rgba(36, 99, 148, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-info {
  text-align: center;
  color: white;
}

.portfolio-info h5 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.portfolio-info p {
  margin-bottom: 1rem;
  opacity: 0.9;
}

/* Blog Cards */
.blog-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  border: none;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

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

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.blog-category {
  background: var(--accent-pink);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.blog-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.blog-excerpt {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* Companies Slider */
.companies-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.company-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  min-width: 150px;
  height: 80px;
}

.company-item:hover {
  transform: translateY(-5px);
}

.company-item img {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
}

.company-item h5 {
  font-size: 1rem;
  color: var(--text-dark);
  text-align: center;
}

/* Partners Slider */
.partners-slider-container {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.partners-slider {
  display: flex;
  align-items: center;
  animation: slideLeft 30s linear infinite;
  gap: 3rem;
  width: 200%; /* Ensure enough width for seamless loop */
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  min-width: 180px;
  height: 100px;
  flex-shrink: 0;
}

.partner-item:hover {
  transform: translateY(-5px);
  /* Pause animation on hover */
  animation-play-state: paused;
}

.partner-item img {
  max-width: 140px;
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
  /* Add error handling for missing images */
  background: #f8f9fa;
  border-radius: 5px;
}

.partner-item:hover img {
  filter: grayscale(0%);
}

.partner-name {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.partner-name h5 {
  font-size: 1.1rem;
  color: var(--text-dark);
  text-align: center;
  font-weight: 600;
  margin: 0;
  padding: 0.5rem;
}

/* Enhanced Button Styles - Apply gradient to all buttons on client-facing pages */
.btn,
button:not(.navbar-toggler):not(.btn-close):not(.carousel-control-prev):not(.carousel-control-next),
input[type="submit"],
input[type="button"],
.filter-btn,
.page-link,
.social-links .btn {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-pink)) !important;
  border: none !important;
  color: white !important;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(36, 99, 148, 0.3);
  text-decoration: none;
}

.btn:hover,
button:not(.navbar-toggler):not(.btn-close):not(.carousel-control-prev):not(.carousel-control-next):hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.filter-btn:hover,
.page-link:hover,
.social-links .btn:hover {
  background: linear-gradient(135deg, var(--accent-burgundy), var(--accent-pink)) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 49, 133, 0.4);
  color: white !important;
}

/* Override for specific button variants that need different styling */
.btn-outline-primary,
.btn-outline-secondary {
  background: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-pink)) !important;
  color: white !important;
}

/* Team Cards */
.team-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  text-align: center;
}

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

.team-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.team-content {
  padding: 2rem;
}

.team-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.team-position {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.team-bio {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Enhanced view bio button styling */
.view-bio-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-pink)) !important;
  border: none !important;
  border-radius: 25px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(36, 99, 148, 0.3);
  color: white !important;
  display: inline-block !important;
  text-decoration: none;
}

.view-bio-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 49, 133, 0.4);
  background: linear-gradient(135deg, var(--accent-burgundy), var(--accent-pink)) !important;
  color: white !important;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.team-social a {
  color: var(--text-light);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(36, 99, 148, 0.5);
}

.team-social a:hover {
  color: white;
  background: var(--accent-pink);
  transform: translateY(-3px);
}

/* Team modal enhancements */
.modal-content {
  border-radius: 15px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: white;
  border-radius: 15px 15px 0 0;
  border-bottom: none;
}

.modal-header .btn-close {
  filter: invert(1);
}

.modal-body {
  padding: 2rem;
}

/* Contact Form */
.contact-form {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.contact-info {
  background: var(--dark-color);
  color: white;
  border-radius: 15px;
  padding: 2rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-info a {
  color: var(--accent-pink);
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  color: var(--primary-color);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--accent-pink);
  margin-right: 1rem;
  width: 30px;
}

/* Footer */
footer {
  background: var(--dark-color) !important;
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.social-links h6 {
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
  width: 100%;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent-pink);
  color: white !important;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
  font-size: 1.2rem;
}

.social-link:hover {
  transform: translateY(-3px);
  background: var(--primary-color);
  color: white !important;
}

.social-link i {
  color: white !important;
  font-size: 1.1rem;
}

.social-links .btn {
  border-radius: 20px;
  font-size: 0.85rem;
  padding: 8px 16px;
  transition: all 0.3s ease;
}

.social-links .btn:hover {
  transform: translateY(-2px);
}

/* Team page specific styles */
.team-page .section-title {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Call to action section styling */
.bg-primary {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .company-item {
    min-width: 120px;
  }

  /* Responsive styles for partners slider */
  .partner-item {
    min-width: 150px;
    height: 80px;
    padding: 0.8rem 1.5rem;
  }

  .partner-item img {
    max-width: 120px;
    max-height: 60px;
  }

  .partners-slider {
    animation-duration: 25s;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  /* Mobile responsive styles for partners slider */
  .partner-item {
    min-width: 130px;
    height: 70px;
    padding: 0.5rem 1rem;
  }

  .partner-item img {
    max-width: 100px;
    max-height: 50px;
  }

  .partners-slider {
    animation-duration: 20s;
    gap: 2rem;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent-pink), var(--primary-color)) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 49, 133, 0.4);
}

/* Pagination */
.pagination {
  justify-content: center;
}

.page-link {
  border-radius: 50%;
  margin: 0 5px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-item.active .page-link {
  background: linear-gradient(135deg, var(--accent-pink), var(--primary-color)) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 49, 133, 0.4);
}

/* Add missing slideLeft keyframe animation for partners slider */
@keyframes slideLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
