/* Main Styles for Macramé Consultants Website */

:root {
  --primary: #e52725; /* Red from Macramé logo */
  --secondary: #1a365d; /* Navy blue complementary color */
  --dark: #212529;
  --light: #f8f9fa;
  --white: #ffffff;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --gray-dark: #343a40;
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
}

/* Global Styles */
body {
  font-family: var(--font-secondary);
  color: var(--dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #c8211f; /* Darker shade of primary */
}

.z-index-1 {
  z-index: 1;
}

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

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

.bg-secondary {
  background-color: var(--secondary) !important;
}

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

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #c8211f;
  border-color: #c8211f;
}

.btn-outline-primary {
  color: black;
  border-color: var(--primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary);
  color: white;
}

.pt-6 {
  padding-top: 5rem;
}

.pt-7 {
  padding-top: 6rem;
}
 .new{
             height:70px;
             width:68px;
             color:white !important;
             font-size: 30px;
} 
.pb-6 {
  padding-bottom: 5rem;
}

.pb-7 {
  padding-bottom: 6rem;
}

.py-6 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.py-7 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

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

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

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

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

.my-6 {
  margin-top: 5rem;
  margin-bottom: 5rem;
}

.my-7 {
  margin-top: 6rem;
  margin-bottom: 6rem;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
}

/* Navbar */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-dark {
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent dark background */
  backdrop-filter: blur(5px); /* Blur effect for better readability */
}

.navbar-light {
  background-color: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
  padding: 0.75rem 0;
}

.navbar-brand img {
  transition: all 0.3s ease;
}

.scrolled .navbar-brand img {
  transform: scale(0.9);
}

.navbar-nav {
  gap: 0.5rem;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Text shadow for better visibility */
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: white;
  background-color: rgba(229, 39, 37, 0.2); /* Subtle highlight */
}

.navbar-light .navbar-nav .nav-link {
  color: var(--dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary);
  background-color: rgba(229, 39, 37, 0.05); /* Subtle highlight */
}

