/* Base Styles */
:root {
  /* Theme Colors */
  --primary-color: #2970ff; /* Original Nav Hover */
  --primary-color-hover: #26c6da;
  --primary-blue: #2970ff; /* Main Accent Blue (from contact.css) */
  --primary-blue-light: #4e89ff; /* Lighter Blue */
  --accent-cyan: #2970ff; /* Secondary Accent Cyan */
  --accent-cyan-light: #4e89ff; /* Lighter Cyan */
  /* Backgrounds */
  --darker-bg: #0f1014; /* Header/Footer Background */
  --dark-bg: #181a20; /* Main Body Background (consistent) */
  --bg-medium: #1e2128; /* Card/Input Background */
  --bg-light: #262a36; /* Lighter background variant */
  --modal-bg: #1e1e36; /* Dark purple background (from screenshots) */

  /* Text */
  --light-text: #ffffff;
  --light-text-secondary: #ffffffcc; /* Slightly transparent white */
  --light-text-tertiary: #ffffff99; /* More transparent white */

  /* Borders & Shadows */
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-color-light: rgba(0, 0, 0, 0.2);
  --shadow-color-primary: rgba(41, 112, 255, 0.25); /* Blue Shadow */

  /* Transitions */
  --transition-speed: 0.3s;
}

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

/* Apply base styles to body */
body {
  font-family: "Poppins", sans-serif;
  /* !!! IMPORTANT: padding-top is now handled by JavaScript !!! */
  background-color: var(--dark-bg); /* Consistent background */
  color: var(--light-text); /* Consistent text color */
}

/* Header Styles */
header {
  background-color: var(--darker-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-speed) ease;
}
header.scrolled {
  background-color: rgba(15, 16, 20, 0.95); /* Slightly transparent */
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.logo a {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--transition-speed) ease;
  display: flex;
  align-items: center;
}
.logo a:hover {
  color: var(--light-text);
}
.logo a span {
  margin-left: 0.5rem;
  font-size: 1rem;
  color: var(--light-text-tertiary);
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-speed) ease;
}
.logo a:hover span {
  opacity: 1;
  transform: translateX(0);
}

/* Logo Image Styles (Using Scale) */
.header-logo-img {
  height: auto; /* Adjusted height based on image */
  width: 120px; /* Maintain aspect ratio */
  margin: 0 100px 0 0;
  vertical-align: middle;
  transition: height var(--transition-speed) ease; /* Transition for height */
}

/* Desktop Navigation */
.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
.desktop-nav a {
  color: var(--light-text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all var(--transition-speed) ease;
  position: relative;
  padding: 0.5rem 0;
}
.desktop-nav a:hover,
.desktop-nav .nav-item.active a {
  color: var(--primary-color);
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width var(--transition-speed) ease;
}
.desktop-nav a:hover::after,
.desktop-nav .nav-item.active a::after {
  width: 100%;
}
.login-item a {
  display: flex;
  align-items: center;
  gap: 5px;
}
.login-item a i {
  font-size: 0.9rem;
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  color: var(--light-text);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-speed) ease;
}
.mobile-menu-toggle:hover {
  color: var(--primary-color);
}
.mobile-nav {
  display: none;
  background-color: var(--darker-bg);
  position: absolute;
  width: 100%;
  left: 0;
  top: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed) ease;
  z-index: 900;
}
.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.mobile-nav ul {
  list-style: none;
  padding: 1rem;
}
.mobile-nav li {
  margin-bottom: 1rem;
}
.mobile-nav a {
  color: var(--light-text-secondary);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color var(--transition-speed) ease;
  display: block;
  padding: 0.5rem 0;
}
.mobile-nav a:hover {
  color: var(--primary-color);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px; /* Adjust size as needed */
  height: 60px; /* Adjust size as needed */
  background-color: #25d366; /* WhatsApp green */
  color: white;
  border-radius: 50%;
  text-align: center;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);
  z-index: 1000; /* Ensure it's above other content */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #1da851; /* Darker green on hover */
}

