/* Custom styling for the footer */
:root {
  --main-bg-color: #5a189a;
  --navbar-bg-color: #240046;
  --text-color: #ffffff;
  --accent-color: #ff9e00;
  --section-bg-color: #3c096c;
  --font-family: "Poppins", sans-serif;
}

/* Instagram Insights Portfolio Section Styling */
.insights-showcase {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f5ff 0%, #eee4ff 100%);
  position: relative;
  overflow: hidden;
}

.insights-showcase::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="%235a189a" stroke-opacity="0.08" stroke-width="1"/></svg>');
  opacity: 0.5;
}

/* Mobile device frames */
.insights-container {
  position: relative;
  z-index: 10;
}

.insights-item {
  margin-bottom: 30px;
  transition: all 0.4s ease;
}

.insights-item:hover {
  transform: translateY(-15px);
}

.mobile-frame {
  background: linear-gradient(
    45deg,
    var(--main-bg-color),
    var(--section-bg-color)
  );
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 25px 50px rgba(90, 24, 154, 0.3);
  position: relative;
  max-width: 330px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.mobile-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background: var(--navbar-bg-color);
  border-radius: 0 0 15px 15px;
  z-index: 2;
}

.mobile-screen {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
}

.mobile-screen img {
  width: 100%;
  display: block;
  border-radius: 30px;
}

/* Content styling */
.insights-content {
  text-align: center;
  padding: 25px 20px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(36, 0, 70, 0.12);
  margin-top: -50px;
  position: relative;
  z-index: 20;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #f0f0f0;
}

.insights-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(45deg, var(--main-bg-color), var(--accent-color));
  border-radius: 3px 3px 0 0;
}

