/* ===========================
   Sri Bhadrakali Security Systems - Dark Mode & Orange Theme
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #000000;        /* Pure Black */
  --primary-light: #111111;  /* Very Dark Grey */
  --accent: #ff5a00;         /* High-Tech Security Orange */
  --accent-hover: #e04e00;   /* Deeper Orange */
  --btn-grad: linear-gradient(135deg, #ff6a00 0%, #ee0979 100%); /* Orange-Red vivid gradient */
  --bg-light: #0d0d0d;       /* Alternating section dark color */
  --bg-white: #1a1a1a;       /* Cards background */
  --text-main: #b3b3b3;      /* Light grey readable text */
  --text-dark: #ffffff;      /* Headings are pure white in dark mode */
  --text-light: #888888;     /* Muted text */
  --border: #333333;         /* Subtle dark grey borders */
  
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.5);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.6);
  --shadow-lg: 0 15px 35px rgba(0,0,0,0.8);
  --radius-md: 12px;
  --radius-lg: 24px;
  --transition: all 0.25s ease;
  --font-main: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--primary);
  color: var(--text-main);
  line-height: 1.6;
}
img { max-width: 100%; display: block; border-radius: 8px; }
video { max-width: 100%; display: block; border-radius: var(--radius-lg); object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; font-family: var(--font-main); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; }
.section:nth-child(even) { background: var(--primary-light); }
.section-light { background: var(--bg-white); }
.section-dark { background: var(--bg-light); }

.section-header { text-align: center; margin-bottom: 50px; }
.section-tag {
  display: inline-block;
  background: rgba(255, 90, 0, 0.15);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 1px solid rgba(255, 90, 0, 0.3);
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-main);
  max-width: 600px;
  margin: 0 auto;
}
.highlight { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 35px;
  border-radius: 50px; font-size: 1rem; font-weight: 700;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-primary {
  background: var(--btn-grad); color: white;
  box-shadow: 0 4px 15px rgba(255, 90, 0, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 90, 0, 0.5);
}
.btn-outline {
  background: transparent; color: white;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--accent); color: var(--accent); background: rgba(255, 255, 255, 0.05);
}

/* Header */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 24px 0; transition: var(--transition);
}
#header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(15px);
  padding: 16px 0; box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--border);
}
#header.scrolled .nav-logo { color: var(--text-dark); }
#header.scrolled .nav-links a { color: var(--text-main); }
#header.scrolled .nav-links a.active, #header.scrolled .nav-links a:hover { color: var(--accent); }
#header.scrolled .hamburger span { background: var(--text-dark); }
#header.scrolled .nav-cta { color: white !important; }

.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-size: 1.3rem; font-weight: 800; color: white;
  display: flex; align-items: center; gap: 12px;
}
.logo-icon {
  width: 40px; height: 40px; background: var(--accent);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.2rem;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 0.95rem; font-weight: 600; color: rgba(255,255,255,0.85);
  padding: 8px 18px; transition: var(--transition); border-radius: 8px;
}
.nav-links a:hover { color: white; background: rgba(255,255,255,0.1); }
.nav-links a.active { color: var(--accent); }
#header.scrolled .nav-links a:hover { background: var(--bg-white); color: var(--text-dark); }