.whatsapp-icon {
  width: 40px; /* Adjust icon size */
  height: 40px; /* Adjust icon size */
}
.mobile-nav li.active a {
  color: var(--primary-color);
}

/* Modal Styles */
.modal {
  display: none; /* Initially hidden (controlled by JS) */
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: auto;
}
.modal-content {
  background-color: var(--modal-bg);
  margin: 5% auto;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
  position: relative;
  color: var(--light-text);
  animation: modalOpen 0.4s ease-out;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
@keyframes modalOpen {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: var(--light-text-secondary);
  transition: color var(--transition-speed) ease;
}
.close-modal:hover {
  color: var(--primary-color);
}
.auth-container {
  padding: 2.5rem 2rem;
}
.auth-container h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.auth-container p {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--light-text-secondary);
}
.toggle-auth-view {
  color: var(--primary-blue);
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}
.toggle-auth-view:hover {
  text-decoration: underline;
}
.social-signup {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.social-signup button {
  padding: 0.8rem;
  border-radius: 4px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
}
.google-signup {
  background-color: white;
  color: #333;
}
.google-signup:hover {
  background-color: #f5f5f5;
}
.facebook-signup {
  background-color: #1877f2;
  color: white;
}
.facebook-signup:hover {
  background-color: #166fe5;
}
.social-signup button i {
  margin-right: 10px;
}
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--light-text-tertiary);
}
.divider span {
  padding: 0 10px;
  color: var(--light-text-secondary);
}
.email-signup {
  width: 100%;
  padding: 0.8rem;
  border-radius: 4px;
  border: 1px solid var(--light-text-tertiary);
  background-color: transparent;
  color: var(--light-text);
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}
.email-signup:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.terms-checkbox {
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.terms-checkbox input[type="checkbox"] {
  margin-top: 4px;
}
.terms-checkbox label {
  color: var(--light-text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}
.toggle-read-more {
  color: var(--primary-blue);
  text-decoration: none;
  cursor: pointer;
}
.toggle-read-more:hover {
  text-decoration: underline;
}

/* Read More Content */
.more-info {
  margin-top: 1rem;
  color: var(--light-text-tertiary);
  font-size: 0.9rem;
  line-height: 1.4;
  padding-left: 25px;
  display: none; /* Initially hidden (controlled by JS) */
  /* **** ADDED for JS Animation **** */
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden; /* Prevents content spill during animation */
}

/* **** ADDED for JS Animation **** */
/* Transition for view switching */
.signup-view,
.login-view {
  transition: opacity 0.3s ease;
}

/* Login Form Styles */
.login-view {
  display: none; /* Initially hidden (controlled by JS) */
}
#login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  color: var(--light-text-secondary);
  font-size: 0.9rem;
}
.form-group input {
  padding: 0.8rem;
  border-radius: 4px;
  border: 1px solid var(--light-text-tertiary);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--light-text);
  font-family: "Poppins", sans-serif;
  transition: all var(--transition-speed) ease;
}

/* Input focus style */
.form-group input:focus {
  outline: none; /* Remove default */
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(41, 112, 255, 0.3);
}

/* Optional: Style for .input-focused class added by JS */
/* .form-group.input-focused label {
  color: var(--primary-blue); /* Example: Highlight label when input has focus */
