/* =========================================
   Creative Enhancements (brand + UI polish)
   Safe overrides only (loaded after responsive.css)
========================================= */

:root {
  /* Default theme in this project is dark (background deep navy). */
  --glass-bg: rgba(15, 23, 42, 0.55);
  --glass-border: rgba(148, 163, 184, 0.18);
  --glass-highlight: rgba(255, 255, 255, 0.06);
  --grid-line: rgba(255, 255, 255, 0.03);
}

/* Light mode in this project is enabled via the .dark-mode class (variable swap). */
body.dark-mode {
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(15, 23, 42, 0.12);
  --glass-highlight: rgba(15, 23, 42, 0.06);
  --grid-line: rgba(15, 23, 42, 0.06);
}


/* Subtle grid overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
}

/* Glass cards */
.service-card,
.project-card,
.sidebar-widget,
.contact-form,
.about-image .image-container {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.service-card:hover,
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

/* Button shine */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -120%;
  width: 140%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-20deg);
  transition: var(--transition-normal);
}

.btn-primary:hover::before {
  left: 140%;
}

/* Footer social */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition-fast);
}

.footer-social a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  z-index: 10001;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
}

.whatsapp-float i {
  font-size: 26px;
}

/* Keep WhatsApp from overlapping scroll-top on small screens */
@media (max-width: 768px) {
  .whatsapp-float {
    left: 16px;
    bottom: 84px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }
}


/* Hero slogan */
.hero-slogan {
  margin-top: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  opacity: 0.9;
}


/* Light-mode contrast fixes */
body.dark-mode .footer-social a {
  color: var(--light);
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.10);
}

body.dark-mode .footer-social a:hover {
  background: rgba(15, 23, 42, 0.08);
}

body.dark-mode .btn-outline {
  border-color: rgba(15, 23, 42, 0.18);
  color: var(--light);
}


body.dark-mode .lang-option {
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.10);
}

body.dark-mode .language-bar {
  border-bottom-color: rgba(15, 23, 42, 0.10);
}

body.dark-mode .newsletter-form input {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.14);
}

/* Logo image */
.logo-img{
  height: 42px;
  width: auto;
  display: block;
}

@media (max-width: 768px){
  .logo-img{height: 38px;}
}

/* Footer contact */
.footer-contact{
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-contact-item{
  color: var(--gray-light);
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.footer-contact-item:hover{
  color: var(--light);
  transform: translateX(-2px);
}

/* Light-mode navbar contrast */
body.dark-mode .nav-link{
  color: rgba(15,23,42,0.86);
}
body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active{
  color: rgba(15,23,42,1);
}
body.dark-mode .dropdown-menu{
  background: rgba(255,255,255,0.92);
  border-color: rgba(15,23,42,0.10);
}
body.dark-mode .dropdown-menu a{
  color: rgba(15,23,42,0.86);
}
body.dark-mode .dropdown-menu a:hover{
  background: rgba(15,23,42,0.06);
  color: rgba(15,23,42,1);
}

/* FAQ Chat widget */
.faq-chat-toggle{
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(135deg, rgba(99,102,241,1), rgba(236,72,153,1));
  color: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  z-index: 10002;
  cursor: pointer;
}

.faq-chat-toggle:hover{transform: translateY(-2px);}

.faq-chat-toggle i{font-size: 22px;}

.faq-chat-panel{
  position: fixed;
  right: 24px;
  bottom: 92px;
  width: 360px;
  max-width: calc(100vw - 48px);
  border-radius: 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  backdrop-filter: blur(16px);
  overflow: hidden;
  z-index: 10003;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.faq-chat-panel.open{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.faq-chat-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-bottom: 1px solid var(--glass-border);
}

.faq-chat-sub{
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 2px;
}

.faq-chat-close{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.06);
  color: var(--light);
  cursor: pointer;
}

body.dark-mode .faq-chat-close{background: rgba(15,23,42,0.04);}

.faq-chat-body{padding: 12px;}

.faq-chat-search{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.06);
  color: var(--light);
  outline: none;
}

body.dark-mode .faq-chat-search{background: rgba(15,23,42,0.03);}

.faq-chat-list{
  margin-top: 10px;
  max-height: 260px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.04);
}

.faq-q{font-weight: 700; margin-bottom: 4px;}
.faq-a{color: var(--gray-light); font-size: 0.92rem; line-height: 1.5;}

.faq-chat-actions{
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-top: 1px solid var(--glass-border);
}

.btn.btn-sm{padding: 10px 12px; font-size: 0.92rem;}

@media (max-width: 768px){
  .faq-chat-toggle{right: 16px; bottom: 84px;}
  .faq-chat-panel{right: 16px; bottom: 144px; width: calc(100vw - 32px);}
}
