/* Pixley Media - Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #FF6B00;
  --primary-dark: #e05e00;
  --primary-light: #ff8c3a;
  --black: #0a0a0a;
  --dark: #111111;
  --dark2: #1a1a1a;
  --gray: #2a2a2a;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --text-muted: #888888;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* Typography */
.font-display { font-family: 'Playfair Display', serif; }

/* Orange Gradient Text */
.text-gradient {
  background: linear-gradient(135deg, #FF6B00, #ff8c3a, #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphism */
.glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
}

.glass-dark {
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ── Navbar ── */
#navbar {
  transition: all 0.4s ease;
  z-index: 9000 !important; /* always above hero slides */
}
#navbar.scrolled {
  background: rgba(10,10,10,0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(255,107,0,0.1);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #FF6B00, #ff8c3a);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #ff8c3a, #FF6B00);
  transition: left 0.3s ease;
}
.btn-primary:hover::before { left: 0; }
.btn-primary span { position: relative; z-index: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,107,0,0.4); }

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255,107,0,0.3);
}

/* Hero */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #111111 50%, #1a0a00 100%);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,107,0,0.15) 0%, transparent 70%);
  animation: pulse-glow 4s ease-in-out infinite;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,107,0,0.08) 0%, transparent 70%);
  animation: pulse-glow 6s ease-in-out infinite reverse;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* Section Styles */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,107,0,0.1);
  border: 1px solid rgba(255,107,0,0.3);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Service Cards */
.service-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,107,0,0.05), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,107,0,0.3);
  box-shadow: 0 20px 60px rgba(255,107,0,0.15);
}
.service-card:hover::before { opacity: 1; }

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover img { transform: scale(1.05); }

/* Portfolio */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(255,107,0,0.3) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

/* Counter */
.counter-card {
  text-align: center;
  padding: 40px 20px;
  border-radius: 20px;
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
}
.counter-card:hover {
  border-color: rgba(255,107,0,0.3);
  transform: translateY(-4px);
}
.counter-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

/* Testimonials */
.testimonial-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  border-color: rgba(255,107,0,0.2);
  box-shadow: 0 10px 40px rgba(255,107,0,0.1);
}

/* Blog Cards */
.blog-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,107,0,0.2);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover img { transform: scale(1.05); }

/* FAQ */
.faq-item {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
  transition: border-color 0.3s ease;
}
.faq-item.active { border-color: rgba(255,107,0,0.4); }
.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--dark2);
  transition: background 0.3s ease;
}
.faq-question:hover { background: rgba(255,107,0,0.05); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: rgba(255,107,0,0.03);
  padding: 0 24px;
}
.faq-answer.open {
  max-height: 300px;
  padding: 20px 24px;
}
.faq-icon {
  transition: transform 0.3s ease;
  color: var(--primary);
  font-size: 20px;
  font-weight: 300;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* Process Steps */
.process-step {
  position: relative;
  text-align: center;
}
.process-number {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37,211,102,0.4);
  transition: all 0.3s ease;
  animation: float-bounce 3s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(37,211,102,0.5);
}
@keyframes float-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Footer */
footer {
  background: #050505;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-link {
  color: var(--text-muted);
  transition: color 0.3s ease;
  text-decoration: none;
  font-size: 14px;
}
.footer-link:hover { color: var(--primary); }

/* Forms */
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 18px;
  color: white;
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none;
}
.form-input:focus {
  border-color: var(--primary);
  background: rgba(255,107,0,0.05);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.1);
}
.form-input::placeholder { color: var(--text-muted); }

/* Mobile Menu */
#mobile-menu {
  transition: all 0.4s ease;
  max-height: 0;
  overflow: hidden;
}
#mobile-menu.open { max-height: 500px; }

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}
#lightbox.active { display: flex; }

/* Parallax */
.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-fadeInUp { animation: fadeInUp 0.8s ease forwards; }
.animate-fadeInLeft { animation: fadeInLeft 0.8s ease forwards; }
.animate-fadeInRight { animation: fadeInRight 0.8s ease forwards; }

/* Swiper custom */
.swiper-pagination-bullet { background: var(--text-muted) !important; }
.swiper-pagination-bullet-active { background: var(--primary) !important; }

/* Orange line divider */
.orange-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
}

/* Team card */
.team-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
}
.team-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,107,0,0.3);
  box-shadow: 0 20px 50px rgba(255,107,0,0.1);
}
.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* Pricing */
.pricing-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 40px 32px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(255,107,0,0.1), var(--dark2));
}
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(255,107,0,0.15);
}
.pricing-badge {
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--primary);
  color: white;
  padding: 6px 40px;
  font-size: 12px;
  font-weight: 700;
  transform: rotate(45deg);
  letter-spacing: 1px;
}