/* } */

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.remember-me label {
  color: var(--light-text-secondary);
  font-size: 0.9rem;
}
.forgot-password {
  color: var(--primary-blue);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-speed) ease;
}
.forgot-password:hover {
  text-decoration: underline;
}
.login-submit {
  width: 100%;
  padding: 0.8rem;
  border-radius: 4px;
  border: none;
  background-color: var(--primary-blue);
  color: var(--light-text);
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}
.login-submit:hover {
  background-color: var(--primary-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(41, 112, 255, 0.3);
}

/* Footer Styles */
footer {
  background-color: var(--darker-bg);
  color: var(--light-text-secondary);
  padding: 3rem 0 0;
  margin-top: 2rem;
}

.footer-logo-img {
  width: 200px; /* Increased width */
  height: auto;
  display: block;
  margin: 0 auto 10px;
}
.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}
.footer-logo {
  padding-right: 2rem;
}
.footer-logo a {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 1rem;
  display: inline-block;
  transition: color var(--transition-speed) ease;
}
.footer-logo a:hover {
  color: var(--light-text);
}
.footer-logo p {
  color: var(--light-text-tertiary);
  margin-top: 0.5rem;
  line-height: 1.6;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.links-column h3 {
  color: var(--light-text);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.links-column h3::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width var(--transition-speed) ease;
}
.links-column:hover h3::after {
  width: 70px;
}
.links-column ul {
  list-style: none;
}
.links-column li {
  margin-bottom: 0.8rem;
}
.links-column a {
  color: var(--light-text-tertiary);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  position: relative;
  padding-left: 0;
}
.links-column a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}
.links-column a::before {
  content: "›";
  position: absolute;
  left: -15px;
  opacity: 0;
  transition: all var(--transition-speed) ease;
  color: var(--primary-color);
}
.links-column a:hover::before {
  opacity: 1;
  left: -5px;
}
.contact-info {
  margin-top: 1.5rem;
}
.contact-info .info-content {
  margin-bottom: 1rem;
}
.contact-info .info-label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 3px;
  color: var(--accent-cyan-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
}
.contact-info .info-text {
  font-size: 1rem;
  color: var(--light-text-tertiary);
  line-height: 1.5;
  margin: 0;
}
.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 2rem;
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  color: var(--light-text-tertiary);
}
.back-to-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--darker-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}
.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(77, 208, 225, 0.3);
}

/* Footer Social Links */
footer .footer-links .links-column .footer-social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: flex-start;
  padding: 0;
}
footer .footer-links .links-column .footer-social-links .footer-social-link {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--bg-light) 0%,
    var(--bg-medium) 100%
  );
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: visible;
  box-shadow: 0 5px 12px var(--shadow-color-light);
  text-decoration: none;
  will-change: transform, background, box-shadow;
}
footer .footer-links .links-column .footer-social-links .footer-social-link i {
  font-size: 1.3rem;
  color: var(--primary-blue);
  transition: transform 0.3s ease, color 0.3s ease;
}
footer
  .footer-links
  .links-column
  .footer-social-links
  .footer-social-link:hover {
  transform: translateY(-6px) scale(1.05);
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--primary-blue-light) 100%
  );
  border-color: transparent;
  box-shadow: 0 10px 20px var(--shadow-color-primary);
}
footer
  .footer-links
  .links-column
  .footer-social-links
  .footer-social-link:hover
  i {
  color: var(--light-text);
  transform: scale(1.1);
}
footer
  .footer-links
  .links-column
  .footer-social-links
  .footer-social-link
  .social-tooltip {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-blue);
  color: var(--light-text);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, bottom 0.3s ease, visibility 0s 0.3s;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  z-index: 10;
  pointer-events: none;
}
footer
  .footer-links
  .links-column
  .footer-social-links
  .footer-social-link:hover
  .social-tooltip {
  opacity: 1;
  visibility: visible;
  bottom: 135%;
  transition: opacity 0.3s ease, bottom 0.3s ease, visibility 0s 0s;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
  .footer-links {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  /* body padding is handled by JS */
  header.scrolled {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
  }
  .header-container {
    padding: 0.8rem 1rem;
  }
  .logo a {
    font-size: 1.5rem;
  }
  .logo a span {
    display: none;
  }
  .header-logo-img {
    height: 35px; /* Adjust base height */
    margin-right: 8px;
    transform: scale(1.4); /* Adjust scale */
  }
  .desktop-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-nav {
    display: block;
  } /* JS controls visibility via .active class */
  .footer-links {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  footer .footer-links .links-column .footer-social-links {
    justify-content: flex-start;
  }
}

@media (max-width: 576px) {
  /* body padding is handled by JS */
  .header-container {
    padding: 0.6rem 1rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  footer .footer-links .links-column .footer-social-links {
    justify-content: center;
  }
}
