/* Eminent BIM Services - Main Styles */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

.text-accent { color: var(--secondary) !important; }

/* Page Loader */
.page-loader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo {
  font-family: var(--font-accent);
  font-size: 2.5rem; font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.loader-bar {
  width: 120px; height: 3px; background: rgba(255,255,255,0.1);
  margin-top: 1rem; border-radius: 3px; overflow: hidden; position: relative;
}
.loader-bar::after {
  content: ''; position: absolute; left: -50%; width: 50%; height: 100%;
  background: var(--secondary); animation: loaderSlide 1s infinite;
}
@keyframes loaderSlide { to { left: 100%; } }

/* Custom Cursor */
.cursor-dot, .cursor-outline {
  position: fixed; pointer-events: none; z-index: 99998; border-radius: 50%;
  transform: translate(-50%, -50%); transition: transform 0.15s ease;
}
.cursor-dot { width: 8px; height: 8px; background: var(--secondary); }
.cursor-outline {
  width: 40px; height: 40px; border: 1px solid rgba(249, 115, 22, 0.5);
  transition: width 0.2s, height 0.2s, border-color 0.2s;
}
body:hover .cursor-outline { width: 50px; height: 50px; }
@media (max-width: 991px) { .cursor-dot, .cursor-outline { display: none; } }

/* Navbar */
.eminent-nav {
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.75rem 0;
  transition: var(--transition);
}
.eminent-nav.scrolled { background: rgba(2, 6, 23, 0.95); box-shadow: var(--shadow-card); }
[data-theme="light"] .eminent-nav { background: rgba(255,255,255,0.9); }

.navbar-brand {
  font-family: var(--font-accent);
  font-weight: 800; font-size: 1.35rem;
  color: var(--text-primary) !important;
  display: flex; align-items: center; gap: 0.5rem;
}
.brand-icon {
  width: 40px; height: 40px;
  background: var(--gradient-accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff;
}
.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500; padding: 0.5rem 1rem !important;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--secondary) !important; }
.btn-theme-toggle {
  background: transparent; border: 1px solid var(--glass-border);
  color: var(--text-primary); width: 40px; height: 40px;
  border-radius: 10px; cursor: pointer; transition: var(--transition);
}
.btn-theme-toggle:hover { border-color: var(--secondary); color: var(--secondary); }

/* Buttons */
.btn-primary {
  background: var(--secondary); border: none;
  color: #fff; font-weight: 600; padding: 0.65rem 1.5rem;
  border-radius: 10px; transition: var(--transition);
}
.btn-primary:hover {
  background: #EA580C; transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.35); color: #fff;
}
.btn-glow { box-shadow: 0 0 20px rgba(249, 115, 22, 0.3); }
.btn-outline-light {
  border: 1px solid var(--glass-border); color: var(--text-primary);
  border-radius: 10px; transition: var(--transition);
}
.btn-outline-light:hover {
  background: var(--secondary); border-color: var(--secondary); color: #fff;
}
.btn-outline-accent {
  border: 2px solid var(--secondary); color: var(--secondary);
  background: transparent; border-radius: 10px; font-weight: 600;
}
.btn-outline-accent:hover { background: var(--secondary); color: #fff; }

/* Glass Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.glass-card:hover {
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

/* Section */
.section { padding: 100px 0; position: relative; }
.section-header { margin-bottom: 3.5rem; }
.section-label {
  font-family: var(--font-accent);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--secondary); display: block; margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}
.section-desc { color: var(--text-muted); max-width: 600px; }

/* Hero */
.hero-section {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: var(--nav-height);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg-video, .hero-bg-gradient {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-carousel { position: absolute; inset: 0; }
.hero-carousel .carousel-inner, .hero-carousel .carousel-item { height: 100%; }
.hero-slide-img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.45);
}
.navbar-logo { max-height: 48px; width: auto; object-fit: contain; }
.hero-bg-gradient {
  background: var(--gradient-hero);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(249, 115, 22, 0.12) 0%, transparent 40%),
    var(--gradient-hero);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(249,115,22,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249,115,22,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove { to { background-position: 60px 60px; } }
.hero-particles { position: absolute; inset: 0; z-index: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--bg-dark) 100%);
  z-index: 2;
}
.hero-content { position: relative; z-index: 3; }
.hero-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 1.5rem;
}
.hero-headline span { background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-muted); margin-bottom: 2rem;
  max-width: 700px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.trust-badge {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--text-muted);
}
.trust-badge i { color: var(--secondary); font-size: 1.1rem; }

