/* =============================================
   STAR ADVERTISING - PREMIUM DARK THEME v2.0
   Modern Design System with Micro-Animations
   ============================================= */

:root {
  --primary-gradient: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
  --secondary-gradient: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  --dark-bg: #030712;
  --dark-surface: #0f172a;
  --card-bg: rgba(15, 23, 42, 0.8);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-light: #ffffff;
  --accent-cyan: #22d3ee;
  --accent-gold: #fbbf24;
}

/* Smooth scroll for the entire page */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--dark-bg);
  color: #e2e8f0;
  overflow-x: hidden;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Bootstrap Override: Force readable paragraph text everywhere */
p, span, .text-muted, .text-secondary, li, td, th, label, .small, small, .lead {
  color: #cbd5e1 !important;
}

a {
  transition: all 0.3s ease;
}

.text-cyan { color: var(--accent-cyan) !important; }
.text-white { color: #ffffff !important; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-light) !important;
  letter-spacing: -0.02em;
}

/* ============ Gradient Text Utility ============ */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  color: inherit !important;
}

.text-gradient-cyan {
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  color: inherit !important;
}

/* ============ Animated Background Mesh ============ */
@keyframes meshFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============ Premium Glassmorphism Navbar ============ */
.navbar-custom {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s ease;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-custom .nav-link {
  color: #e2e8f0 !important;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 0.6rem 1.2rem;
  position: relative;
}

.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
  width: 60%;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--accent-cyan) !important;
}

/* ============ Dropdown Premium Styling ============ */
.dropdown-menu-custom {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7) !important;
  border-radius: 16px !important;
  padding: 0.75rem 0 !important;
  background-color: rgba(15, 23, 42, 0.98) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  animation: slideUp 0.25s ease forwards;
}

.dropdown-menu-custom .dropdown-item {
  color: #e2e8f0 !important;
  font-weight: 500;
  padding: 0.65rem 1.5rem !important;
  transition: all 0.25s ease;
  border-radius: 8px;
  margin: 0 0.5rem;
}

.dropdown-menu-custom .dropdown-item:hover {
  background: var(--primary-gradient) !important;
  color: #030712 !important;
  transform: translateX(4px);
}

/* ============ Hero Section ============ */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-bg);
  padding: 160px 0 100px 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: #c084fc;
  filter: blur(180px);
  opacity: 0.3;
  pointer-events: none;
  top: 5%;
  left: 10%;
  animation: meshFloat 8s ease-in-out infinite;
}

.hero-glow-secondary {
  position: absolute;
  width: 350px;
  height: 350px;
  background: #38bdf8;
  filter: blur(160px);
  opacity: 0.25;
  pointer-events: none;
  bottom: 10%;
  right: 10%;
  animation: meshFloat 10s ease-in-out infinite reverse;
}

/* ============ Modern Glass Cards ============ */
.modern-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.modern-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.12) 0%, rgba(244, 114, 182, 0.04) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
  border-radius: 24px;
}

.modern-card::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 24px;
  background: var(--primary-gradient);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s ease;
}

