/* styles.css */

/* 1. Variables & Global Reset */
:root {
  --primary-color: #ffcc00;
  /* Vibrant Yellow */
  --primary-dark: #e6b800;
  --secondary-color: #6c757d;
  --accent-color: #0dcaf0;
  --dark-bg: #212529;
  --light-bg: #fff9e6;
  /* More saturated yellow-white */
  --text-body: #333333;
  --text-heading: #111111;
  --font-main: 'Inter', sans-serif;
  --transition-speed: 0.3s;

  /* Neumorphic Shadows */
  --nm-bg: #fffdf2;
  --nm-light-shadow: #ffffff;
  --nm-dark-shadow: rgba(0, 0, 0, 0.05);
  --nm-dark-shadow-deep: rgba(0, 0, 0, 0.1);
}

body {
  font-family: var(--font-main);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  background-color: #fffdf2;
  position: relative;
}

/* Neumorphic Utility Classes */
.nm-flat {
  background: var(--nm-bg);
  box-shadow: 10px 10px 20px var(--nm-dark-shadow),
    -10px -10px 20px var(--nm-light-shadow);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.nm-inset {
  background: var(--nm-bg);
  box-shadow: inset 5px 5px 10px var(--nm-dark-shadow),
    inset -5px -5px 10px var(--nm-light-shadow);
  border: none;
  border-radius: 12px;
}

.nm-button {
  background: var(--nm-bg);
  box-shadow: 5px 5px 10px var(--nm-dark-shadow),
    -5px -5px 10px var(--nm-light-shadow);
  border-radius: 12px;
  border: none;
  transition: all 0.2s ease;
}

.nm-button:active,
.nm-button.active {
  box-shadow: inset 3px 3px 6px var(--nm-dark-shadow),
    inset -3px -3px 6px var(--nm-light-shadow);
  transform: scale(0.98);
}

.nm-input {
  background: var(--nm-bg);
  box-shadow: inset 2px 2px 4px var(--nm-dark-shadow),
    inset -2px -2px 4px var(--nm-light-shadow);
  border: none !important;
  border-radius: 8px;
  padding: 10px 15px;
  transition: box-shadow 0.2s ease;
}

.nm-input:focus {
  outline: none;
  box-shadow: inset 4px 4px 8px var(--nm-dark-shadow),
    inset -4px -4px 8px var(--nm-light-shadow);
}

body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
  animation: bg-noise-anim 0.8s steps(4) infinite;
  /* Optimized matte texture animation */
}

@keyframes bg-noise-anim {

  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(-2%, -2%);
  }

  50% {
    transform: translate(-4%, 2%);
  }

  75% {
    transform: translate(2%, -4%);
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-main);
  color: var(--text-heading);
  font-weight: 700;
}

a,
button,
.btn,
.service-card,
.nav-link {
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  cursor: none !important;
}

/* 2. Navbar */
.navbar {
  padding: 1.2rem 0;
  transition: all var(--transition-speed) ease;
  background-color: rgba(255, 204, 0, 0.4);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border-bottom: 1px solid rgba(255, 204, 0, 0.3);
}

.navbar.scrolled {
  padding: 0.8rem 0;
  background-color: rgba(255, 252, 240, 0.8);
  box-shadow: 0 4px 30px rgba(255, 204, 0, 0.2);
  border-bottom: 1px solid rgba(255, 204, 0, 0.4);
}

.navbar-brand img {
  transition: height var(--transition-speed) ease;
}

.navbar-brand-text {
  color: #fff;
  transition: color var(--transition-speed) ease;
  line-height: 1.2;
}

.navbar-tagline {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  display: block;
  white-space: nowrap;
  transition: color var(--transition-speed) ease;
}

.tag-think {
  color: #ffffff !important;
}

.tag-start {
  color: #3399ff !important;
}

.tag-burn {
  color: #ff4d4d !important;
}

.navbar.scrolled .navbar-tagline {
  color: var(--secondary-color) !important;
}

.navbar.scrolled .navbar-brand img {
  height: 50px;
}

.navbar.scrolled .navbar-brand-text {
  color: var(--text-body) !important;
}

.navbar.scrolled .nav-link {
  color: var(--text-body) !important;
}

.navbar.scrolled .navbar-toggler-icon {
  filter: invert(1);
}

.nav-link {
  font-weight: 500;
  margin-left: 1rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  height: 3px;
}

.nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 700;
}

.social-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
  transition: transform 0.3s ease;
  animation: icon-bob 3s ease-in-out infinite;
}

.btn:hover .social-icon-img {
  transform: scale(1.2) rotate(10deg);
  animation-play-state: paused;
}

@keyframes icon-bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}




