/* Footer Specific Styles - Tiga Karunia Jaya Theme (Maroon & Gold) */
.main-footer {
  background-image: url('../img/pages-tigakaruniajaya/Foto 1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-white);
  padding: 50px 0 25px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #D4A017, #B88A12, #D4A017);
  z-index: 2;
}

.main-footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75); /* Black overlay with 75% opacity - darker, same as hero */
  z-index: 1;
}

.main-footer > .container {
  position: relative;
  z-index: 2;
}

/* Footer Brand Section */
.footer-brand {
  margin-bottom: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.footer-logo .logo-icon {
  font-size: 2.2rem;
  color: #D4A017;
  animation: pulse 2s infinite;
}

.footer-logo .footer-logo-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.footer-logo .logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Contact Information */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9em;
  color: #ffffff;
  transition: all 0.3s ease;
}

.contact-item:hover {
  color: #D4A017;
  transform: translateX(5px);
}

.contact-item i {
  color: #D4A017;
  width: 18px;
  text-align: center;
  font-size: 1.1em;
}

/* Social Media Section */
.social-section {
  margin-bottom: 35px;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 4px;
  background: linear-gradient(90deg, #D4A017, #B88A12);
  border-radius: 2px;
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 160, 23, 0.3), transparent);
  transition: left 0.5s ease;
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  background: #D4A017;
  color: #8C0C08;
  border-color: #D4A017;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 16px rgba(212, 160, 23, 0.4);
}

/* App Download Section */
.app-download-section {
  margin-bottom: 25px;
}

.app-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #1e3a5f, #152a47);
  color: #ffffff;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(30,58,95,0.3);
  font-size: 0.9em;
  font-weight: 600;
}

.app-btn:hover {
  background: linear-gradient(135deg, #D4A017, #B88A12);
  color: #1e3a5f;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(212, 160, 23, 0.4);
}

.app-btn i {
  font-size: 1.3em;
  color: #D4A017;
}

.app-btn:hover i {
  color: #1e3a5f;
}

/* Footer Menu */
.footer-menu {
  display: flex;
  gap: 25px;
}

.menu-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9em;
  transition: all 0.3s ease;
  padding: 6px 0;
  position: relative;
  font-weight: 500;
}

.footer-link:hover {
  color: #D4A017;
  transform: translateX(8px);
  font-weight: 600;
}

.footer-link::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #D4A017, #B88A12);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.footer-link:hover::before {
  width: 10px;
}

/* Verification Section */
.verification-section {
  display: flex;
  justify-content: flex-end;
}

.verification-box {
  background: rgba(140,12,8,0.8);
  border-radius: 16px;
  padding: 25px;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  border: 1px solid #D4A017;
  position: relative;
  overflow: hidden;
}

.verification-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #D4A017, #B88A12);
}

.verification-icon {
  margin-bottom: 18px;
}

.verification-icon i {
  font-size: 2.8rem;
  color: #D4A017;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.verification-text p {
  margin-bottom: 10px;
  font-size: 0.9em;
  color: #ffffff;
  line-height: 1.5;
}

.verification-link {
  color: #D4A017;
  text-decoration: none;
  font-size: 0.85em;
  word-break: break-all;
  transition: all 0.3s ease;
  font-weight: 600;
}

.verification-link:hover {
  color: #B88A12;
  text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid #333333;
  padding-top: 25px;
  margin-top: 35px;
  position: relative;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #D4A017, transparent);
}

.copyright-text,
.company-text {
  font-size: 0.85em;
  color: #ffffff;
  margin: 0;
  font-weight: 500;
}

.footer-info-text {
  color: #ffffff;
  font-size: 0.75em;
  margin: 0;
  font-weight: 400;
  opacity: 0.85;
  line-height: 1.3;
}

.footer-info-text a {
  color: #D4A017;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-info-text a:hover {
  color: #B88A12;
  text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .main-footer {
    padding: 40px 0 20px;
    margin-top: 40px;
    text-align: center;
    background-attachment: scroll;
  }
  
  /* Force Layanan and Menu Informasi to 2 columns in 1 row on mobile */
  .main-footer .col-lg-4 .row > .col-md-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  
  /* Keep title left-aligned for Layanan and Menu Informasi sections */
  .main-footer .col-lg-4 .row .col-md-6 .footer-title {
    text-align: left !important;
  }
  
  .main-footer .col-lg-4 .row .col-md-6 .footer-title::after {
    left: 0 !important;
    transform: none !important;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .footer-logo .logo-icon {
    font-size: 1.8rem;
  }
  
  .footer-logo .logo-text {
    font-size: 1.4rem;
  }
  
  .contact-info {
    align-items: center;
  }
  
  .contact-item {
    justify-content: center;
  }
  
  .verification-section {
    justify-content: center;
    margin-top: 25px;
  }
  
  .verification-box {
    max-width: 100%;
  }
  
  .footer-menu {
    flex-direction: column;
    gap: 10px;
  }
  
  .menu-column {
    align-items: flex-start;
    text-align: left;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .app-buttons {
    align-items: center;
  }
  
  .footer-title {
    text-align: center;
  }
  
  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-bottom {
    text-align: center;
  }
  
  /* Force footer info text to center on mobile */
  .footer-bottom .row.mt-2 .col-md-6 {
    text-align: center !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  
  .footer-info-text {
    font-size: 0.7em;
    text-align: center !important;
    margin: 5px 0 !important;
  }
  
  .footer-info-text[style*="text-align: left"] {
    text-align: center !important;
  }
  
  .footer-info-text[style*="text-align: right"] {
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  .main-footer {
    padding: 30px 0 20px;
    text-align: center;
    background-attachment: scroll;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .contact-info {
    align-items: center;
  }
  
  .contact-item {
    font-size: 0.85em;
    justify-content: center;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
  }
  
  .footer-title {
    font-size: 1rem;
    text-align: center;
  }
  
  .footer-menu {
    flex-direction: column;
    gap: 10px;
  }
  
  .menu-column {
    align-items: flex-start;
    text-align: left;
  }
  
  /* Ensure 2 columns layout for Layanan and Menu Informasi */
  .main-footer .col-lg-4 .row > .col-md-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  
  /* Keep title left-aligned for Layanan and Menu Informasi sections */
  .main-footer .col-lg-4 .row .col-md-6 .footer-title {
    text-align: left !important;
  }
  
  .main-footer .col-lg-4 .row .col-md-6 .footer-title::after {
    left: 0 !important;
    transform: none !important;
  }
  
  .verification-box {
    padding: 20px;
  }
  
  .footer-bottom {
    text-align: center;
  }
  
  /* Force footer info text to center on mobile */
  .footer-bottom .row.mt-2 .col-md-6 {
    text-align: center !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  
  .footer-info-text {
    font-size: 0.65em;
    text-align: center !important;
    margin: 5px 0 !important;
  }
  
  .footer-info-text[style*="text-align: left"] {
    text-align: center !important;
  }
  
  .footer-info-text[style*="text-align: right"] {
    text-align: center !important;
  }
}
