/* Premium "Tech Luxury" Overrides */
:root {
  --bg-dark: #07090f;
  --bg-card: rgba(20, 24, 39, 0.6);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --gold-primary: #d4af37; /* Metallic gold */
  --gold-glow: rgba(212, 175, 55, 0.25);
  --blue-accent: #2563eb;
}

body {
  background-color: var(--bg-dark) !important;
  color: var(--text-main) !important;
}

/* Base Texture to give a sleek tech feel */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 10;
}

/* Typography & Headers */
h1, h2, h3, h4, h5, h6, .section-title, .hero-title, .about-card h3, .project-title, .expertise-card h3 {
  color: #ffffff !important;
}
.section-subtitle, .hero-description, .about-description, .project-description, .plans-desc, .expertise-details p {
  color: var(--text-muted) !important;
}

.highlight, .n1-accent {
  background: linear-gradient(45deg, #fceabb, #f8b500) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Sections Backgrounds Make Deep Dark */
.hero, .about, .strategy, .why-choose, .services, .projects, .plans, .expertise, .contact {
  background: var(--bg-dark) !important;
}

.hero {
  background: radial-gradient(circle at center top, #111524 0%, var(--bg-dark) 100%) !important;
}

.about::before {
  display: none !important; 
}

/* Cards & Glassmorphism */
.about-card, .skill-category, .advantage-card, .project-card, .plans-card, .expertise-card, .timeline-content, .result-item, .principle-card {
  background: var(--bg-card) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(10px) !important;
  border-radius: 16px !important;
}

.about-card:hover, .skill-category:hover, .project-card:hover, .plans-card:hover, .expertise-card:hover, .timeline-content:hover {
  border-color: rgba(212, 175, 55, 0.2) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px var(--gold-glow) !important;
  transform: translateY(-4px) !important;
}

/* Buttons completely revamped */
.btn-primary, .plans-btn-primary, #submit-btn {
  background: linear-gradient(135deg, #d4af37, #b8962e) !important;
  color: #000 !important;
  box-shadow: 0 8px 25px var(--gold-glow) !important;
  border: none !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-radius: 8px !important;
  padding: 16px 32px !important;
}

.btn-primary:hover, .plans-btn-primary:hover, #submit-btn:hover {
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4) !important;
  transform: translateY(-2px) scale(1.02) !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 16px 32px !important;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--gold-primary) !important;
  color: var(--gold-primary) !important;
  transform: translateY(-2px) !important;
}

/* Navbar */
.navbar {
  background: rgba(7, 9, 15, 0.8) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.navbar.scrolled {
  background: rgba(7, 9, 15, 0.95) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8) !important;
}

.nav-link {
  color: var(--text-main) !important;
}

.nav-link.active, .nav-link:hover {
  color: var(--gold-primary) !important;
  background: rgba(212, 175, 55, 0.05) !important;
  box-shadow: none !important;
}

.nav-link::after {
  background: var(--gold-primary) !important;
}

/* Icons & Decorations */
.card-icon, .category-icon, .advantage-icon, .expertise-icon, .plans-icon, .result-icon, .principle-icon, .marker-icon {
  background: rgba(212, 175, 55, 0.08) !important;
  border: 1px solid rgba(212, 175, 55, 0.2) !important;
}

.card-icon i, .category-icon i, .advantage-icon i, .expertise-icon i, .plans-icon i, .result-icon i, .principle-icon i, .marker-icon i {
  color: var(--gold-primary) !important;
}

.stat-number, .timeline-content h4, .principle-card h4, .result-number {
  color: var(--gold-primary) !important;
}

/* Specific elements adjustments */
.timeline::before {
  background: linear-gradient(180deg, var(--gold-primary), transparent) !important;
}

.marker-number {
  background: var(--gold-primary) !important;
  color: #000 !important;
}

.section-title::after {
  background: var(--gold-primary) !important;
}

.hero-badge {
  background: rgba(212, 175, 55, 0.1) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  color: var(--gold-primary) !important;
}

.hero-badge i {
  color: var(--gold-primary) !important;
}

.footer {
  background: #040508 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.footer-description, .footer-links a {
  color: var(--text-muted) !important;
}

.footer-links a:hover {
  color: var(--gold-primary) !important;
}

/* Input Fields */
.form-group input, .form-group textarea {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-radius: 8px !important;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--gold-primary) !important;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2) !important;
}

.form-group label {
  color: var(--text-muted) !important;
}

.contact-item {
  color: var(--text-main) !important;
}
.contact-item i {
  color: var(--gold-primary) !important;
}

/* Tech Tags */
.tech-tag {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: #fff !important;
}

/* Social Links */
.social-link {
  background: rgba(255, 255, 255, 0.05) !important;
}
.social-link:hover {
  background: var(--gold-primary) !important;
  color: #000 !important;
}
.social-link:hover i {
  color: #000 !important;
}