.floating-stats {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  z-index: 3; display: flex; flex-direction: column; gap: 1rem;
}
.floating-stat {
  background: var(--bg-card); backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 1rem 1.25rem; min-width: 140px;
  animation: float 4s ease-in-out infinite;
}
.floating-stat:nth-child(2) { animation-delay: 1s; }
.floating-stat:nth-child(3) { animation-delay: 2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.floating-stat .num { font-size: 1.5rem; font-weight: 800; color: var(--secondary); }
.floating-stat .lbl { font-size: 0.75rem; color: var(--text-muted); }

.hero-3d-building {
  position: absolute; right: 10%; bottom: 15%;
  width: 280px; height: 320px; z-index: 2; opacity: 0.4;
}
.building-svg { width: 100%; height: 100%; }

@media (max-width: 991px) {
  .floating-stats { position: relative; right: auto; top: auto; transform: none;
    flex-direction: row; flex-wrap: wrap; margin-top: 2rem; }
  .hero-3d-building { display: none; }
}

/* Counters */
.stat-counter { text-align: center; padding: 1.5rem; }
.stat-counter .counter-num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; color: var(--secondary);
  font-family: var(--font-accent);
}
.stat-counter .counter-label { color: var(--text-muted); font-size: 0.9rem; }

/* Service Cards */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem; height: 100%;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-accent); transform: scaleX(0);
  transition: transform 0.4s ease; transform-origin: left;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: var(--shadow-glow);
}
.service-icon {
  width: 60px; height: 60px;
  background: var(--gradient-card);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--secondary); margin-bottom: 1.25rem;
}
.service-card h4 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.software-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; }
.software-tag {
  font-size: 0.7rem; padding: 0.2rem 0.5rem;
  background: rgba(37, 99, 235, 0.15); color: var(--accent-blue);
  border-radius: 4px; font-weight: 500;
}

/* Software Showcase */
.software-item {
  text-align: center; padding: 1.5rem;
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--radius); transition: var(--transition);
}
.software-item:hover { border-color: var(--secondary); transform: scale(1.05); }
.software-item i { font-size: 2.5rem; color: var(--secondary); display: block; margin-bottom: 0.75rem; }
.skill-bar-wrap { margin-bottom: 1.25rem; }
.skill-bar-wrap .skill-label { display: flex; justify-content: space-between; margin-bottom: 0.35rem; font-size: 0.9rem; }
.skill-bar {
  height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden;
}
.skill-bar-fill {
  height: 100%; background: var(--gradient-accent);
  border-radius: 4px; width: 0; transition: width 1.5s ease;
}

/* Project Cards */
.project-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter-btn {
  background: transparent; border: 1px solid var(--glass-border);
  color: var(--text-muted); padding: 0.5rem 1.25rem;
  border-radius: 50px; cursor: pointer; transition: var(--transition); font-size: 0.9rem;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--secondary); border-color: var(--secondary); color: #fff;
}
.project-card {
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition); height: 100%;
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-glow); }
.project-card img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.5s; }
.project-card:hover img { transform: scale(1.05); }
.project-card-body { padding: 1.5rem; }
.project-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.project-meta span {
  font-size: 0.75rem; padding: 0.25rem 0.6rem;
  background: rgba(37, 99, 235, 0.15); border-radius: 4px; color: var(--accent-blue);
}
.status-completed { background: rgba(34, 197, 94, 0.15) !important; color: #22C55E !important; }
.status-progress { background: rgba(249, 115, 22, 0.15) !important; color: var(--secondary) !important; }

/* Process Timeline */
.process-timeline {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem;
  position: relative;
}
@media (max-width: 991px) { .process-timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .process-timeline { grid-template-columns: 1fr; } }
.process-step {
  text-align: center; padding: 1.5rem 1rem;
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--radius); position: relative;
  cursor: pointer; transition: var(--transition);
}
.process-step:hover, .process-step.active {
  border-color: var(--secondary);
  box-shadow: var(--shadow-glow);
}
.process-step .step-num {
  width: 40px; height: 40px; background: var(--secondary);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin: 0 auto 1rem;
}
.process-step h5 { font-size: 0.9rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

/* Testimonials */
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 2rem; height: 100%;
}
.testimonial-card .stars { color: #FBBF24; margin-bottom: 1rem; }
.testimonial-card .review { font-style: italic; color: var(--text-muted); margin-bottom: 1.5rem; }
.client-info strong { display: block; }
.client-info span { font-size: 0.85rem; color: var(--text-muted); }
.client-logos { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: center; opacity: 0.5; }
.client-logos span { font-family: var(--font-accent); font-weight: 700; font-size: 1.1rem; }

/* Blog Cards */
.blog-card {
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); overflow: hidden; height: 100%;
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-glow); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 1.5rem; }
.blog-category {
  font-size: 0.75rem; color: var(--secondary); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
}

/* Highlights */
.highlight-box {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem; background: var(--bg-card);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  margin-bottom: 1rem; transition: var(--transition);
}
.highlight-box:hover { border-color: var(--secondary); }
.highlight-box i { font-size: 1.5rem; color: var(--secondary); flex-shrink: 0; }