/* Masonry */
.masonry-grid {
  columns: 3;
  column-gap: 16px;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}
.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.masonry-item:hover img { transform: scale(1.05); }

@media (max-width: 768px) {
  .masonry-grid { columns: 2; }
  .counter-number { font-size: 2.5rem; }
}
@media (max-width: 480px) {
  .masonry-grid { columns: 1; }
}

/* Page Hero */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #0a0a0a, #1a0a00);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,107,0,0.12) 0%, transparent 70%);
}

/* Filter Buttons */
.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Social Icons */
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
  text-decoration: none;
}
.social-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* Careers */
.job-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
}
.job-card:hover {
  border-color: rgba(255,107,0,0.3);
  transform: translateX(6px);
}

/* Loading overlay */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
  /* CSS fallback: auto-hide after 3s if JS fails */
  animation: loader-auto-hide 0s 3s forwards;
}
@keyframes loader-auto-hide {
  to { opacity: 0; pointer-events: none; visibility: hidden; }
}
.loader-logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ===== SCROLL PROGRESS BAR ===== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF6B00, #ffb347);
  z-index: 99999;
  transition: width 0.1s linear;
  width: 0%;
}

/* ===== BACK TO TOP ===== */
#back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 9998;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #FF6B00, #ff8c3a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 6px 20px rgba(255,107,0,0.4);
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255,107,0,0.5);
}

/* ===== FLOATING CALL BUTTON ===== */
.call-float {
  position: fixed;
  bottom: 100px;
  left: 30px;
  z-index: 9999;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(76,175,80,0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}
.call-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(76,175,80,0.5);
}
.call-float i { color: white; font-size: 20px; }

/* ===== SEARCH POPUP ===== */
#search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 99998;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#search-overlay.active {
  opacity: 1;
  pointer-events: all;
}
#search-overlay input {
  width: 100%;
  max-width: 700px;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 2rem;
  padding: 16px 0;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s;
}
#search-overlay input:focus { border-bottom-color: #FF6B00; }
#search-overlay input::placeholder { color: rgba(255,255,255,0.3); }

/* ===== COOKIE NOTICE ===== */
#cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99997;
  background: rgba(17,17,17,0.98);
  border-top: 1px solid rgba(255,107,0,0.2);
  padding: 16px 24px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  backdrop-filter: blur(20px);
}
#cookie-notice.show { transform: translateY(0); }

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(135deg, rgba(255,107,0,0.1), rgba(255,107,0,0.05));
  border: 1px solid rgba(255,107,0,0.2);
  border-radius: 24px;
  padding: 48px;
}
.newsletter-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 14px 24px;
  color: white;
  font-size: 15px;
  outline: none;
  transition: all 0.3s;
  flex: 1;
}
.newsletter-input:focus {
  border-color: #FF6B00;
  background: rgba(255,107,0,0.05);
}
.newsletter-input::placeholder { color: #666; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
}
.breadcrumb a { color: #888; text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: #FF6B00; }
.breadcrumb .current { color: #FF6B00; }
.breadcrumb .sep { color: #444; font-size: 10px; }

/* ===== LOGOUT CONFIRM MODAL ===== */
#logout-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}
#logout-modal.active { display: flex; }

/* ===== CHART CONTAINER ===== */
.chart-container {
  position: relative;
  height: 220px;
}

/* ===== CSRF hidden ===== */
.csrf-field { display: none; }

/* ===== SEARCH RESULTS ===== */
.search-result-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all 0.2s;
}
.search-result-item:hover { padding-left: 8px; }
.search-result-item:last-child { border-bottom: none; }

/* ===== THANK YOU PAGE ===== */
.thankyou-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(255,107,0,0.2), rgba(255,107,0,0.05));
  border: 2px solid rgba(255,107,0,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  animation: pulse-ring 2s ease-in-out infinite;
}
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,0,0.3); }
  50% { box-shadow: 0 0 0 20px rgba(255,107,0,0); }
}