/* ============================================================
   UX OVERHAUL — NEW PREMIUM COMPONENTS
   ============================================================ */

/* 1. Scroll Progress Bar
   ---------------------------------------------------------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-primary), #f8b500, #ffe066);
  z-index: 10000;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
  pointer-events: none;
}

/* 2. Floating Action Button Group
   ---------------------------------------------------------- */
.fab-group {
  position: fixed;
  bottom: 32px;
  right: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 1500;
}

.fab-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  text-decoration: none;
  border: none;
  outline: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.3s ease;
  position: relative;
}

/* WhatsApp FAB */
.fab-whatsapp {
  background: #25d366;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.fab-whatsapp i {
  color: #fff !important;
  font-size: 1.5rem;
  position: relative;
  z-index: 1;
}

.fab-whatsapp:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

/* Pulse ring on WhatsApp button */
.fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  animation: fabPulse 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}

@keyframes fabPulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(1.7); opacity: 0;   }
  100% { transform: scale(1.7); opacity: 0;   }
}

/* Scroll-to-Top FAB */
#scroll-top-btn {
  background: linear-gradient(135deg, var(--gold-primary), #b8962e);
  color: #000 !important;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
  opacity: 0;
  transform: translateY(20px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.3s ease;
}

#scroll-top-btn i {
  color: #000 !important;
}

#scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#scroll-top-btn:hover {
  transform: translateY(-4px) scale(1.1) !important;
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5) !important;
}

/* 3. Project Card Hover Overlay
   ---------------------------------------------------------- */
.project-image {
  position: relative;
  overflow: hidden;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.92), rgba(184, 150, 46, 0.88));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: inherit;
  z-index: 2;
}

.project-card:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

.overlay-demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff !important;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
}

.overlay-demo-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.05);
}

.overlay-demo-btn i {
  color: #fff !important;
}

/* 4. Floating Label Form Fields
   ---------------------------------------------------------- */
.form-float {
  position: relative;
}

.form-float input,
.form-float textarea {
  padding-top: 22px !important;
  padding-bottom: 8px !important;
}

.form-float label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--text-muted) !important;
  pointer-events: none;
  transition: top 0.22s ease, font-size 0.22s ease, color 0.22s ease, transform 0.22s ease;
  background: transparent;
  padding: 0 4px;
  line-height: 1;
}

/* Textarea label starts near top */
.form-float textarea ~ label {
  top: 26px;
  transform: none;
}

/* Floated state — input:focus or placeholder not shown (has value) */
.form-float input:focus ~ label,
.form-float input:not(:placeholder-shown) ~ label,
.form-float textarea:focus ~ label,
.form-float textarea:not(:placeholder-shown) ~ label {
  top: 8px;
  font-size: 0.72rem;
  color: var(--gold-primary) !important;
  transform: none;
  letter-spacing: 0.3px;
  font-weight: 600;
}

/* Keep focus border gold */
.form-float input:focus,
.form-float textarea:focus {
  border-color: var(--gold-primary) !important;
}

/* 5. Character Counter
   ---------------------------------------------------------- */
.char-count {
  display: block;
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 5px;
  transition: color 0.2s ease;
  letter-spacing: 0.3px;
}

.char-count.warning {
  color: var(--gold-primary) !important;
  font-weight: 600;
}

.char-count.danger {
  color: #ef4444 !important;
  font-weight: 700;
}

/* 6. Staggered Card Animations
   ---------------------------------------------------------- */
.stagger-1 { transition-delay: 0ms !important; }
.stagger-2 { transition-delay: 100ms !important; }
.stagger-3 { transition-delay: 200ms !important; }
.stagger-4 { transition-delay: 300ms !important; }
.stagger-5 { transition-delay: 400ms !important; }
.stagger-6 { transition-delay: 500ms !important; }
.stagger-7 { transition-delay: 600ms !important; }
.stagger-8 { transition-delay: 700ms !important; }
.stagger-9 { transition-delay: 800ms !important; }

/* 7. Hamburger → X Animation
   ---------------------------------------------------------- */
.hamburger {
  transition: transform 0.3s ease;
}

.bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.25s ease,
              width 0.3s ease;
  transform-origin: center;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* 8. Mobile responsiveness for FABs
   ---------------------------------------------------------- */
@media (max-width: 480px) {
  .fab-group {
    bottom: 20px;
    right: 16px;
    gap: 10px;
  }

  .fab-btn {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }
}

/* 9. Scroll-spy active state using gold instead of blue
   ---------------------------------------------------------- */
.nav-link.active {
  color: var(--gold-primary) !important;
  background: rgba(212, 175, 55, 0.08) !important;
}

.nav-link.active::after {
  background: var(--gold-primary) !important;
  width: 80% !important;
}