/* Page Hero (inner pages) */
.page-hero {
  padding: 160px 0 80px;
  background: var(--gradient-hero);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(249,115,22,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249,115,22,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb-nav { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumb-nav a { color: var(--secondary); text-decoration: none; }

/* Contact */
.contact-form .form-control, .contact-form .form-select {
  background: var(--bg-card); border: 1px solid var(--glass-border);
  color: var(--text-primary); border-radius: 10px; padding: 0.75rem 1rem;
}
.contact-form .form-control:focus {
  background: var(--bg-card); border-color: var(--secondary);
  color: var(--text-primary); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}
.contact-form .form-control::placeholder { color: var(--text-muted); }
.contact-info-card {
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 2rem;
}
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-info-item i {
  width: 48px; height: 48px; background: rgba(249, 115, 22, 0.15);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: var(--secondary); font-size: 1.25rem; flex-shrink: 0;
}
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--glass-border); }

/* FAQ */
.faq-item {
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--radius); margin-bottom: 0.75rem; overflow: hidden;
}
.faq-question {
  width: 100%; text-align: left; background: none; border: none;
  color: var(--text-primary); padding: 1.25rem 1.5rem;
  font-weight: 600; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
}
.faq-answer { padding: 0 1.5rem 1.25rem; color: var(--text-muted); display: none; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question i { transform: rotate(180deg); }

/* Team */
.team-card {
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); overflow: hidden; text-align: center;
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-glow); }
.team-card img { width: 100%; height: 280px; object-fit: cover; }
.team-card-body { padding: 1.5rem; }

/* Footer */
.site-footer {
  background: #010409; border-top: 1px solid var(--glass-border);
  position: relative; overflow: hidden;
}
.footer-brand { font-family: var(--font-accent); font-weight: 800; font-size: 1.5rem; color: var(--text-primary); text-decoration: none; }
.footer-desc { color: var(--text-muted); font-size: 0.9rem; }
.footer-title { font-weight: 600; margin-bottom: 1.25rem; font-size: 0.95rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--secondary); }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.75rem; display: flex; gap: 0.75rem; }
.footer-contact a { color: var(--text-muted); text-decoration: none; }
.footer-contact a:hover { color: var(--secondary); }
.social-links a {
  display: inline-flex; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--glass-border); border-radius: 10px;
  color: var(--text-muted); margin-right: 0.5rem; transition: var(--transition);
}
.social-links a:hover { background: var(--secondary); border-color: var(--secondary); color: #fff; }

/* WhatsApp */
.whatsapp-float {
  position: fixed; bottom: 100px; right: 24px; z-index: 9990;
  width: 56px; height: 56px; background: #25D366; color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition); text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

/* Chatbot */
.chatbot-widget { position: fixed; bottom: 24px; right: 24px; z-index: 9991; }
.chatbot-toggle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--secondary); border: none; color: #fff;
  font-size: 1.5rem; cursor: pointer; box-shadow: var(--shadow-glow);
  transition: var(--transition);
}
.chatbot-toggle:hover { transform: scale(1.1); }
.chatbot-panel {
  position: absolute; bottom: 70px; right: 0;
  width: 340px; max-height: 450px;
  background: var(--primary); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: none; flex-direction: column;
  box-shadow: var(--shadow-card);
}
.chatbot-panel.open { display: flex; }
.chatbot-header {
  padding: 1rem; background: var(--secondary); color: #fff;
  display: flex; justify-content: space-between; align-items: center; font-weight: 600;
}
.chatbot-close { background: none; border: none; color: #fff; font-size: 1.25rem; cursor: pointer; }
.chatbot-messages { flex: 1; overflow-y: auto; padding: 1rem; max-height: 300px; }
.chat-msg { padding: 0.75rem 1rem; border-radius: 12px; margin-bottom: 0.75rem; font-size: 0.9rem; max-width: 90%; }
.chat-msg.bot { background: rgba(255,255,255,0.08); }
.chat-msg.user { background: var(--secondary); margin-left: auto; }
.chatbot-input { display: flex; padding: 0.75rem; gap: 0.5rem; border-top: 1px solid var(--glass-border); }
.chatbot-input input {
  flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
  border-radius: 8px; padding: 0.5rem 0.75rem; color: var(--text-primary);
}
.chatbot-input button {
  background: var(--secondary); border: none; color: #fff;
  width: 40px; border-radius: 8px; cursor: pointer;
}

/* Admin */
.admin-sidebar {
  min-height: 100vh; background: var(--primary);
  border-right: 1px solid var(--glass-border); padding: 1.5rem 0;
}
.admin-sidebar .nav-link {
  color: var(--text-muted); padding: 0.75rem 1.5rem;
  border-left: 3px solid transparent;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
  color: var(--secondary); background: rgba(249, 115, 22, 0.08);
  border-left-color: var(--secondary);
}
.stat-card-admin {
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 1.5rem;
}
.stat-card-admin .stat-num { font-size: 2rem; font-weight: 800; color: var(--secondary); }

/* Utilities */
.bg-gradient-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(15, 23, 42, 0.5) 50%, var(--bg-dark) 100%);
}
.parallax-bg {
  background-attachment: fixed;
  background-size: cover; background-position: center;
}
.main-content { min-height: 50vh; }

/* BIM Viewer placeholder */
.bim-viewer-box {
  aspect-ratio: 16/9; background: var(--bg-card);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.bim-viewer-box::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 29px,
    rgba(249,115,22,0.05) 29px, rgba(249,115,22,0.05) 30px
  ),
  repeating-linear-gradient(
    90deg, transparent, transparent 29px,
    rgba(249,115,22,0.05) 29px, rgba(249,115,22,0.05) 30px
  );
}
