/* --- Global Styles & Variables --- */
:root {
  --primary-bg: #02141f;
  --secondary-bg: #111827;
  --accent-color: #00b4d8;
  --text-color: #f4f4f4;
  --white-color: #ffffff;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  background-color: var(--primary-bg);
  color: var(--text-color);
  overflow-x: hidden;
}
.body-no-scroll {
  overflow: hidden;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}
h2 {
  font-size: 2.8rem;
  text-align: center;
  color: var(--white-color);
  margin-bottom: 20px;
}
h4 {
  color: var(--white-color);
  font-size: 1.1rem;
}
a {
  text-decoration: none;
  color: var(--accent-color);
}

/* --- Navbar --- */
.navbar {
  background: rgba(2, 18, 31, 0.7);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar .logo img {
  height: 50px;
  border-radius: 50%;
}
.navbar nav ul {
  display: flex;
  list-style: none;
  gap: 30px; /* From old CSS */
  align-items: center;
}
.navbar nav ul li a {
  text-decoration: none;
  color: #b4cfd4; /* From old CSS */
  font-weight: 500;
  transition: all 0.3s ease;
}
.navbar nav ul li a:hover {
  color: #ffffff; /* From old CSS */
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

/* --- Action Buttons (from old CSS) --- */
.nav-actions {
  display: flex;
  gap: 15px;
}
.btn {
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background-color: #55eff7;
  color: black !important;
}
.btn-primary:hover {
  background-color: #46e1ef;
  box-shadow: 0 0 20px rgba(70, 239, 230, 0.6);
  transform: translateY(-2px);
  color: #ffffff !important; /* Adjusted for better contrast */
}
.btn-secondary {
  background-color: transparent;
  color: #55eff7;
  border: 2px solid #55eff7;
}
.btn-secondary:hover {
  background-color: #55eff7;
  color: #0d021f; /* Adjusted for better contrast */
  transform: translateY(-2px);
}

/* --- NEW Hamburger Menu Styles --- */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}
.hamburger-menu .bar {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--white-color);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}
.hamburger-menu.is-active .bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger-menu.is-active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.is-active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* --- Footer --- */
.footer {
  background: var(--secondary-bg);
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer h3 {
  color: var(--white-color);
  margin-bottom: 20px;
}
.footer .contact-info {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.footer .contact-info span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer .copyright {
  margin-top: 20px;
  font-size: 0.9rem;
  opacity: 0.5;
}

/* --- Styles for Templates Page --- */
.templates-section {
  padding-top: 120px;
  padding-bottom: 80px;
  background: var(--secondary-bg);
}
.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: -10px auto 40px;
  opacity: 0.8;
}
.search-container {
  margin: 0 auto 50px;
  max-width: 600px;
}
#searchInput {
  width: 100%;
  padding: 12px 20px;
  background-color: rgba(0, 109, 119, 0.5);
  border: 1px solid rgba(173, 230, 243, 0.3);
  border-radius: 8px;
  color: var(--white-color);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}
#searchInput::placeholder {
  color: var(--text-color);
  opacity: 0.7;
}
#searchInput:focus {
  box-shadow: 0 0 15px rgba(0, 180, 216, 0.5);
  border-color: var(--accent-color);
}
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.template-card {
  background: rgba(173, 230, 243, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(173, 230, 243, 0.2);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.template-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(0, 180, 216, 0.4);
}
.template-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1.25;
  object-fit: cover;
}
.template-card h4 {
  padding: 20px 10px;
}

/* --- Lightbox Styles --- */
.template-link {
  text-decoration: none;
}
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 20, 31, 0.9);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox-overlay:target {
  display: flex;
  opacity: 1;
  visibility: visible;
}
.lightbox-content {
  position: relative;
  max-width: 80vw;
  max-height: 80vh;
  animation: zoomIn 0.3s ease-in-out;
}
.lightbox-content img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}
.lightbox-overlay .lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 2001;
}
.lightbox-overlay .lightbox-close:hover {
  transform: scale(1.1);
  background-color: var(--accent-color);
}
.lightbox-overlay .download-button {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 35px;
  border-radius: 30px;
  z-index: 2001;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  background-color: var(--accent-color);
  color: var(--white-color);
  font-weight: 600;
}

.fixed-side-icon {
  position: fixed;
  bottom: 32px;
  right: 0;
  z-index: 1000;
  width: 110px;
  height: 36px;
  border-radius: 48px 0 0 48px;
  background-color: rgb(47 191 198 / 87%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.498);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.6s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* 6. Hover effect for user feedback */
.fixed-side-icon:hover {
  transform: translateY(-5px); /* Lifts the icon up slightly */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  background-color: rgb(47, 190, 198);
  transition: all 0.6s ease-in-out;

}

/* 7. Styling the SVG icon itself */
.fixed-side-icon .icon-brain {
  width: 28px;
  height: 28px;
  transition: all 0.6s ease-in-out;
}
.contact{
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgb(255, 255, 255);
  transition: all 0.6s ease-in-out;

}
.contact:hover{
  color: #000000;
  transition: color 0.6s ease-in-out;

}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
  .hamburger-menu {
    display: flex;
  }
  .navbar nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 320px;
    height: 100vh;
    background: var(--secondary-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s ease-in-out;
    padding: 2rem;
    z-index: 1000;
  }
  .navbar nav ul.is-active {
    right: 0;
  }
  .navbar nav ul li {
    width: 100%;
    text-align: center;
  }
  .navbar nav ul li a {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 2.2rem;
  }
}