/* 3. Hero Carousel */
.carousel-item {
  height: 100vh;
  min-height: 600px;
  background-color: #000;
}

.overlay-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  opacity: 0.8;
  /* 80% brightness for a balance of color and contrast */
  transition: transform 10s linear;
}

/* Ken Burns Animation */
.carousel-item.active .overlay-image {
  animation: kenburns 20s linear infinite alternate;
}

@keyframes kenburns {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.1);
  }
}


.carousel-caption {
  bottom: 25%;
  left: 10%;
  right: 10%;
  padding-bottom: 2rem;
}

.carousel-caption h1 {
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
  color: #f8f9fa;
  font-size: 1.25rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}


/* 4. Services / Products */
.heading-line {
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.service-card {
  background: #fff;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  will-change: transform, box-shadow;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(255, 204, 0, 0.1);
  border-radius: 50%;
  color: var(--primary-color);
}

/* Override Bootstrap Primary for Yellow Theme */
.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #000 !important;
  box-shadow: 4px 4px 8px var(--nm-dark-shadow),
    -4px -4px 8px var(--nm-light-shadow);
  border-radius: 10px;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 6px 6px 12px var(--nm-dark-shadow),
    -6px -6px 12px var(--nm-light-shadow);
}

.btn-primary:active {
  box-shadow: inset 3px 3px 6px var(--nm-dark-shadow),
    inset -3px -3px 6px var(--nm-light-shadow) !important;
  transform: translateY(0);
}

.bg-primary {
  background-color: var(--primary-color) !important;
  color: #000 !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

/* 4.1 Carousel Navigation Controls */
.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffcc00'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
  width: 3rem;
  height: 3rem;
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffcc00'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
  width: 3rem;
  height: 3rem;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(255, 204, 0, 0.05);
}

.btn-outline-light {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}

.btn-outline-light:hover {
  background-color: var(--primary-color) !important;
  color: #000 !important;
}

/* 5. General Utilities */
.ls-2 {
  letter-spacing: 2px;
}

.hover-white:hover {
  color: #fff !important;
}

/* 6. Contact Form */
#contactForm input:focus,
#contactForm textarea:focus {
  border-color: var(--primary-color);
  box-shadow: none;
  background-color: #fff;
}

/* 7. Footer */
footer {
  color: #fff !important;
}

footer h5,
footer p,
footer span,
footer div {
  color: #fff !important;
}

footer .text-muted {
  color: #fff !important;
}

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: all var(--transition-speed);
}

footer a:hover {
  color: var(--primary-color) !important;
}

/* 8. Products */
.hover-up {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) ease, box-shadow 0.4s ease;
  will-change: transform, box-shadow;
}

.hover-up:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* 9. Custom Mouse Cursor */
.cursor-dot,
.cursor-outline {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  z-index: 9999;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: #007bff;
  transition: width 0.3s ease, height 0.3s ease;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid #007bff;
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.cursor-hover .cursor-dot {
  width: 12px;
  height: 12px;
}

.cursor-hover .cursor-outline {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 123, 255, 0.1);
  border-color: transparent;
}

/* 10. Background Logo Watermarks */
.bg-logos-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.bg-logo-watermark {
  position: absolute;
  opacity: 0.05;
  filter: grayscale(100%);
  user-select: none;
  animation: float-slow infinite alternate ease-in-out;
}

.logo-1 {
  width: 500px;
  top: 10%;
  left: -5%;
  animation-duration: 25s;
}

.logo-2 {
  width: 350px;
  bottom: 15%;
  right: -5%;
  animation-duration: 30s;
  animation-delay: -5s;
}

.logo-3 {
  width: 450px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.015;
  animation-duration: 40s;
  animation-delay: -10s;
}

@keyframes float-slow {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(2%, 4%) rotate(2deg);
  }

  100% {
    transform: translate(-1%, -2%) rotate(-1deg);
  }
}

/* 11. Animated Mesh Background */
.bg-animation-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  overflow: hidden;
  background: linear-gradient(-45deg, #fffdf2, #fff9e6, #fffde6, #fffdf2);
  background-size: 400% 400%;
  animation: background-gradient-anim 15s ease infinite;
  pointer-events: none;
}

@keyframes background-gradient-anim {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.bg-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-color) 0%, rgba(255, 204, 0, 0) 70%);
  filter: blur(80px);
  opacity: 0.35;
  border-radius: 50%;
  animation: move-blob 20s infinite alternate ease-in-out;
}

.blob-1 {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, #ffcc00 0%, rgba(255, 204, 0, 0) 70%);
  animation-duration: 25s;
}