.nav-cta {
  background: var(--btn-grad) !important; color: white !important;
  font-weight: 700 !important; border-radius: 50px !important; margin-left: 10px;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hamburger { display: none; background: none; flex-direction: column; gap: 6px; padding: 8px; }
.hamburger span { width: 26px; height: 2px; background: white; transition: 0.3s; border-radius: 2px; }

/* Hero Section */
#hero {
  min-height: 90vh; display: flex; align-items: center; justify-content: center;
  position: relative; background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%); color: white;
  padding-top: 80px; overflow: hidden; text-align: center;
}
.hero-bg {
  position: absolute; inset: 0; opacity: 0.2;
  background: url('images/hero_banner.png') center/cover no-repeat;
  filter: grayscale(80%) sepia(20%) hue-rotate(340deg);
}
.hero-content {
  position: relative; z-index: 2; max-width: 900px; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255, 90, 0, 0.15); border: 1px solid var(--accent);
  padding: 8px 20px; border-radius: 50px; font-size: 0.9rem;
  font-weight: 700; color: var(--accent); margin-bottom: 28px;
  letter-spacing: 1px; text-transform: uppercase;
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 24px;
}
.hero-title .line-accent { color: var(--accent); display: block; text-transform: uppercase; }
.hero-subtitle {
  font-size: 1.2rem; color: #cccccc; margin-bottom: 40px; margin-inline: auto; max-width: 650px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Stats Banner */
#stats { background: var(--bg-white); padding: 40px 0; border: 1px solid var(--border); position: relative; z-index: 5; margin-top: -50px; border-radius: 16px; box-shadow: var(--shadow-lg); max-width: 1100px; margin-inline: auto; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item { padding: 10px; }
.stat-item .number { font-size: 2.8rem; font-weight: 900; color: var(--accent); display: block; line-height: 1; margin-bottom: 8px; }
.stat-item .label { font-size: 0.9rem; font-weight: 700; color: var(--text-main); text-transform: uppercase; letter-spacing: 1px; }

/* Video Gallery Section */
.video-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px;
  margin-top: 40px;
}
.video-card {
  background: var(--bg-white); border-radius: var(--radius-lg); padding: 20px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: var(--transition); text-align: center;
}
.video-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(255, 90, 0, 0.2); border-color: rgba(255, 90, 0, 0.4); }
.video-wrap {
  position: relative; border-radius: 16px; overflow: hidden; background: #000;
  aspect-ratio: 16/9; margin-bottom: 16px; border: 1px solid var(--border);
}
.video-card h3 { color: var(--text-dark); font-weight: 700; font-size: 1.1rem; }

/* About */
#about { padding-top: 80px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-visual {
  background: var(--primary); border-radius: var(--radius-lg); padding: 50px;
  text-align: center; font-size: 6rem; border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.about-visual::before {
  content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,90,0,0.1), transparent);
}
.about-text .section-title { text-align: left; margin-bottom: 20px; }
.about-text .section-subtitle { text-align: left; max-width: 100%; margin-bottom: 30px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-feat-item {
  display: flex; align-items: center; gap: 12px; font-size: 0.95rem; font-weight: 600;
  color: var(--text-dark); background: var(--bg-white); padding: 14px 20px;
  border-radius: 12px; border: 1px solid var(--border);
}
.about-feat-item .icon { color: var(--accent); font-size: 1.1rem; }
.mv-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.mv-card {
  background: var(--primary); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; transition: var(--transition);
}
.mv-card:hover { border-color: var(--accent); }
.mv-card h4 { color: var(--text-dark); font-size: 1rem; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.mv-card p { font-size: 0.9rem; color: var(--text-main); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card {
  background: var(--bg-white); padding: 40px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: var(--transition);
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(255, 90, 0, 0.15); border-color: var(--accent); }
.service-icon {
  width: 64px; height: 64px; background: rgba(255, 90, 0, 0.1); color: var(--accent);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin-bottom: 24px; border: 1px solid rgba(255, 90, 0, 0.2);
}
.service-card h3 { font-size: 1.3rem; font-weight: 800; color: var(--text-dark); margin-bottom: 16px; }
.service-card p { font-size: 0.95rem; color: var(--text-main); line-height: 1.6; margin-bottom: 20px; }
.service-features { display: flex; flex-direction: column; gap: 10px; }
.service-features li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--text-main); font-weight: 500; }
.service-features li::before { content: '✓'; color: var(--accent); font-weight: 800; }

/* Products */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.product-card {
  background: var(--bg-white); border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: var(--transition);
}
.product-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 10px 30px rgba(255, 90, 0, 0.15); }
.product-img-wrap {
  height: 200px; background: var(--primary); border-radius: 16px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
  padding: 20px; position: relative;
}
.product-badge { position: absolute; top: 12px; left: 12px; background: var(--btn-grad); color: white; font-size: 0.75rem; font-weight: 800; padding: 6px 12px; border-radius: 50px; text-transform: uppercase; }
.product-img-wrap img { max-height: 100%; object-fit: contain; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.8)); }
.product-info h3 { font-size: 1.2rem; font-weight: 800; color: var(--text-dark); margin-bottom: 10px; }
.product-info p { font-size: 0.95rem; color: var(--text-main); margin-bottom: 20px; line-height: 1.5; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-weight: 800; color: var(--accent); font-size: 1.2rem; }
.product-btn {
  background: transparent; color: white; border: 1px solid var(--border);
  padding: 10px 20px; border-radius: 50px; font-weight: 700; font-size: 0.9rem; transition: var(--transition);
}
.product-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }

