@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap");

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

.footer {
  position: relative;
  background: #1a1c2a;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
}

.footer-main {
  background-color: #1a1c2a;
  padding: 60px 0 40px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Base Grid Layout */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: start;
}

.footer-section-brand {
  padding-left: 0;
}

.footer-section-brand img{
  width: 110px;
}

.footer h2 {
  font-family: "Poppins", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
  letter-spacing: 1px;
}

.footer h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: #ffffff;
  position: relative;
  padding-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: #ffffff;
}

/* Quick Links Section */
.brand-text {
  color: #9ca3af;
  margin-bottom: 20px;
  font-size: 0.95rem;
  justify-self: left;
}

.footer-section-links ul {
  list-style: none;
}

.footer-section-links li {
  margin-bottom: 12px;
}

.footer-section-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-section-links a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(45deg, #ff0000, #34d399);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.footer-section-links a:hover {
  color: #ffffff;
}

.footer-section-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #ff0000, #34d399);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-link:hover::before {
  opacity: 1;
}

.social-link i {
  font-size: 18px;
  position: relative;
  z-index: 2;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-item i {
  color: #ffffff;
  font-size: 18px;
  padding-top: 3px;
}

.contact-item p {
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1.5;
}

.counter {
  text-align: left;
}

.counter h3 {
  margin-bottom: 15px;
}

/* Visitor counter styling */
.visitor-counter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(59, 130, 246, 0.1);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.visitor-counter .vc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ed0018, #ff7a59);
  color: #ffffff;
  font-size: 18px;
}

.visitor-counter .vc-body {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.visitor-counter .vc-count {
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
}

.visitor-counter .vc-label {
  font-size: 0.75rem;
  color: #b9c2cc;
}

/* Responsive: make counter full-width on small screens */
@media screen and (max-width: 768px) {
  .counter-box {
    width: 100%;
    text-align: center;
  }
  .visitor-counter {
    justify-content: center;
    width: 100%;
  }
  .visitor-counter .vc-body {
    align-items: center;
  }
}

.footer-bottom {
  background-color: #151722;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.copyright p {
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .footer-content {
    gap: 30px;
  }

  .footer-content > div {
    flex-basis: calc(50% - 15px);
  }
}

@media screen and (max-width: 480px) {
  .footer-content {
    flex-direction: column;
    gap: 25px;
  }

  .footer-content > div {
    flex-basis: 100%;
  }

  .footer {
    padding: 30px 15px 15px;
  }
}

/* Tablet view (2 columns) */
@media screen and (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    text-align: center;
  }

  .footer-section {
    padding: 0;
  }

  .footer-section-brand img{
    display: flex;
    justify-self: left;
  }

  .footer-social-icons {
    justify-content: left;
  }

  .contact-info {
    align-items: left;
  }

  .contact-item {
    justify-content: left;
  }

  .footer-section-links{
    text-align: left;
  }

  .footer-section-contact h3{
    justify-self: left;
  }
}

/* Mobile view (1 column) */
@media screen and (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 35px;
  }

  .footer-section {
    padding: 0 10px;
  }

  .footer h2 {
    font-size: 1.5rem;
  }

  .footer h3 {
    font-size: 1rem;
  }

  .brand-text,
  .footer-section-links a,
  .contact-item p {
    font-size: 0.9rem;
  }

  .social-icons {
    justify-content: left;
    margin-top: 15px;
  }

  .contact-info{
    display: grid;
    justify-content: left;
    align-items: left;
  }

  .contact-item{
    justify-content: left;
    text-align: left;
  }

  .counter-box {
    width: 100%;
    text-align: center;
  }

  .footer-bottom {
    padding: 15px 10px;
  }

  .copyright p {
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 600px) {
  .footer-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s ease forwards;
  }
  .footer-section:nth-child(2) { animation-delay: 0.1s; }
  .footer-section:nth-child(3) { animation-delay: 0.2s; }
  .footer-section:nth-child(4) { animation-delay: 0.3s; }

  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

