/* === Theme Variables === */
:root[data-theme="dark"] {

}

:root[data-theme="light"] {

}

/* === Base Reset === */
body {
  background-color: var(--background-color);
  background-image: var(--background-image, none);
  background-blend-mode: screen;
  background-size: 300% 300%;
  animation: glitchBG 20s ease infinite;

  color: var(--text-color);
  font-family: var(--font-primary);
  transition: all 0.4s ease-in-out;
  font-size: 15px;
  line-height: 1.6;
}
@keyframes glitchBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* === Container Blocks === */
.container,
.result-container,
.export-container,
.filter-container,
.button-container,
.footer-container {
  width: 90%;
  max-width: 700px;
  margin: 20px auto;
  padding: 1rem;
  background: var(--box-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 8px var(--accent-glow);
  text-align: center;
  box-sizing: border-box;
}

.container {
  width: 85%;
  border-radius: 12px;
  box-shadow: 0 0 20px var(--accent-glow);
}

/* === Inputs & Buttons === */
input[type="number"],
button {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  font-size: 16px;
  border-radius: 6px;
  box-sizing: border-box;
  transition: box-shadow 0.3s ease;
}

input[type="number"] {
  background: var(--box-background);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  box-shadow: inset 0 2px 4px var(--accent-glow);
}

input::placeholder {
  color: var(--text-color);
  opacity: 0.7;
}

button {
  background: var(--border-color);
  color: var(--background-color);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 5px var(--accent-glow);
  font-weight: bold;
  animation: pulseGlow 1.5s infinite alternate;
}

button:hover {
  background: var(--text-color);
  color: var(--background-color);
  box-shadow: 0 0 10px var(--accent-glow);
}

button:active {
  transform: scale(0.97);
}

/* === Result & Past Calculation Container === */
.result-container,
#pastCalculations {
  max-height: 250px;
  overflow-y: auto;
  padding: 15px;
  background: var(--box-background);
  box-shadow: inset 0 2px 5px var(--accent-glow);
}

/* === Footer === */
.footer-container {
  width: 90%;
  max-width: 700px;
  margin: 20px auto;
  padding: 15px 20px;
  background: var(--box-background);
  color: var(--text-color);
  text-align: center;
  border-top: 2px solid var(--border-color);
  box-shadow: 0 -2px 5px var(--accent-glow);
  border-radius: 8px;
  backdrop-filter: blur(6px);
}

.footer-content {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.footer-content span {
  font-style: italic;
  opacity: 0.8;
}

/* === Theme & Language Controls === */
.theme-lang-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.control-button {
  width: 40px;
  height: 40px;
  background: var(--box-background);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.control-button:hover {
  background: var(--accent-glow);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* === Navigation Menu === */


/* === Responsive Media Queries === */
@media (max-width: 768px) {
  .container,
  .result-container,
  .footer-container {
    width: 95% !important;
  }


  .logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .logo-container img {
    max-width: 100%;
    height: auto;
  }

  .footer-container {
    flex-direction: column;
    padding: 10px;
    font-size: 0.85rem;
    text-align: center;
    gap: 6px;
  }

  .theme-lang-container .control-button {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-container img {
  max-width: 100%;
  height: auto;
}

.theme-lang-container .control-button {
  width: 36px;
  height: 36px;
  font-size: 13px;
}



/* === Gallery Sections === */
.company-gallery, .product-gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.company-gallery img, .product-gallery img {
  width: 320px;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--text-color);
  transition: transform 0.5s ease;
}

.company-gallery img:hover, .product-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--text-color);
}

/* === Hidden Elements === */
#calculator-link {
  display: none;
}

/* === Slideshow === */
.slideshow-container {
  position: relative;
  max-width: 600px;
  margin: auto;
  overflow: hidden;
}

.slide {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 10px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide:first-child {
  position: relative;
}

.slide-caption {
  color: var(--text-color);
  font-size: 1.2rem;
  margin-top: 10px;
  text-align: center;
}

/* === Social Icons === */
.social-icons a img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 5px var(--accent-glow));
  transition: transform 0.3s ease;
}

.social-icons a img:hover {
  transform: scale(1.1);
}

/* === Hero Section === */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-color);
  background: transparent;
}

.hero h2 {
  font-size: 3rem;
  color: var(--text-color);
  text-shadow: 3px 3px 10px var(--accent-glow);
  animation: glowText 3s ease-in-out infinite alternate;
}

@media (prefers-color-scheme: light) {
  .hero h2 {
    color: var(--border-color);
    text-shadow: none;
  }
}

.hero p {
  font-size: 1.5rem;
  max-width: 600px;
  margin: 20px auto;
  text-shadow: 2px 2px 10px var(--accent-glow);
}