.modern-card:hover {
  transform: translateY(-10px);
  border-color: rgba(192, 132, 252, 0.4);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(192, 132, 252, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.modern-card:hover::before {
  opacity: 1;
}

.modern-card:hover::after {
  opacity: 0.15;
}

.modern-card > * {
  position: relative;
  z-index: 1;
}

/* ============ Animated Card Icons ============ */
.card-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-card:hover .card-icon {
  background: var(--primary-gradient);
  color: #fff !important;
  border-color: transparent;
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 25px rgba(192, 132, 252, 0.5);
}

/* ============ Premium Buttons ============ */
.btn-premium {
  background: var(--primary-gradient);
  background-size: 200% 100%;
  color: #030712 !important;
  font-weight: 700;
  border: none;
  padding: 0.9rem 2.4rem;
  border-radius: 50px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(192, 132, 252, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.btn-premium:hover::before {
  left: 100%;
}

.btn-premium:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(192, 132, 252, 0.55);
}

.btn-premium-outline {
  background: transparent;
  color: #ffffff !important;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 0.9rem 2.4rem;
  border-radius: 50px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn-premium-outline:hover {
  border-color: rgba(192, 132, 252, 0.6);
  background: rgba(192, 132, 252, 0.1);
  color: #c084fc !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(192, 132, 252, 0.2);
}

/* ============ Form Styling ============ */
.form-control-dark {
  background-color: rgba(15, 23, 42, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  transition: all 0.3s ease;
}

.form-control-dark:focus {
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15), 0 0 15px rgba(34, 211, 238, 0.2) !important;
  background-color: rgba(30, 41, 59, 0.95) !important;
}

.form-control-dark::placeholder { color: #64748b !important; }

.form-label {
  color: #f1f5f9 !important;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ============ Section Dividers ============ */
.section-divider {
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
  margin: 0 auto 2rem;
}

/* ============ Stats Counter Section ============ */
.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
}

.stat-card::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}

.stat-card:last-child::after { display: none; }

/* ============ Stepper/Timeline styling ============ */
.step-item {
  position: relative;
  padding-left: 3.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 2.5rem;
  transition: all 0.3s ease;
}

.step-item:last-child { border-left: 2px solid transparent; }

.step-item:hover { padding-left: 4rem; }

.step-badge {
  position: absolute;
  left: -20px;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--dark-bg);
  border: 2px solid rgba(34, 211, 238, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.95rem;
  color: var(--accent-cyan) !important;
  transition: all 0.4s ease;
}

.step-item:hover .step-badge {
  background: var(--accent-cyan);
  color: #030712 !important;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.6);
  transform: scale(1.15);
}

/* ============ Floating Action Widgets ============ */
.floating-widgets {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  z-index: 9999;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 1.4rem;
  box-shadow: 0 6px 25px rgba(0,0,0,0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: fadeIn 0.5s ease forwards;
}

.floating-btn:hover {
  transform: scale(1.15) translateY(-3px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.4);
}

.btn-whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }
.btn-call { background: linear-gradient(135deg, #0ea5e9, #0284c7); }

/* ============ Portfolio Cards ============ */
.portfolio-card {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  height: 380px;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 7, 18, 0.95) 0%, rgba(3, 7, 18, 0.3) 55%, rgba(3, 7, 18, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.2rem;
  transition: all 0.4s ease;
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.1);
}

.portfolio-card:hover .portfolio-overlay {
  background: linear-gradient(to top, rgba(3, 7, 18, 0.98) 0%, rgba(3, 7, 18, 0.5) 60%, rgba(3, 7, 18, 0.1) 100%);
}

/* ============ Footer ============ */
.footer-section {
  background: #020617;
  border-top: 1px solid var(--border-color);
  padding: 90px 0 40px 0;
  position: relative;
}

.footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 1px;
  background: var(--primary-gradient);
}

.footer-link {
  color: #94a3b8 !important;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  margin-bottom: 0.7rem;
  font-weight: 500;
  position: relative;
}

.footer-link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-cyan) !important;
  transform: translateX(6px);
}

.footer-link:hover::before { width: 100%; }

/* ============ Accordion FAQ Styling ============ */
.accordion-button {
  background-color: transparent !important;
  color: #ffffff !important;
  box-shadow: none !important;
  font-weight: 600;
}

.accordion-button::after {
  filter: invert(1);
}

.accordion-button:not(.collapsed) {
  color: var(--accent-cyan) !important;
}

/* ============ Responsive Adjustments ============ */
@media (max-width: 991.98px) {
  .hero-section { padding: 120px 0 60px 0; min-height: auto; }
  h1.display-3, h1.display-4 { font-size: 2.2rem; }
  .modern-card { padding: 1.8rem; border-radius: 18px; }
  .stat-card::after { display: none; }
}

@media (max-width: 575.98px) {
  .btn-premium, .btn-premium-outline { padding: 0.75rem 1.6rem; font-size: 0.9rem; }
  .floating-widgets { bottom: 1rem; right: 1rem; }
  .floating-btn { width: 48px; height: 48px; font-size: 1.2rem; }
}