.dropdown-menu {
  border-radius: 0.5rem;
  padding: 1rem;
  border-top: 3px solid var(--primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  margin-top: 0;
  background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent white background */
  min-width: 250px; /* Ensure minimum width for dropdown */
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-item {
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  color: var(--dark);
  font-weight: 500;
  margin-bottom: 0.25rem;
  border-left: 3px solid transparent; /* Prepare for hover effect */
}

.dropdown-item:hover {
  background-color: rgba(229, 39, 37, 0.1);
  color: var(--primary);
  border-left-color: var(--primary); /* Left border accent on hover */
  transform: translateX(5px); /* Slight shift on hover */
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  color: white;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

/* Services Section */
.service-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  border-radius: 15px;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card .card-body {
  position: relative;
  z-index: 1;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(229, 39, 37, 0.1) 0%, rgba(26, 54, 93, 0.1) 100%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.animated-bg {
  position: relative;
}

.animated-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(229, 39, 37, 0.03) 0%, rgba(26, 54, 93, 0.03) 100%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.animated-bg:hover::before {
  opacity: 1;
}

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

.team-card:hover {
  transform: translateY(-10px);
}

.team-img-container {
  position: relative;
  overflow: hidden;
}

.team-img-container img {
  width: 100%;
  transition: transform 0.6s ease;
}

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

.team-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  height: 50%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.team-card:hover .team-overlay {
  opacity: 1;
}

.team-social {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.team-card:hover .team-social {
  transform: translateY(0);
  opacity: 1;
}

.team-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.team-social a:hover {
  background-color: white;
  color: var(--primary);
}

.team-info {
  padding: 1.5rem;
  text-align: center;
}

/* Testimonials */
.testimonial-card {
  padding: 2rem;
  border-radius: 15px;
  background-color: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card::before {
  content: '\201C';
  font-family: Georgia, serif;
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 3rem;
  color: rgba(229, 39, 37, 0.1);
}

/* Stats Section */
.stat-card {
  text-align: center;
  padding: 2rem;
  border-radius: 15px;
  background-color: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
}

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

/* Custom Animations and Effects */
.gif-hover {
  transform: scale(1.05);
}

.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

/* Custom CSS for animations and hover effects */
.hover-lift {
  transition: transform 0.3s ease;
}

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

@media (max-width: 992px) {
  .navbar {
    background-color: var(--white);
    padding: 0.75rem 0;
  }
  
  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }
  
  .navbar-dark .navbar-nav .nav-link {
    color: var(--dark);
  }
  
  .navbar-dark .navbar-nav .nav-link:hover,
  .navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
  }
  
  .dropdown-menu {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    position: static !important;
    float: none !important;
    box-shadow: none !important;
    border: none !important;
    background-color: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 100% !important;
  }
  
  .dropdown.show > .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    background-color: var(--white) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
    border-radius: 10px !important;
    padding: 1rem !important;
    margin-top: 0.5rem !important;
  }
  
  .hero-section {
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  .display-4 {
    font-size: 2.20rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    
    min-height: 500px;
  }
  
  .display-4 {
    margin-top:30px;
    font-size: 2rem;
  }
  
  .btn-lg {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
  }
}

/* Image in background settings */
.object-fit-cover {
  object-fit: cover;
}

/* Custom animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.animate-fadeUp {
  animation: fadeUp 0.6s ease forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Animate Sequential Elements */
.animate-sequential {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.animate-sequential.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Checkbox Styling */
.custom-checkbox {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 16px;
  user-select: none;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
  border-radius: 5px;
}

.custom-checkbox:hover input ~ .checkmark {
  background-color: #ddd;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--primary);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox .checkmark:after {
  left: 9px;
  top: 5px;
  width: 7px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* Form Styling */
.custom-form .form-control {
  height: 50px;
  border-radius: 25px;
  padding-left: 20px;
  padding-right: 20px;
  border: 1px solid #ced4da;
  transition: all 0.3s ease;
}

.custom-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(229, 39, 37, 0.25);
}

.custom-form textarea.form-control {
  height: auto;
  border-radius: 15px;
  padding: 15px 20px;
}

.custom-form .form-label {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Added for team profiles and GIFs */
.profile-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-card:hover .profile-caption {
  opacity: 1;
}

.gif-container {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gif-container img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.gif-container:hover img {
  transform: scale(1.05);
}

/* Breadcrumbs styling */
.breadcrumb {
  background: transparent;
}

.breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* Added for page transitions */
.page-transition {
  animation: pageTransition 0.5s ease;
}

@keyframes pageTransition {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Added for the flag icons in team profiles */
.flag-icon {
  margin-right: 5px;
  vertical-align: middle;
}

/* Added for team profile tabs and skills */
.skill-bar {
  height: 8px;
  margin-bottom: 30px;
  background-color: #eee;
  border-radius: 4px;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 4px;
  background-color: var(--primary);
  position: relative;
  width: 0;
  transition: width 1.5s ease;
}

/* Timeline styling for team profiles */
.timeline-item {
  padding-left: 30px;
  position: relative;
  padding-bottom: 30px;
  border-left: 2px solid #eee;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary);
}

/* Awards and publications styling */
.award-item, .publication-item {
  transition: all 0.3s ease;
}

.award-item:hover, .publication-item:hover {
  transform: translateY(-5px);
}

/* Sender icon style */
.sender-icon {
  font-size: 1.5rem;
  color: var(--primary);
  background-color: transparent !important;
  box-shadow: none !important;
  display: inline-block;
  vertical-align: middle;
}

/* Flying animation */
@keyframes flyRightFadeOut {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateX(150px) translateY(-20px) rotate(45deg);
    opacity: 0;
  }
}

.fly-animation {
  animation: flyRightFadeOut 1s forwards;
}

/* Confirmation message style */
#confirmationMessage {
  font-size: 1.2rem;
  color: #28a745; /* Bootstrap green */
  font-weight: 600;
  margin-top: 15px;
  display: none;
}