.hero .razer-btn {
      min-width: 160px;
      max-width: 300px;
      padding: 12px 20px;
      font-size: 15px;
      border-radius: 8px;
      background: var(--button-background);
      color: var(--button-text-color);
      border: none;
      padding: 14px 24px;
      border-radius: 12px;
      font-weight: 600;
      font-size: 16px;
      box-shadow: 0 0 15px var(--accent-glow);
      transition: all 0.3s ease-in-out;
      text-transform: uppercase;
      letter-spacing: 1.2px;
      transition: 0.3s ease-in-out;
    }
.hero .razer-btn:hover {
      background: var(--button-hover);
      color: var(--button-text-hover);
      box-shadow:
        0 0 20px var(--accent-glow),
        0 0 35px var(--border-color),
        0 0 50px var(--border-color);
      transform: scale(1.1) rotate(-0.5deg);
      animation: pulse-glow 1.5s infinite;
      
    }
/* === Buttons Reuse === */
.btn-razer,
button {
  display: inline-block;
  padding: 10px 16px;
  background: var(--border-color);
  color: var(--background-color);
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s ease-in-out, background 0.3s ease, color 0.3s ease;
  text-align: center;
  margin-top: 15px;
  box-shadow: 0 0 15px var(--accent-glow);
  font-size: 14px;
  border: none;
  cursor: pointer;
  animation: pulseGlow 1.5s infinite alternate;
}

.btn-razer:hover,
button:hover {
  box-shadow: 0 0 20px var(--accent-glow);
  background: var(--text-color);
  color: var(--background-color);
}


@keyframes kushalaPulse {
  0% { box-shadow: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow); }
  50% { box-shadow: 0 0 25px var(--accent-glow), 0 0 40px var(--accent-glow); }
  100% { box-shadow: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow); }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    padding: 10px;
    font-size: 0.85rem;
    text-align: center;
    gap: 6px;
  }

  .theme-lang-container {
    margin-top: 10px;
    flex-wrap: wrap;
  }

  .theme-lang-container .control-button {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
}
/* === Mobile Nav Toggle === */
/* Fix mobile nav to prevent overlay */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  nav ul li {
    width: 100%;
    text-align: center;
    position: relative;
  }

  nav ul li > a {
    display: block;
    padding: 14px;
    border-top: 1px solid var(--border-color);
    width: 100%;
  }

  nav ul ul {
    display: none;
    position: relative; 
    background: var(--box-background);
    width: 100%;
    padding: 0;
    box-shadow: none;
    flex-direction: column;
  }

  nav ul li.active-submenu > ul {
    display: flex;
  }

  nav ul ul li {
    width: 100%;
  }

  nav ul ul li a {
    padding: 12px;
    border-top: 1px solid var(--border-color);
    width: 100%;
  }
}






#chatBotBox {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 340px;
  max-height: 500px;
  background: var(--box-background);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 0 20px var(--accent-glow);
  flex-direction: column;
  padding: 12px;
  z-index: 99998;
  display: none;
  transition: all 0.4s ease;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 25px rgba(0, 255, 180, 0.3), 0 0 60px rgba(0, 255, 180, 0.15);
}

#chatBotBox.open {
  display: flex;
}

#chatToggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--button-background);
  color: var(--button-text-color);
  font-size: 28px;
  border-radius: 16px;
  text-align: center;
  line-height: 60px;
  cursor: pointer;
  box-shadow: 0 0 20px var(--accent-glow);
  z-index: 99999;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

#chatToggle:hover {
  transform: scale(1.1);
  background: var(--button-hover);
  color: var(--button-text-hover);
  box-shadow: 0 0 30px var(--accent-orange-glow);
}

#chatContent {
  flex-grow: 1;
  overflow-y: auto;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--box-background);
}

.chat-bubble.bot {
  background: var(--button-background);
  border-left: 4px solid var(--accent-blue);
  color: var(--button-text-color);
  padding: 10px 14px;
  margin: 6px 0;
  border-radius: 10px;
  text-align: left;
  font-weight: 500;
}

.chat-bubble.user {
  background: var(--accent-yellow);
  border-right: 4px solid var(--accent-yellow-dark);
  color: #000;
  padding: 10px 14px;
  margin: 6px 0;
  border-radius: 10px;
  text-align: right;
  font-weight: 500;
}

#chatInput {
  border-radius: 8px;
  background: var(--box-background);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 10px;
  width: 100%;
  margin-top: 10px;
  outline: none;
  font-family: var(--font-secondary);
}

