
/* ===== ROOT VARIABLES ===== */
:root {
  --primary: #0077b6;
  --primary-dark: #023e8a;
  --accent: #00b4d8;
  --light: #f0f8ff;
  --dark: #0d1b2a;
  --text: #333;
  --white: #fff;
  --card-shadow: 0 8px 30px rgba(0,119,182,0.12);
  --transition: all 0.35s ease;
  --radius: 16px;
  --navbar-h: 75px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Tahoma, sans-serif; color: var(--text); background: #fff; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== PRELOADER ===== */
#preloader {
  position: fixed; inset: 0; background: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  animation: preloaderFade 0.5s ease 2.5s forwards;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes preloaderFade {
  0%   { opacity: 1; visibility: visible; pointer-events: all; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; display: none; }
}
.loader-inner { text-align: center; color: #fff; }
.loader-circle {
  width: 60px; height: 60px; border: 4px solid rgba(255,255,255,0.3);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.9s linear infinite; margin: 0 auto 16px;
}
.loader-inner p { font-size: 1.1rem; letter-spacing: 2px; opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== NAVBAR ===== */
#mainNavbar {
  background: rgba(2,62,138,0.92);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
#mainNavbar.scrolled { background: var(--primary-dark); box-shadow: 0 4px 20px rgba(0,0,0,0.3); padding: 8px 0; }
.brand-name { font-size: 1.1rem; font-weight: 700; color: #fff; line-height: 1.2; }
.brand-tagline { font-size: 0.62rem; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; }
.brand-icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--accent), var(--primary)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: #fff; }
.navbar-nav .nav-link { color: rgba(255,255,255,0.88) !important; font-size: 0.88rem; font-weight: 500; padding: 6px 10px !important; border-radius: 8px; transition: var(--transition); }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: #fff !important; background: rgba(255,255,255,0.12); }
.btn-cta { background: linear-gradient(135deg, var(--accent), var(--primary)); color: #fff !important; padding: 8px 18px !important; border-radius: 25px; font-weight: 600; font-size: 0.85rem; transition: var(--transition); }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,180,216,0.4); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
  display: flex; align-items: center; position: relative; overflow: hidden; padding-top: var(--navbar-h);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(255,255,255,0.04)' d='M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,138.7C672,128,768,160,864,181.3C960,203,1056,213,1152,197.3C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
}
.hero-particles { position: absolute; inset: 0; overflow: hidden; }
.hero-particles span {
  position: absolute; display: block; width: 6px; height: 6px;
  background: rgba(255,255,255,0.15); border-radius: 50%; animation: float-up linear infinite;
}
@keyframes float-up { 0% { transform: translateY(100vh) scale(0); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(-10px) scale(1.5); opacity: 0; } }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; color: #fff; line-height: 1.15; }
.hero-title span { color: var(--accent); display: block; }
.hero-subtitle { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin: 20px 0 32px; max-width: 520px; line-height: 1.7; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-hero-primary { background: #fff; color: var(--primary-dark); padding: 14px 32px; border-radius: 50px; font-weight: 700; font-size: 1rem; transition: var(--transition); }
.btn-hero-primary:hover { background: var(--accent); color: #fff; transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,180,216,0.4); }
.btn-hero-outline { border: 2px solid rgba(255,255,255,0.7); color: #fff; padding: 12px 30px; border-radius: 50px; font-weight: 600; font-size: 1rem; transition: var(--transition); }
.btn-hero-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; transform: translateY(-3px); }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat .lbl { font-size: 0.75rem; color: rgba(255,255,255,0.7); letter-spacing: 1px; text-transform: uppercase; }
.hero-ac-illustration { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-ac-card {
  background: rgba(255,255,255,0.12); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 24px;
  padding: 40px; text-align: center; color: #fff;
  animation: float 4s ease-in-out infinite;
}
.hero-ac-card i { font-size: 6rem; color: var(--accent); display: block; margin-bottom: 16px; }
.hero-ac-card .ac-label { font-size: 1rem; opacity: 0.9; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

/* ===== SECTION COMMON ===== */
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; color: var(--dark); }
.section-subtitle { color: #666; font-size: 1rem; max-width: 600px; margin: 12px auto 0; line-height: 1.7; }
.section-divider { width: 60px; height: 4px; background: linear-gradient(to right, var(--primary), var(--accent)); border-radius: 2px; margin: 16px auto; }
section { padding: 90px 0; }
.bg-light-blue { background: var(--light); }

/* ===== CARDS ===== */
.service-card, .product-card, .project-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--card-shadow); transition: var(--transition);
  overflow: hidden; height: 100%;
}
.service-card:hover, .product-card:hover, .project-card:hover {
  transform: translateY(-8px); box-shadow: 0 16px 48px rgba(0,119,182,0.2);
}
.service-card-icon { width: 70px; height: 70px; border-radius: 18px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #fff; margin-bottom: 20px; transition: var(--transition); }
.service-card:hover .service-card-icon { transform: rotate(10deg) scale(1.1); }
.service-card { padding: 32px 28px; }
.service-card h4 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.service-card p { color: #666; font-size: 0.9rem; line-height: 1.6; }

/* PRODUCT CARD */
.product-card { border: 1px solid rgba(0,119,182,0.1); }
.product-img-wrap { height: 220px; overflow: hidden; background: var(--light); position: relative; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.08); }
.product-badge { position: absolute; top: 12px; left: 12px; background: var(--primary); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.product-body { padding: 20px; }
.product-body h5 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.product-price { color: var(--primary); font-size: 1.25rem; font-weight: 800; }
.product-old-price { color: #999; font-size: 0.85rem; text-decoration: line-through; }
.btn-product { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border: none; padding: 10px 20px; border-radius: 25px; font-size: 0.85rem; font-weight: 600; width: 100%; transition: var(--transition); cursor: pointer; }
.btn-product:hover { opacity: 0.9; transform: translateY(-2px); }

/* ===== WHY CHOOSE US ===== */
.why-card { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; border-radius: var(--radius); padding: 30px 24px; text-align: center; transition: var(--transition); }
.why-card:hover { transform: translateY(-6px); }
.why-card i { font-size: 2.5rem; color: var(--accent); margin-bottom: 14px; }
.why-card h5 { font-weight: 700; margin-bottom: 8px; }
.why-card p { font-size: 0.88rem; opacity: 0.85; }

/* ===== TESTIMONIALS ===== */
.testimonial-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--card-shadow); border-left: 5px solid var(--accent); }
.testimonial-stars { color: #f9c74f; font-size: 1rem; margin-bottom: 10px; }
.testimonial-card p { color: #555; font-size: 0.92rem; line-height: 1.7; font-style: italic; }
.testimonial-author { margin-top: 16px; font-weight: 700; color: var(--dark); }

/* ===== PRICING / AMC ===== */
.price-card { background: #fff; border-radius: var(--radius); padding: 36px 28px; text-align: center; box-shadow: var(--card-shadow); border: 2px solid transparent; transition: var(--transition); position: relative; }
.price-card.featured { border-color: var(--accent); }
.price-card.featured::before { content: 'Most Popular'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; padding: 4px 16px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; }
.price-card:hover { transform: translateY(-6px); border-color: var(--primary); }
.price-amount { font-size: 2.4rem; font-weight: 800; color: var(--primary); }
.price-period { font-size: 0.85rem; color: #888; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0; text-align: left; }
.price-card ul li { padding: 7px 0; border-bottom: 1px solid #f0f0f0; font-size: 0.88rem; color: #555; }
.price-card ul li i { color: var(--accent); margin-right: 8px; }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.gallery-item { border-radius: 12px; overflow: hidden; cursor: pointer; position: relative; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(2,62,138,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: #fff; font-size: 2rem; }

/* ===== LIGHTBOX ===== */
#lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9998; display: none; align-items: center; justify-content: center; }
#lightbox.active { display: flex; }
#lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 12px; }
#lightbox .lb-close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 2.5rem; cursor: pointer; }

/* ===== BOOKING FORM ===== */
.booking-section { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.booking-form-card { background: rgba(255,255,255,0.06); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius); padding: 40px; }
.booking-form-card label { color: rgba(255,255,255,0.85); font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
.booking-form-card .form-control, .booking-form-card .form-select { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); color: #fff; border-radius: 10px; padding: 12px 16px; }
.booking-form-card .form-control::placeholder { color: rgba(255,255,255,0.5); }
.booking-form-card .form-control:focus { background: rgba(255,255,255,0.15); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,180,216,0.2); color: #fff; }
.booking-form-card .form-select option { background: var(--primary-dark); }
.btn-book-submit { background: linear-gradient(135deg, #fff, #e0f0ff); color: var(--primary-dark); font-weight: 700; padding: 14px 40px; border-radius: 50px; border: none; font-size: 1rem; transition: var(--transition); cursor: pointer; }
.btn-book-submit:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

/* ===== CONTACT ===== */
.contact-info-card { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; border-radius: var(--radius); padding: 40px; height: 100%; }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.contact-icon { width: 48px; height: 48px; background: rgba(255,255,255,0.12); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-form-card { background: #fff; border-radius: var(--radius); padding: 40px; box-shadow: var(--card-shadow); }
.contact-form-card .form-control { border-radius: 10px; padding: 12px 16px; border: 1.5px solid #e0e0e0; }
.contact-form-card .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,119,182,0.1); }
.btn-contact-submit { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border: none; padding: 14px 40px; border-radius: 50px; font-weight: 700; font-size: 1rem; transition: var(--transition); cursor: pointer; }
.btn-contact-submit:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,119,182,0.3); }

/* ===== FLOATING BUTTONS ===== */
.float-whatsapp, .float-call {
  position: fixed; right: 24px; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff; z-index: 990; transition: var(--transition);
  box-shadow: 0 4px 18px rgba(0,0,0,0.2);
}
.float-whatsapp { bottom: 88px; background: #25d366; }
.float-call { bottom: 28px; background: var(--primary); }
.float-whatsapp:hover, .float-call:hover { transform: scale(1.12); color: #fff; }

/* ===== LIVE CHAT ===== */
.chat-bubble {
  position: fixed; left: 24px; bottom: 28px; width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%; border: none; color: #fff; font-size: 1.5rem;
  cursor: pointer; box-shadow: 0 4px 18px rgba(0,119,182,0.4); z-index: 990;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.chat-bubble:hover { transform: scale(1.1); }
.chat-dot { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; background: #2ecc71; border-radius: 50%; border: 2px solid #fff; animation: pulse-dot 1.5s infinite; }
@keyframes pulse-dot { 0%,100% { transform: scale(1); } 50% { transform: scale(1.3); } }
.chat-widget {
  position: fixed; left: 24px; bottom: 96px; width: 300px;
  background: #fff; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  z-index: 991; display: none; flex-direction: column; overflow: hidden;
}
.chat-widget.open { display: flex; }
.chat-header { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; padding: 14px 16px; font-weight: 700; display: flex; align-items: center; font-size: 0.9rem; }
.chat-close { background: none; border: none; color: #fff; font-size: 1.1rem; cursor: pointer; }
.chat-body { padding: 16px; min-height: 160px; max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { padding: 10px 14px; border-radius: 14px; font-size: 0.85rem; max-width: 85%; line-height: 1.5; }
.chat-msg.bot { background: var(--light); color: var(--dark); align-self: flex-start; }
.chat-msg.user { background: var(--primary); color: #fff; align-self: flex-end; }
.chat-input-row { display: flex; border-top: 1px solid #eee; }
.chat-input-row input { flex: 1; border: none; padding: 12px 16px; font-size: 0.85rem; outline: none; }
.chat-input-row button { background: var(--primary); color: #fff; border: none; padding: 0 18px; cursor: pointer; }

/* ===== FOOTER ===== */
.main-footer { background: var(--dark); color: rgba(255,255,255,0.8); }
.footer-top { padding: 70px 0 40px; }
.footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-bottom a { color: var(--accent); }
.footer-heading { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-heading::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 3px; background: var(--accent); border-radius: 2px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.88rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); padding-left: 6px; }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: 0.88rem; color: rgba(255,255,255,0.75); }
.footer-contact li i { color: var(--accent); margin-top: 2px; width: 16px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,0.75); }
.footer-contact a:hover { color: var(--accent); }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.88rem; line-height: 1.7; }
.brand-icon-lg { width: 56px; height: 56px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; }
.social-links { display: flex; gap: 10px; }
.social-btn { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; transition: var(--transition); }
.social-btn:hover { transform: translateY(-4px); }
.social-btn.facebook { background: #1877f2; }
.social-btn.youtube { background: #ff0000; }
.social-btn.whatsapp { background: #25d366; }
.social-btn.indiamart { background: #f9a825; }

/* ===== ABOUT ===== */
.about-img-wrap { position: relative; }
.about-img-wrap img { border-radius: var(--radius); }
.about-badge { position: absolute; bottom: -20px; right: -20px; background: var(--primary); color: #fff; border-radius: var(--radius); padding: 20px 28px; text-align: center; box-shadow: 0 8px 24px rgba(0,119,182,0.3); }
.about-badge .badge-num { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.about-badge .badge-lbl { font-size: 0.72rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 1px; }

/* ===== ADMIN ===== */
.admin-sidebar { background: var(--primary-dark); min-height: 100vh; width: 240px; position: fixed; top: 0; left: 0; padding: 30px 0; color: #fff; }
.admin-sidebar .brand { padding: 0 24px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 16px; }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 24px; color: rgba(255,255,255,0.75); font-size: 0.9rem; transition: var(--transition); }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,0.1); color: #fff; border-left: 3px solid var(--accent); }
.admin-content { margin-left: 240px; padding: 32px; background: #f4f7fc; min-height: 100vh; }
.admin-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.stat-card { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; border-radius: var(--radius); padding: 24px; }
.stat-card .stat-num { font-size: 2.2rem; font-weight: 800; }
.stat-card .stat-lbl { font-size: 0.85rem; opacity: 0.8; }

/* ===== ALERTS ===== */
.alert-success-custom { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; border-radius: 10px; padding: 14px 20px; margin-bottom: 20px; }
.alert-error-custom { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; border-radius: 10px; padding: 14px 20px; margin-bottom: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  section { padding: 60px 0; }
  .hero { text-align: center; }
  .hero-subtitle, .hero-stats { justify-content: center; }
  .hero-btns { justify-content: center; }
  .about-badge { position: relative; right: 0; bottom: 0; display: inline-block; margin-top: 20px; }
  .admin-sidebar { position: relative; width: 100%; min-height: auto; }
  .admin-content { margin-left: 0; }
}
@media (max-width: 576px) {
  .hero-title { font-size: 1.9rem; }
  .hero-stats { gap: 16px; }
  .chat-widget { width: calc(100vw - 48px); }
}


/* ===== AOS FALLBACK - show content even if CDN fails ===== */
[data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: opacity 0.6s ease, transform 0.6s ease !important;
}
[data-aos].aos-animate {
  opacity: 1 !important;
  transform: none !important;
}