.insights-content h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(
    45deg,
    var(--main-bg-color),
    var(--section-bg-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.insights-content p {
  color: #636e72;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Stats display */
.insights-stats {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.stat-item {
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  background: rgba(90, 24, 154, 0.05);
  min-width: 90px;
}

.stat-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--main-bg-color);
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.7rem;
  color: #636e72;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Bottom CTA section */
.insights-cta {
  text-align: center;
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(36, 0, 70, 0.1);
  margin-top: 50px;
  position: relative;
  border-top: 3px solid var(--main-bg-color);
}

.insights-cta h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  background: linear-gradient(
    45deg,
    var(--main-bg-color),
    var(--navbar-bg-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.insights-cta p {
  max-width: 600px;
  margin: 0 auto 25px;
  color: #636e72;
  line-height: 1.6;
}

/* Button styling */
.btn-accent {
  background: linear-gradient(45deg, var(--main-bg-color), #3c096c);
  color: var(--text-color);
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(90, 24, 154, 0.4);
}

.btn-accent:hover {
  background: linear-gradient(45deg, #7b2cbf, var(--main-bg-color));
  color: var(--text-color);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(90, 24, 154, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced Footer Styling */
.footer {
  background: linear-gradient(135deg, var(--navbar-bg-color) 0%, #1a0033 100%);
  color: var(--text-color);
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent-color),
    var(--main-bg-color),
    var(--accent-color)
  );
}

.footer::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ff9e00" fill-opacity="0.1" d="M0,192L48,176C96,160,192,128,288,138.7C384,149,480,203,576,224C672,245,768,235,864,197.3C960,160,1056,96,1152,80C1248,64,1344,96,1392,112L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: top;
  opacity: 0.7;
}

.footer .container {
  position: relative;
  z-index: 10;
}

.footer-badge {
  display: inline-block;
  padding: 8px 15px;
  background: linear-gradient(
    45deg,
    var(--main-bg-color),
    var(--section-bg-color)
  );
  border-radius: 30px;
  color: var(--text-color);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-tagline {
  color: var(--accent-color);
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-weight: 600;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.footer-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(255, 158, 0, 0.5),
    rgba(90, 24, 154, 0.2)
  );
  transition: all 0.4s ease;
  z-index: -1;
}

.footer-links a:hover {
  color: var(--text-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.footer-links a:hover::before {
  width: 100%;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.social-icons a {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.social-icons a:hover {
  background: var(--accent-color);
  color: var(--text-color);
  transform: translateY(-5px) rotate(360deg);
  box-shadow: 0 10px 20px rgba(255, 158, 0, 0.3);
}

.social-icons a i {
  font-size: 1.2rem;
}

.copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.8); /* Increased opacity for better visibility */
  font-size: 0.95rem;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  font-weight: 500;
}

/* Footer Animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.footer-brand-logo {
  max-width: 180px;
  margin: 0 auto 30px;
  display: block;
  animation: float 6s ease-in-out infinite;
}

.footer-tagline {
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 30px;
  color: var(--accent-color);
  letter-spacing: 1px;
}

/* Enhanced Contact Section Styling */
#contact.section {
  background: linear-gradient(
    135deg,
    var(--section-bg-color) 0%,
    var(--main-bg-color) 100%
  );
  padding: 80px 0;
  position: relative;
  color: var(--text-color);
}

#contact.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><path d="M30 5L55 30L30 55L5 30L30 5Z" stroke="%23ffffff" stroke-opacity="0.1" fill="none"/></svg>');
  opacity: 0.3;
}

#contact .section-title h2 {
  color: var(--text-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

#contact .section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 3px;
}

#contact form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  margin-top: 30px;
}

#contact .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--text-color);
  padding: 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#contact .form-control:focus {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(255, 158, 0, 0.3);
  border-color: var(--accent-color);
}

#contact .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.btn-custom {
  background: linear-gradient(45deg, var(--accent-color), #ff7b00);
  color: var(--text-color);
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 20px rgba(255, 158, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(45deg, #ff7b00, var(--accent-color));
  transition: all 0.5s ease;
  z-index: -1;
}

.btn-custom:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(255, 158, 0, 0.4);
  color: var(--text-color);
}

.btn-custom:hover::before {
  width: 100%;
}

/* Contact floating elements */
.contact-floating-element {
  position: absolute;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, var(--main-bg-color), transparent);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  animation: float-element 15s infinite linear;
  z-index: 1;
}

.floating-1 {
  top: 20%;
  left: 10%;
  animation-duration: 20s;
}

.floating-2 {
  bottom: 30%;
  right: 15%;
  width: 150px;
  height: 150px;
  animation-duration: 25s;
  animation-delay: 2s;
}

.floating-3 {
  bottom: 10%;
  left: 30%;
  width: 80px;
  height: 80px;
  animation-duration: 18s;
  animation-delay: 5s;
  background: linear-gradient(45deg, var(--accent-color), transparent);
}

@keyframes float-element {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(100px, 50px) rotate(90deg);
  }
  50% {
    transform: translate(50px, 100px) rotate(180deg);
  }
  75% {
    transform: translate(-50px, 50px) rotate(270deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .insights-showcase {
    padding: 60px 0;
  }

  .insights-item {
    margin-bottom: 50px;
  }

  .mobile-frame {
    max-width: 280px;
    border-radius: 30px;
  }

  .mobile-frame::before {
    width: 60px;
    height: 15px;
  }

  .mobile-screen {
    border-radius: 24px;
  }

  .insights-content {
    max-width: 260px;
  }

  .insights-stats {
    gap: 8px;
  }

  .stat-item {
    min-width: 70px;
    padding: 8px 5px;
  }

  .stat-number {
    font-size: 0.9rem;
  }

  .stat-label {
    font-size: 0.6rem;
  }

  .footer {
    padding: 40px 0 20px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-links a {
    padding: 10px 15px;
    font-size: 0.9rem;
    width: 80%;
    text-align: center;
  }

  .social-icons {
    gap: 10px;
  }

  .social-icons a {
    width: 45px;
    height: 45px;
  }

  .copyright {
    font-size: 0.85rem;
  }

  #contact.section {
    padding: 60px 0;
  }

  #contact form {
    padding: 25px;
  }

  #contact .section-title h2 {
    font-size: 2rem;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(90, 24, 154, 0.05);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--main-bg-color), var(--section-bg-color));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Additional animations */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.section-badge {
  background: linear-gradient(
    45deg,
    var(--main-bg-color),
    var(--section-bg-color)
  );
  color: var(--text-color);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.section-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  20% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* Elegant Navbar Styling - Simplified with 3 Menu Items */
.navbar {
  padding: 20px 0;
  transition: all 0.4s ease;
  background: rgba(36, 0, 70, 0.95);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
  padding: 15px 0;
  background: rgba(36, 0, 70, 0.98);
}

.navbar-dark .navbar-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.navbar-dark .navbar-nav .nav-link {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  padding: 10px 20px;
  margin: 0 5px;
  letter-spacing: 0.5px;
  position: relative;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.navbar-dark .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all 0.3s ease;
  opacity: 0;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #ffffff;
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
  width: 40px;
  opacity: 1;
}

.brand-name {
  font-size: 1.7rem;
  font-weight: 700;
  background: linear-gradient(45deg, #ffffff 30%, var(--accent-color) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.5px;
}

.brand-tagline {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  letter-spacing: 1px;
}

.btn-contact {
  background: var(--accent-color);
  color: var(--navbar-bg-color);
  border: none;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

/* Footer Contact and SEO Styling */
.footer-heading {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #ffffff;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 3px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  margin-bottom: 15px;
  align-items: flex-start;
}

.contact-list li i {
  color: var(--accent-color);
  font-size: 18px;
  margin-right: 12px;
  margin-top: 3px;
}

.contact-list li span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-list li span a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-list li span a:hover {
  color: var(--accent-color);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.footer-links-grid a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding-left: 15px;
  position: relative;
}

.footer-links-grid a::before {
  content: "→";
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.footer-links-grid a:hover {
  color: var(--accent-color);
  padding-left: 18px;
}

.footer-links-grid a:hover::before {
  opacity: 1;
}

.hidden-seo {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Enhanced Footer Services Menu */
.footer-services-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-services-menu li {
  margin-bottom: 14px;
}

.footer-services-menu li a {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-services-menu li a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.footer-services-menu .service-icon {
  font-size: 18px;
  color: var(--accent-color);
  margin-right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.footer-services-menu li a:hover .service-icon {
  background: var(--accent-color);
  color: var(--navbar-bg-color);
  transform: scale(1.1);
}

.footer-services-menu .service-text {
  display: flex;
  flex-direction: column;
}

.footer-services-menu .service-name {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 2px;
  transition: all 0.3s ease;
}

.footer-services-menu .service-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.footer-services-menu li a:hover .service-name {
  color: #ffffff;
}

.footer-services-menu li a:hover .service-desc {
  color: rgba(255, 255, 255, 0.8);
}

.footer-services-menu li a.highlight-service {
  background: linear-gradient(
    135deg,
    rgba(255, 158, 0, 0.15),
    rgba(255, 158, 0, 0.05)
  );
  border: 1px solid rgba(255, 158, 0, 0.2);
}

.footer-services-menu li a.highlight-service:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 158, 0, 0.25),
    rgba(255, 158, 0, 0.1)
  );
}

.footer-services-menu li a.highlight-service .service-name {
  color: var(--accent-color);
}

@media (max-width: 576px) {
  .footer-services-menu li {
    margin-bottom: 10px;
  }

  .footer-services-menu li a {
    padding: 6px 8px;
  }

  .footer-services-menu .service-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .footer-services-menu .service-name {
    font-size: 0.85rem;
  }

  .footer-services-menu .service-desc {
    font-size: 0.7rem;
  }
}