/* ===== 404 PAGE ===== */
.error-code {
  font-size: 10rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #FF6B00, #ff8c3a, #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (max-width: 768px) { .error-code { font-size: 6rem; } }

/* ===== ADMIN CHART COLORS ===== */
.stat-up { color: #22c55e; }
.stat-down { color: #ef4444; }

/* ===== PROFILE AVATAR ===== */
.admin-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #FF6B00, #ff8c3a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin: 0 auto;
}

/* ===== MEDIA LIBRARY ===== */
.media-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}
.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.media-item:hover img { transform: scale(1.05); }
.media-item .media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.media-item:hover .media-overlay { opacity: 1; }

/* ===== SCHEMA / SEO hidden ===== */
.seo-hidden { display: none; }

/* ===== SITEMAP ===== */
.sitemap-section h3 {
  color: #FF6B00;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,107,0,0.2);
}
.sitemap-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #888;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.2s, padding-left 0.2s;
}
.sitemap-link:hover { color: #FF6B00; padding-left: 6px; }

/* ===== LAZY LOAD ===== */
img[data-src] { opacity: 0; transition: opacity 0.4s ease; }
img.loaded { opacity: 1; }

/* ===== SHRINK NAVBAR ===== */
#navbar.shrunk {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
#navbar.shrunk .nav-logo-text { font-size: 1.1rem; }

/* ===== TRANSITION OVERLAY ===== */
.page-transition {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 999998;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* ===== SUBSCRIBER FORM ===== */
.sub-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #22c55e;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  display: none;
}
.sub-success.show { display: block; }

/* ===== PREVENT AVATAR STRETCH ===== */
img.rounded-full,
img[style*="border-radius:50%"] {
  flex-shrink: 0;
  object-fit: cover;
}

/* Ensure flex containers don't stretch child images */
.flex img {
  max-width: none; /* override any inherited max-width:100% that causes stretch */
}

/* Blog card author row */
.blog-card .flex img,
.testimonial-card .flex img {
  flex-shrink: 0;
}

/* ===== CUSTOM SELECT DROPDOWN ===== */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}
.custom-select-wrapper::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
  font-size: 12px;
  transition: color 0.3s;
}
.custom-select-wrapper:focus-within::after {
  color: #FF6B00;
}
.custom-select {
  width: 100%;
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 12px !important;
  padding: 14px 44px 14px 18px !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-family: 'Inter', sans-serif !important;
  outline: none !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  transition: all 0.3s ease !important;
  line-height: 1.5 !important;
}
.custom-select:focus {
  border-color: #FF6B00 !important;
  background: rgba(255,107,0,0.05) !important;
  box-shadow: 0 0 0 3px rgba(255,107,0,0.1) !important;
}
.custom-select option {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
}
.custom-select option:hover,
.custom-select option:checked {
  background-color: #FF6B00 !important;
  color: #ffffff !important;
}
/* Firefox fix */
@-moz-document url-prefix() {
  .custom-select {
    color: #ffffff !important;
    background-color: #1a1a1a !important;
  }
}
/* Placeholder option color */
.custom-select option[value=""] {
  color: #888 !important;
}
.custom-select.placeholder-shown,
.custom-select:invalid {
  color: #888 !important;
}

/* ═══════════════════════════════════════════
   GLOBAL RESPONSIVE FIXES
═══════════════════════════════════════════ */

/* Prevent horizontal overflow */
html, body { overflow-x: hidden; max-width: 100%; }
img { max-width: 100%; height: auto; }
* { box-sizing: border-box; }

/* ── Navbar logo image ── */
#navbar img { display: block; }

/* ── Hero section mobile ── */
@media (max-width: 768px) {
  .hero-section { min-height: 100svh; }
  .hero-section h1 { font-size: 2.4rem !important; line-height: 1.2; }
  .hero-section .flex.gap-10 { gap: 20px; }
  .hero-section .text-3xl { font-size: 1.6rem; }
}

/* ── Section padding mobile ── */
@media (max-width: 640px) {
  section.py-24 { padding-top: 60px; padding-bottom: 60px; }
  section.py-20 { padding-top: 48px; padding-bottom: 48px; }
  section.py-16 { padding-top: 40px; padding-bottom: 40px; }
  .max-w-7xl { padding-left: 16px; padding-right: 16px; }
  .page-hero { padding: 110px 0 50px; }
}

/* ── Service cards mobile ── */
@media (max-width: 640px) {
  .service-card img { height: 180px; }
  .masonry-grid { columns: 1; }
  .counter-number { font-size: 2rem; }
  .counter-card { padding: 24px 16px; }
  .pricing-card { padding: 28px 20px; }
  .testimonial-card { padding: 24px 18px; }
  .blog-card .flex { flex-direction: column; }
  .blog-card img { height: 180px; width: 100%; }
}

/* ── Portfolio masonry mobile ── */
@media (max-width: 480px) {
  .masonry-grid { columns: 1; }
  .portfolio-item { height: 220px !important; }
}

/* ── Floating buttons — avoid overlap on mobile ── */
@media (max-width: 640px) {
  .whatsapp-float { bottom: 20px; right: 16px; width: 50px; height: 50px; }
  .call-float     { bottom: 80px; left: 16px; width: 46px; height: 46px; }
  #back-to-top    { bottom: 80px; right: 16px; width: 40px; height: 40px; }
  #ai-btn         { bottom: 140px; right: 16px; width: 48px; height: 48px; }
  #ai-popup       { right: 10px; left: 10px; width: auto; bottom: 200px; }
}