.blob-2 {
  bottom: -10%;
  right: -5%;
  background: radial-gradient(circle, #ff9900 0%, rgba(255, 153, 0, 0) 70%);
  animation-duration: 30s;
  animation-delay: -5s;
}

.blob-3 {
  top: 40%;
  left: 30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #ffdb4d 0%, rgba(255, 219, 77, 0) 70%);
  animation-duration: 35s;
  animation-delay: -10s;
}

.blob-4 {
  bottom: 20%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #ffcc00 0%, rgba(255, 204, 0, 0) 70%);
  animation-duration: 28s;
  animation-delay: -3s;
  opacity: 0.2;
}

.blob-5 {
  top: 10%;
  right: 20%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #ff9900 0%, rgba(255, 153, 0, 0) 70%);
  animation-duration: 22s;
  animation-delay: -7s;
  opacity: 0.15;
}

@keyframes move-blob {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }

  33% {
    transform: translate(10%, 15%) scale(1.1) rotate(10deg);
  }

  66% {
    transform: translate(-5%, 20%) scale(0.9) rotate(-10deg);
  }

  100% {
    transform: translate(5%, -5%) scale(1) rotate(0deg);
  }
}

/* 12. AI Chatbot */
.chatbot-trigger {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: var(--nm-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 5px 5px 10px var(--nm-dark-shadow),
    -5px -5px 10px var(--nm-light-shadow);
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: none !important;
  z-index: 1001;
  transition: all 0.3s ease;
  animation: pulse-yellow 2s infinite;
}

.chatbot-trigger:active {
  box-shadow: inset 3px 3px 6px var(--nm-dark-shadow),
    inset -3px -3px 6px var(--nm-light-shadow);
  transform: scale(0.95);
}

.chatbot-trigger:hover {
  transform: scale(1.1);
}

.chatbot-trigger img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chatbot-welcome-bubble {
  position: absolute;
  right: 55px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 10px 18px;
  border-radius: 18px 18px 0 18px;
  border: 1px solid rgba(255, 204, 0, 0.4);
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  pointer-events: none;
  animation: float-bubble 3s infinite ease-in-out;
}

@keyframes float-bubble {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes pulse-yellow {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(255, 204, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 204, 0, 0);
  }
}

.chatbot-window {
  position: fixed;
  top: 100px;
  bottom: 85px;
  right: 20px;
  width: 380px;
  height: auto;
  background: var(--nm-bg);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  box-shadow: 15px 15px 30px var(--nm-dark-shadow),
    -15px -15px 30px var(--nm-light-shadow);
  z-index: 1000;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-window.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.chatbot-header {
  padding: 15px 20px;
  background: var(--primary-color);
  color: #000;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header-logo {
  height: 25px;
  width: auto;
  object-fit: contain;
}

.chatbot-header h5 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.chatbot-close {
  background: none;
  border: none;
  color: #000;
  font-size: 1.2rem;
  cursor: none !important;
}

.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: transparent;
}

.chat-msg {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 15px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.chat-msg.ai {
  background: rgba(255, 204, 0, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 204, 0, 0.1);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-msg.user {
  background: var(--primary-color);
  color: #000;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chatbot-input {
  padding: 15px;
  border-top: 1px solid rgba(255, 204, 0, 0.2);
  display: flex;
  gap: 10px;
}

.chatbot-input input {
  flex: 1;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  outline: none;
}

.chatbot-send {
  background: var(--primary-color);
  color: #000;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none !important;
  transition: transform 0.2s ease;
}

.chatbot-send:hover {
  transform: scale(1.1);
}

/* Responsive Branding Overrides */
@media (max-width: 768px) {
  .navbar-brand img {
    height: 45px !important;
  }

  .navbar-brand-text {
    font-size: 1rem !important;
  }

  .navbar-tagline {
    font-size: 0.6rem !important;
    letter-spacing: 0.5px !important;
  }

  .navbar-brand .ms-2 {
    margin-left: 0.5rem !important;
  }
}

@media (max-width: 480px) {
  .navbar-brand img {
    height: 38px !important;
  }

  .navbar-brand-text {
    font-size: 0.9rem !important;
  }

  .navbar-tagline {
    font-size: 0.55rem !important;
  }
}

/* Hero Slider Responsiveness */
@media (max-width: 768px) {
  .carousel-item {
    height: 60vh !important;
    min-height: 400px !important;
  }

  .carousel-caption {
    bottom: 15% !important;
    left: 5% !important;
    right: 5% !important;
    text-align: center !important;
  }

  .carousel-caption h1 {
    font-size: 1.8rem !important;
  }

  .carousel-caption p {
    font-size: 0.95rem !important;
  }

  .carousel-caption .btn-lg {
    padding: 0.5rem 1.2rem !important;
    font-size: 0.9rem !important;
  }
}