/* ======================
   Navigation Bar Styles
   ====================== */
nav {
  background-color: rgba(10, 10, 10, 0.95);
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  padding: 15px 20px;
}

.nav-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: #1a73e8;
  font-weight: 700;
  text-decoration: none;
}

/* Desktop & Tablet Menu - ALWAYS VISIBLE */
.desktop-menu {
  display: flex;
  gap: 25px;
}

.menu-link {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
}

.menu-link:hover,
.menu-link.active {
  color: #1a73e8;
  background: rgba(26, 115, 232, 0.15);
  transform: translateY(-2px);
}

.menu-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #1a73e8;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.menu-link:hover::after,
.menu-link.active::after {
  width: 80%;
}

/* Mobile Menu Toggle - HIDDEN on Desktop/Tablet */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-right: 0px;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile Menu - HIDDEN on Desktop/Tablet */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1001;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 80px 25px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.6);
  visibility: hidden;
  color: white;
}

.mobile-menu.active {
  right: 0;
  visibility: visible;
}

.mobile-menu .menu-link {
  padding: 18px 20px;
  margin: 8px 0;
  border-radius: 10px;
  font-size: 1.2rem;
  border-left: 4px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
}

.mobile-menu .menu-link:hover,
.mobile-menu .menu-link.active {
  border-left-color: #1a73e8;
  background: rgba(26, 115, 232, 0.2);
  transform: translateX(5px);
}

/* Close Button */
.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.close-menu:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}
/* ======================
   RESPONSIVE NAVIGATION
   ====================== */

/* Tablet Styles */
@media (max-width: 1024px) {
  .nav-container {
    padding: 0 15px;
  }

  .desktop-menu {
    gap: 15px;
  }

  .menu-link {
    padding: 8px 15px;
    font-size: 0.95rem;
  }
}

/* Mobile Styles - Show mobile menu, hide desktop */
/* ======================
   RESPONSIVE NAVIGATION - FIXED
   ====================== */

/* Mobile Styles - Show mobile menu, hide desktop */
@media (max-width: 768px) {
  .desktop-menu {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
  }

  .mobile-menu {
    display: flex !important;
  }
  nav {
    padding: 12px 15px;
  }

  .logo {
    font-size: 1.5rem;
  }
}
/* Ensure mobile menu is always hidden on desktop */
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  nav {
    padding: 10px 15px;
  }

  .logo {
    font-size: 1.3rem;
  }

  .mobile-menu-toggle {
    width: 25px;
    height: 18px;
  }

  .mobile-menu-toggle span {
    height: 2px;
  }
}

@media (max-width: 480px) {
  .tools-grid-araliya {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .tool-item-araliya {
    padding: 20px 10px;
  }

  .tool-icon-araliya {
    font-size: 2rem;
  }

  .tool-name-araliya {
    font-size: 0.9rem;
  }
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 70px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-col h3:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 15px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--secondary);
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
  .footer-col {
    text-align: center;
  }
  .social-links {
    justify-content: center;
  }
  .footer-links {
    text-align: center;
  }
  .footer-bottom {
    font-size: 0.8rem;
  }
  .footer-col h3:after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-col p,
  .footer-links li {
    margin-bottom: 10px;
  }
  .footer {
    padding: 50px 0 20px;
  }
  .footer-bottom {
    padding-top: 15px;
  }
}

/* ======================
   Footer (Contact Section) Styles
   ====================== */
footer {
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  background-color: rgba(26, 26, 26, 0.7);
  text-align: center;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.3);
}

/* footer h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #ffd700;
}

footer p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #ccc;
}*/

footer a {
  color: #ffd700;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Contact Form Styles */
.contact-form {
  max-width: 700px;
  width: 100%;
  padding: 20px;
  background: rgba(26, 26, 26, 0.8);
  border-radius: 8px;
  box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.3);
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.contact-form form {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #1a73e8;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  box-sizing: border-box;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* ======================
   Call to Action Button
   ====================== */
.btn {
  --clr-font-main: hsla(0 0% 20% / 100);
  --btn-bg-1: rgb(150, 97, 255);
  --btn-bg-2: hsla(217 100% 56% / 1);
  --btn-bg-color: hsla(360 100% 100% / 1);
  --radii: 0.5em;
  cursor: pointer;
  margin-bottom: 20px;
  padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1rem, 4vw, 1.25rem);
  min-width: max(120px, 10vw);
  min-height: 44px;
  text-align: center;
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-family: "Montserrat", sans-serif;
  transition: 0.8s;
  background-size: 280% auto;
  background-image: linear-gradient(
    325deg,
    var(--btn-bg-2) 0%,
    var(--btn-bg-1) 55%,
    var(--btn-bg-2) 90%
  );
  border: none;
  border-radius: var(--radii);
  color: var(--btn-bg-color);
  box-shadow: 0px 0px 20px rgba(71, 83, 255, 0.5),
    0px 5px 5px -1px rgba(58, 125, 233, 0.25),
    inset 4px 4px 8px rgba(200, 117, 251, 0.5),
    inset -4px -4px 8px rgba(19, 95, 216, 0.35);
}

.btn:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0px 0px 25px rgba(71, 83, 255, 0.7),
    0px 7px 7px -1px rgba(58, 125, 233, 0.3),
    inset 4px 4px 8px rgba(200, 117, 251, 0.6),
    inset -4px -4px 8px rgba(19, 95, 216, 0.4);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0px 0px 15px rgba(71, 83, 255, 0.4),
    0px 3px 3px -1px rgba(58, 125, 233, 0.2),
    inset 4px 4px 8px rgba(200, 117, 251, 0.4),
    inset -4px -4px 8px rgba(19, 95, 216, 0.3);
}

.btn:is(:focus, :focus-visible, :active) {
  outline: none;
  box-shadow: 0 0 0 3px var(--btn-bg-color), 0 0 0 6px var(--btn-bg-2);
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: linear;
  }
}

/* ======================
   Social Icons Styles
   ====================== */
.social-icons {
  margin-top: 20px;
  z-index: 1;
}

.social-icons a {
  color: #fff;
  font-size: 2rem;
  margin: 0 10px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #1a73e8;
  transform: translateY(-5px);
}