/* ── Footer grid mobile ── */
@media (max-width: 640px) {
  footer .grid { grid-template-columns: 1fr; }
  .newsletter-section { padding: 32px 20px; }
}

/* ── Process steps mobile ── */
@media (max-width: 640px) {
  .process-step { margin-bottom: 32px; }
}

/* ── Team cards mobile ── */
@media (max-width: 640px) {
  .team-card img { height: 220px; }
}

/* ── Blog sidebar mobile ── */
@media (max-width: 1024px) {
  .blog-sidebar { display: none; }
}

/* ── Contact form grid mobile ── */
@media (max-width: 640px) {
  #contact-form .grid { grid-template-columns: 1fr; }
}

/* ── Pricing badge overflow fix ── */
.pricing-card { overflow: hidden; }

/* ── FAQ mobile ── */
@media (max-width: 640px) {
  .faq-question { padding: 16px 18px; }
  .faq-question span:first-child { font-size: 14px; padding-right: 12px; }
}

/* ── Page hero mobile ── */
@media (max-width: 640px) {
  .page-hero h1 { font-size: 2.2rem !important; }
  .section-tag { font-size: 11px; }
}

/* ── Navbar mobile fix ── */
@media (max-width: 1023px) {
  #navbar { padding: 10px 16px !important; }
}

/* ── Admin responsive ── */
@media (max-width: 1023px) {
  #admin-main { margin-left: 0 !important; }
}
@media (max-width: 640px) {
  #admin-main > div { padding: 14px !important; }
  .card { padding: 16px; }
}

/* ── Cookie notice mobile ── */
@media (max-width: 640px) {
  #cookie-notice { padding: 14px 16px; }
  #cookie-notice p { font-size: 12px; }
}

/* ── Scroll progress ── */
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg,#FF6B00,#ffb347); z-index: 99999; width: 0%; transition: width 0.1s linear; }

/* ── AI button position stack ── */
.whatsapp-float { bottom: 24px; right: 24px; }
.call-float     { bottom: 24px; left: 24px; }
#back-to-top    { bottom: 90px; right: 24px; }
#ai-btn         { bottom: 148px; right: 24px; }

/* Back to top visible state */
#back-to-top.visible { opacity: 1 !important; transform: translateY(0) !important; }

/* AI button pulse */
@keyframes ai-pulse-ring {
  0%,100% { box-shadow: 0 8px 25px rgba(99,102,241,0.5); }
  50%      { box-shadow: 0 8px 35px rgba(99,102,241,0.8), 0 0 0 8px rgba(99,102,241,0.1); }
}
#ai-btn { animation: ai-pulse-ring 3s ease-in-out infinite; }
#ai-btn:hover { transform: scale(1.12) !important; animation: none; box-shadow: 0 12px 35px rgba(99,102,241,0.7) !important; }

/* Mobile adjustments */
@media (max-width: 480px) {
  .whatsapp-float { bottom: 16px; right: 16px; width: 50px; height: 50px; }
  .call-float     { bottom: 16px; left: 16px; width: 46px; height: 46px; }
  #back-to-top    { bottom: 78px; right: 16px; width: 40px; height: 40px; }
  #ai-btn         { bottom: 130px; right: 16px; width: 48px; height: 48px; }
  #ai-popup       { right: 8px; left: 8px; width: auto; bottom: 190px; }
}

/* ═══ HERO SLIDER RESPONSIVE ═══ */
#hero-slider { min-height: 100svh; }

/* Hero content padding */
#hero-slider .max-w-7xl { padding-top: 100px; padding-bottom: 80px; }

/* Hero title responsive */
#hero-slider h1 {
  font-size: clamp(1.9rem, 5vw, 3.8rem);
  line-height: 1.15;
  word-break: break-word;
}

/* Hero subtitle */
#hero-slider p.text-lg {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
}

/* Stats row */
#hero-slider .flex.gap-8 {
  flex-wrap: wrap;
  gap: 16px;
}

/* Dots */
#hero-dots { bottom: 24px; }

/* Arrows — hide on very small screens */
@media (max-width: 480px) {
  #hero-slider button[onclick*="lbHeroNav"] { display: none !important; }
  #hero-slider h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  #hero-slider .max-w-7xl { padding-top: 90px; padding-bottom: 60px; }
  #hero-slider .flex.gap-4 { flex-direction: column; }
  #hero-slider .flex.gap-4 a { width: 100%; justify-content: center; }
}

@media (max-width: 768px) {
  #hero-slider h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  #hero-slider .mt-12 { margin-top: 28px; }
  #hero-slider .text-3xl { font-size: 1.5rem; }
}

/* Hero slide text — prevent span tags showing */
#hero-slider h1 span.text-gradient {
  background: linear-gradient(135deg, #FF6B00, #ff8c3a, #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
