/* styles.css */

/* Reset & base */
* {
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0; padding: 0;
  background: #fafafa;
  color: #333;
  line-height: 1.5;
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: rgba(255 255 255 / 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 10px rgba(0,0,0,0.1);
  z-index: 100;
  padding: 10px 20px;
}

.header-flex {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  filter: drop-shadow(0 0 2px #00b8d9);
}

.site-title {
  font-weight: 900;
  font-size: 1.7rem;
  color: #00b8d9; /* Turquoise */
  user-select: none;
}

.nav-admin-wrapper nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 10px 0 0 0;
  flex-wrap: wrap;
}

.nav-admin-wrapper nav ul li a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #007a99;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
  overflow: visible;
}

/* Glass Icon Style */
.glass-icon {
  color: #00b8d9;
  filter: drop-shadow(0 0 1.5px #00b8d9aa);
}

/* Nav link hover with subtle glass glow */
.nav-admin-wrapper nav ul li a:hover {
  background: rgba(0, 184, 217, 0.15);
  color: #008dbf;
  text-shadow: 0 0 3px #00b8d9;
}

/* Admin link special color */
.admin-link {
  color: #d9534f;
}
.admin-link:hover {
  background: rgba(217, 83, 79, 0.15);
  color: #c9302c;
  text-shadow: none;
}

/* Service area notice */
.service-area-notice div {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 1rem;
  border-radius: 8px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #c5f0f7 0%, #00b8d9 100%);
  color: #004d5a;
  padding: 60px 20px;
  user-select: none;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 15px;
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Button styles with glare and star border */
.button {
  cursor: pointer;
  display: inline-block;
  padding: 14px 36px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #00b8d9;
  background: transparent;
  border: 3px solid #00b8d9;
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease;
  user-select: none;
  text-decoration: none;
}

.button:hover {
  color: white;
  background: #00b8d9;
  box-shadow:
    0 0 8px #00e0ff,
    0 0 20px #00e0ff,
    0 0 30px #00b8d9;
}

/* Glare hover effect */
.glare-hover::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.5) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: rotate(25deg);
  transition: left 0.7s ease;
  pointer-events: none;
  filter: drop-shadow(0 0 4px #a8f0ff);
}

.glare-hover:hover::before {
  left: 125%;
}

/* Star border from React Bits style */
.button {
  border-image-slice: 1;
  border-width: 3px;
  border-style: solid;
  border-image-source: conic-gradient(
    from 90deg,
    #00b8d9 0deg 36deg,
    transparent 36deg 72deg,
    #00b8d9 72deg 108deg,
    transparent 108deg 144deg,
    #00b8d9 144deg 180deg,
    transparent 180deg 216deg,
    #00b8d9 216deg 252deg,
    transparent 252deg 288deg,
    #00b8d9 288deg 324deg,
    transparent 324deg 360deg
  );
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 30px auto 0 auto;
}

/* Product Card */
.product {
  background: rgba(255 255 255 / 0.15);
  border-radius: 20px;
  padding: 25px 15px;
  text-align: center;
  box-shadow: 0 0 15px rgb(0 184 217 / 0.2);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
  user-select: none;
  cursor: default;
  perspective: 600px;
  transform-style: preserve-3d;
}

.product:hover {
  box-shadow:
    0 0 20px #00e0ff,
    0 0 30px #00b8d9,
    0 0 40px #00b8d9;
}

.product h2 {
  font-weight: 800;
  color: #00b8d9;
  margin: 10px 0 8px 0;
  font-size: 1.6rem;
}

.product p {
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

/* Product Image */
.product-image img {
  width: 100%;
  max-width: 180px;
  border-radius: 15px;
  box-shadow: 0 6px 10px rgba(0,0,0,0.12);
  user-select: none;
  transition: transform 0.4s ease;
}

.product:hover .product-image img {
  transform: scale(1.05);
}

/* Tilt Card handled by JS already */

/* Why Choose Us */
section:nth-of-type(4) ul li {
  margin: 15px 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: #005f7f;
  user-select: none;
}

/* Accordion */
.accordion-item {
  background: rgba(0 184 217 / 0.1);
  border-radius: 15px;
  margin: 12px auto;
  max-width: 600px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 0 15px rgb(0 184 217 / 0.15);
  user-select: none;
  overflow: hidden;
}

.accordion-item.active {
  background: rgba(0 184 217 / 0.25);
}

.accordion-question {
  padding: 15px 20px;
  font-weight: 700;
  font-size: 1.1rem;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion-question::after {
  content: "▼";
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-question::after {
  transform: rotate(180deg);
}

.accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  padding: 0 20px;
  font-size: 1rem;
  user-select: text;
}

.accordion-item.active .accordion-answer {
  max-height: 300px;
  padding: 12px 20px;
}

/* Footer */
footer {
  font-size: 0.9rem;
  color: #555;
  user-select: none;
}

footer a {
  color: #00b8d9;
  text-decoration: none;
  font-weight: 600;
  margin: 0 6px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #007a99;
  text-shadow: 0 0 5px #00b8d9;
}

/* Admin Sidebar Styles */
.admin-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0; /* remove gap if you want them tightly stacked, or set to e.g. 12px for spacing */
}

.admin-sidebar ul li {
  margin-bottom: 12px;
}

.admin-sidebar ul li a,
.admin-sidebar ul li button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 6px;
  background: none;
  color: var(--sidebar-text, #fff);
  text-decoration: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

/* Responsive tweaks */
@media (max-width: 720px) {
  .nav-admin-wrapper nav ul {
    flex-wrap: wrap;
    gap: 12px;
  }
  .hero-section h1 {
    font-size: 2.2rem;
  }
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
nav ul {
  display: flex;
  justify-content: center; /* centers items horizontally */
  padding: 0;
  margin: 0;
  list-style: none;
}

nav ul li {
  margin: 0 15px; /* add horizontal spacing between links */
}
 a {
      color: #0077cc;
      text-decoration: none;
      font-weight: 600;
    }
    a:hover,
    a:focus {
      text-decoration: underline;
      color: #004a99;
    }
/* Center product cards and their contents on desktop */
@media (min-width: 900px) {
  .featured-products {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .product-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }
  .products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
  }
  .product {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }
  .product-image {
    display: flex;
    justify-content: center;
    width: 100%;
  }
}

/* Two products per row for products.html on desktop only */
@media (min-width: 900px) {
  body.products-page .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 30px auto 0 auto;
    justify-items: center;
    align-items: stretch;
  }
  body.products-page .products {
    display: contents;
  }
  body.products-page .product {
    min-width: 320px;
    max-width: 400px;
    min-height: 420px;
    padding: 40px 24px;
    font-size: 1.15rem;
    box-shadow: 0 4px 24px rgba(0,184,217,0.13);
    border-radius: 24px;
  }
}