/* Why Us */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.why-card { text-align: center; padding: 40px 30px; background: var(--bg-white); border-radius: var(--radius-lg); border: 1px solid var(--border); transition: var(--transition); }
.why-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.why-icon { width: 80px; height: 80px; margin: 0 auto 24px; background: rgba(255, 90, 0, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: var(--accent); }
.why-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 12px; color: var(--text-dark); }
.why-card p { font-size: 0.95rem; line-height: 1.6; }

/* Testimonials */
.testimonials-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.testimonial-card {
  background: var(--bg-white); padding: 40px; border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.stars { color: var(--accent); margin-bottom: 20px; font-size: 1.2rem; letter-spacing: 2px; }
.testimonial-card p { font-style: italic; margin-bottom: 24px; color: #dddddd; line-height: 1.7; font-size: 1rem; }
.reviewer { display: flex; align-items: center; gap: 16px; }
.reviewer-avatar { width: 48px; height: 48px; background: var(--accent); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; }
.reviewer-info h4 { font-size: 1rem; font-weight: 700; color: var(--text-dark); }
.reviewer-info span { font-size: 0.85rem; color: var(--text-light); }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.contact-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }
.contact-item {
  display: flex; align-items: center; gap: 20px; padding: 20px;
  background: var(--bg-white); border-radius: 16px; border: 1px solid var(--border); transition: var(--transition);
}
.contact-item:hover { transform: translateX(5px); border-color: var(--accent); }
.contact-item-icon { width: 50px; height: 50px; background: rgba(255, 90, 0, 0.1); color: var(--accent); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.contact-item-text label { font-size: 0.8rem; font-weight: 800; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }
.contact-item-text span { font-size: 1rem; font-weight: 600; color: var(--text-dark); display: block; margin-top: 4px; }
.map-wrap { border-radius: 16px; overflow: hidden; height: 250px; border: 1px solid var(--border); filter: invert(90%) hue-rotate(180deg) brightness(80%) contrast(120%); }
.map-wrap iframe { width: 100%; height: 100%; border: none; }

.contact-form-wrap { background: var(--bg-white); padding: 50px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.contact-form-wrap h3 { font-size: 1.5rem; font-weight: 800; color: var(--text-dark); margin-bottom: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; color: var(--text-light); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 18px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--primary); font-family: var(--font-main); font-size: 1rem; transition: var(--transition); color: white;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 90, 0, 0.2); }
.form-submit { width: 100%; padding: 16px; background: var(--btn-grad); color: white; font-weight: 800; border-radius: 50px; font-size: 1.1rem; transition: var(--transition); margin-top: 10px; text-transform: uppercase; letter-spacing: 1px; }
.form-submit:hover { box-shadow: 0 6px 20px rgba(255, 90, 0, 0.4); transform: translateY(-3px); }

/* Footer */
#footer { background: var(--primary); color: var(--text-light); padding: 80px 0 30px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1.5fr; gap: 50px; margin-bottom: 60px; }
.footer-brand p { margin: 20px 0 30px; font-size: 0.95rem; line-height: 1.8; max-width: 350px; }
.footer-socials { display: flex; gap: 12px; }
.footer-social-btn { width: 40px; height: 40px; background: var(--bg-white); border-radius: 10px; color: white; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: var(--transition); border: 1px solid var(--border); }
.footer-social-btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.footer-col h4 { color: white; font-size: 1.1rem; font-weight: 800; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 1.5px; }
.footer-col ul { display: flex; flex-direction: column; gap: 14px; }
.footer-col a { transition: var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; font-size: 0.95rem; line-height: 1.6; }
.footer-contact-item .dot { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 30px; display: flex; justify-content: space-between; font-size: 0.9rem; flex-wrap: wrap; gap: 20px; }

/* Floating & Toast */
.floating-btns { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 12px; z-index: 99; }
.float-btn { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: var(--shadow-lg); transition: var(--transition); color: white; }
.float-whatsapp { background: #25d366; }
.float-chat { background: var(--btn-grad); }
.float-top { background: var(--bg-white); color: white; border: 1px solid var(--border); }
.float-btn:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(255, 90, 0, 0.4); }

#chat-widget { position: fixed; bottom: 100px; right: 30px; width: 350px; background: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); z-index: 100; display: none; overflow: hidden; }
#chat-widget.open { display: block; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.chat-header { background: var(--primary-light); border-bottom: 1px solid var(--border); color: white; padding: 20px; display: flex; justify-content: space-between; align-items: center; }
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar { width: 40px; height: 40px; background: rgba(255, 90, 0, 0.2); color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.chat-header h4 { font-size: 1rem; font-weight: 700; }
.chat-header span { font-size: 0.8rem; opacity: 0.8; display: flex; align-items: center; gap: 6px; }
.chat-status-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.chat-close { background: none; color: white; font-size: 1.2rem; }

.chat-body { padding: 20px; height: 280px; overflow-y: auto; background: var(--bg-white); display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 85%; padding: 12px 16px; border-radius: 12px; font-size: 0.95rem; line-height: 1.5; }
.chat-msg.bot { background: var(--primary); color: white; align-self: flex-start; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--btn-grad); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-footer { padding: 16px 20px; background: var(--bg-white); border-top: 1px solid var(--border); display: flex; gap: 12px; }
.chat-footer input { flex: 1; padding: 12px 16px; background: var(--primary); color: white; border: 1px solid var(--border); border-radius: 50px; outline: none; font-family: var(--font-main); font-size: 0.95rem; }
.chat-footer input:focus { border-color: var(--accent); }
.chat-send { width: 44px; height: 44px; background: var(--btn-grad); color: white; border-radius: 50%; flex-shrink: 0; transition: var(--transition); }
.chat-send:hover { opacity: 0.9; transform: scale(1.05); }

#toast { position: fixed; bottom: 30px; left: 50%; transform: translate(-50%, 150px); background: var(--btn-grad); color: white; padding: 14px 28px; border-radius: 50px; box-shadow: var(--shadow-lg); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 9999; font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
#toast.show { transform: translate(-50%, 0); }
.form-success { display: none; text-align: center; color: var(--accent); font-weight: 700; font-size: 1.1rem; padding: 20px; background: rgba(255,90,0,0.1); border-radius: 12px; border: 1px solid var(--accent); }

/* Responsive */
@media (max-width: 992px) {
  .about-grid, .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  #stats { margin: 20px; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--primary-light); flex-direction: column; padding: 20px; border-bottom: 1px solid var(--border); display: none; }
  .nav-links a { color: white; font-size: 1.1rem; width: 100%; text-align: center; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .nav-cta { width: 100%; text-align: center; justify-content: center; margin-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .floating-btns { right: 20px; bottom: 20px; }
  #chat-widget { right: 20px; width: calc(100vw - 40px); }
  .footer-grid { grid-template-columns: 1fr; }
}