#sendBtn {
  background: var(--button-background);
  border: none;
  padding: 10px;
  margin-top: 6px;
  color: var(--button-text-color);
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

#sendBtn:hover {
  background: var(--button-hover);
  color: var(--button-text-hover);
  box-shadow: 0 0 12px var(--accent-glow);
}

#chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 150px;
  overflow-y: auto;
  justify-content: center;
  margin-top: 10px;
}

.suggestion-button {
  flex: 1 1 auto; 
  min-width: 45%; 
  text-align: center;
  padding: 10px;
  background: linear-gradient(to right, #232526, #414345);
  color: #f1f1f1;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
  font-family: var(--font-secondary);
  white-space: nowrap;
}

.suggestion-button:hover {
  background: linear-gradient(to right, #ff9966, #ff5e62);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 94, 98, 0.6);
  transform: scale(1.05);
}

.suggestion-button:hover::after {
  content: attr(title);
  position: absolute;
  background: #333;
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  top: -35px;
  left: 0;
  white-space: nowrap;
  z-index: 1000;
}

#chatStatusBar {
  width: 100%;
  height: 6px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--accent-glow), transparent);
  animation: pulseBar 2s infinite ease-in-out;
  margin-bottom: 10px;
}

#chatbot-suggestions::-webkit-scrollbar {
  width: 6px;
}

#chatbot-suggestions::-webkit-scrollbar-thumb {
  background-color: var(--accent-glow);
  border-radius: 6px;
}


@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}


.chat-wa-btn {
  display: inline-block;
  background-color: #25D366; /* WhatsApp green */
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  padding: 10px 16px;
  margin-top: 10px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  font-family: var(--font-secondary);
  text-align: center;
  animation: pulse 2s infinite;
}

.chat-wa-btn:hover {
  background-color: #1ebe5b;
  box-shadow: 0 0 15px #25D366, 0 0 25px rgba(37, 211, 102, 0.3);
  transform: scale(1.05);
}

/* === MODERN NAV FIX FOR CURRENT THEME === */
/* DESKTOP NAV */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(8px); 
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links a {
    text-decoration: none;
    color: blue;
    font-weight: bold;
}

/* MOBILE NAV BUTTON */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--accent-blue);
}
.nav-links a:hover {
    background-color: wheat;
    box-shadow: var();
    color: var(--text-color);
}
.brand {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 1.5rem;
    display: inline-block;
}

.brand:hover {
    color: var(--text-color); /* no color change on hover */
    cursor: pointer;
}



/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: var(--background-color);
        flex-direction: column;
        width: 200px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }
}


/* === SECTION STYLE (MATCH MM THEME) === */
.section {
  background: var(--box-background);
  padding: 80px 20px;
  box-shadow: none;
  margin: 0;
  border-radius: 0;
  max-width: none;
}

.section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  text-shadow: 0 0 10px var(--accent-glow);
}

.section p, .section ul, .section li {
  font-size: 1.1rem;
  color: var(--text-color);
  line-height: 1.7;
}

.section ul {
  list-style-type: disc;
  padding-left: 2rem;
}


/* === BUTTON (ALIAS TO MATCH razer-btn) === */
.button {
  padding: 14px 24px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 12px;
  background: var(--button-background);
  color: var(--button-text-color);
  text-decoration: none;
  box-shadow: 0 0 15px var(--accent-glow);
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 20px;
}

.button:hover {
  background: var(--button-hover);
  color: var(--button-text-hover);
  box-shadow: 0 0 25px var(--accent-glow), 0 0 40px var(--accent-glow);
  transform: scale(1.05);
}

.loaded-section {
    margin: 50px auto;
    max-width: 1200px;
    padding: 40px;
    background: var(--box-background);
    border-radius: 12px;
    box-shadow: 0 0 15px var(--accent-glow);
    transition: all 0.4s ease;
}


.table-content {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.concrete-table {
    border-collapse: collapse;
    width: auto;
    max-width: 100%;
    background-color: var(--box-background);
    color: var(--text-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 15px var(--accent-glow);
}

.concrete-table th, .concrete-table td {
    padding: 12px 18px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.concrete-table th {
    background-color: var(--box-background);
    font-weight: bold;
    font-size: 1.1rem;
}

.concrete-table tr:last-child td {
    border-bottom: none;
}


body {
    background: linear-gradient(
        rgba(255,255,255,0.6), 
        rgba(255,255,255,0.6)
    ), url('images/concrete-texture.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-color);
    transition: background-color 0.5s, color 0.5s;
}

.brand-logo {
    height: 40px;
    width: auto;
    display: block;
    transform: scale(2);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .brand-logo {
        transform: scale(1.3);
    }
}
