﻿/* ============================================
   NexSphere Infotech - Premium Main Stylesheet
   Aesthetic: Dark Tech with Electric Accents
   FIXED: Mobile Responsive Issues Resolved
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2234;
  --bg-card-hover: #1f2b42;
  --accent: #00d4ff;
  --accent-secondary: #7c3aed;
  --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  --accent-glow: 0 0 30px rgba(0, 212, 255, 0.3);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e293b;
  --border-light: #334155;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --logo-scale: 1.4; 
}

/* --- Reset & Base Config --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(rgba(10, 15, 25, 0.9), rgba(10, 15, 25, 0.9)), 
              url('https://biddown.com/wp-content/uploads/2023/11/business-background-83br7zd1i2i2o59x.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout --- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 2rem;
}

.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .subtitle {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 1rem;
  position: relative;
  padding: 0.5rem 1.5rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50px;
}

.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 600px; margin: 0 auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #2af5ff 0%, #2196f3 100%);
  color: white !important;
  padding: 10px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 212, 255, 0.05);
}

/* ===========================
   HEADER
=========================== */

.header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:90px;
    z-index:9999;
    background:rgba(16,21,34,.92);
    backdrop-filter:blur(15px);
    border-bottom:1px solid rgba(255,255,255,.08);
    transition:.4s;
}

.header.scrolled{
    height:78px;
    background:#121826;
}

.header.scrolled .nav-menu li a { color: #ffffff; }
.header.scrolled .menu-toggle span { background: #ffffff; }

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

/* Logo container size adjustments */
.logo-transparent-container {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  z-index: 2050 !important;
  width: 240px !important;
}

.logo-transparent-container img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  transform: scale(1.4) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.logo-transparent-container:hover img {
  transform: scale(1.46) !important;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3)) !important;
}

.logo-capsule-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2050 !important;
  text-decoration: none;
  width: 220px !important; 
  height: 60px !important; 
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-capsule-container .logo-capsule-bg {
  position: absolute;
  top: -14px; 
  left: -10px;
  right: -10px;
  bottom: -40px; 
  background-color: #ffffff !important;
  border-bottom-left-radius: 24px !important;  
  border-bottom-right-radius: 24px !important; 
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  z-index: -1; 
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-capsule-container img {
  width: 100% !important;
  object-fit: contain !important;
  z-index: 2;
  transform: scale(var(--logo-scale)) !important; 
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-top: 45px;
}

.logo-capsule-container:hover .logo-capsule-bg {
  bottom: -46px; 
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.35); 
}

.logo-capsule-container:hover img {
  transform: scale(calc(var(--logo-scale) + 0.08)) !important; 
}

.header.scrolled .logo-capsule-container {
  width: 170px !important;
  height: 45px !important;
}

.header.scrolled .logo-capsule-container .logo-capsule-bg {
  top: -8px;
  bottom: -24px;
}

.header.scrolled .logo-capsule-container img {
  transform: scale(1.1) !important;
}

.header.scrolled .logo-capsule-container:hover .logo-capsule-bg {
  bottom: -28px;
}

.header.scrolled .logo-capsule-container:hover img {
  transform: scale(1.18) !important;
}

/* ==========================
DESKTOP NAVIGATION
========================== */

.nav-menu{
    display:flex;
    align-items:center;
    gap:35px;
    margin-left:auto;
    position:static;
    width:auto;
    height:auto;
    background:transparent;
    padding-top: 22px;
    box-shadow:none;
    overflow:visible;
}

.nav-menu li{
    position:relative;
}

.nav-menu li a{
    color:#fff;
    font-size:16px;
    font-weight:600;
    padding:10px 0;
    transition:.3s;
}

.nav-menu li a:hover{
    color:#00d4ff;
}

.menu-toggle{
    display:none;
    width:45px;
    height:45px;
    cursor:pointer;
    justify-content:center;
    align-items:center;
    flex-direction:column;
    gap:5px;
}

.menu-toggle span{
    width:28px;
    height:3px;
    background:#fff;
    border-radius:20px;
    transition: var(--transition);
}

.dropdown { position: relative; }
.dropdown > a { display: flex; align-items: center; }

.dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.4rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: var(--transition);
}

.dropdown-menu{
    position:absolute;
    top:120%;
    left:50%;
    transform:translateX(-50%);
    min-width:290px;
    background:#151d2d;
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;
    padding:10px;
    opacity:0;
    visibility:hidden;
    transition:.25s;
    box-shadow:0 20px 50px rgba(0,0,0,.45);
    z-index:9999;
}

@media(min-width:992px){
.dropdown:hover>.dropdown-menu{
    opacity:1;
    visibility:visible;
    top:100%;
}
}

/* --- Hero Section --- */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 7rem;
  z-index: 1; 
  padding-bottom: 5em;
}

.hero-bg { 
  position: absolute; 
  inset: 0; 
  z-index: 0; 
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content { max-width: 600px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 { margin-bottom: 1.5rem; }
.hero p { font-size: 1.15rem; margin-bottom: 2.5rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-graphic { width: 100%; max-width: 500px; aspect-ratio: 1; position: relative; }

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

.hero-orbit:nth-child(1) { inset: 10%; animation-duration: 25s; }
.hero-orbit:nth-child(2) { inset: 25%; animation-duration: 20s; animation-direction: reverse; }
.hero-orbit:nth-child(3) { inset: 40%; animation-duration: 15s; }

.hero-orbit .node {
  position: absolute;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--accent-glow);
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-center-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--accent-gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--accent-glow);
}

/* --- Stats Bar --- */
.stats-bar {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}

.stat-item p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.services-grid2 {
  display: grid;
  grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card-hover);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--accent-gradient);
  box-shadow: var(--accent-glow);
}

.service-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.service-card p { font-size: 0.95rem; margin-bottom: 1.5rem; }

.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- About Preview --- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-content h2 { margin-bottom: 1.5rem; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(0, 212, 255, 0.03);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.about-feature .check {
  width: 24px;
  height: 24px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* --- Tech Stack Grid --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  text-align: center;
}

.tech-item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--accent-glow);
}

.tech-item .tech-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* --- Portfolio --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.portfolio-thumb {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.1);
}

.portfolio-info { padding: 1.5rem; }

.portfolio-info .tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* --- Testimonials --- */
.testimonials-wrapper { 
  display: grid; 
  grid-template-columns: 400px 1fr; 
  gap: 50px; 
  align-items: center; 
}

.testimonials-header h2 { margin-bottom: 20px; }

.testimonial-slider-container { 
  width: 100%; 
  overflow: hidden; 
}

.review-card { 
  background: var(--bg-card); 
  padding: 30px; 
  border-radius: 15px; 
  border: 1px solid var(--border); 
  height: 100%;
  transition: var(--transition);
}

.review-card:hover { border-color: var(--accent); }

.reviewer-meta { 
  display: flex; 
  align-items: center; 
  gap: 15px; 
  margin-bottom: 15px; 
}

.avatar { 
  width: 45px; 
  height: 45px; 
  background: var(--accent); 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-weight: bold; 
  color: #000;
}

.stars { 
  color: #f59e0b; 
  margin-top: 15px; 
  font-size: 14px; 
  font-weight: 600; 
}

.swiper-button-prev, .swiper-button-next { 
  position: static !important; 
  width: 40px !important; 
  height: 40px !important; 
  background: var(--bg-card) !important; 
  border: 1px solid var(--border); 
  border-radius: 50%; 
  color: var(--accent) !important; 
  margin-top: 20px;
}

.swiper-button-prev::after, .swiper-button-next::after { 
  font-size: 16px !important; 
}

/* --- CTA Box --- */
.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

/* --- Why Choose Section --- */
.why-choose-bg {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.90);
  border-radius: 40px !important;
   padding: 80px 40px !important;
  backdrop-filter: blur(10px);
  max-width:1200px;
margin:40px auto;
}

.why-choose-bg h2, 
.why-choose-bg p {
  color: #ffffff;
}

.why-choose-bg .about-feature {
  background: rgba(255, 255, 255, 0.05);
  border: none;
}

/* --- Factors Section --- */
.factors-section {
  background: rgb(7, 48, 71);
  border-top: 1px solid rgb(255, 255, 255);
  border-bottom: 1px solid rgb(255, 255, 255);
  margin: 40px 0;
  padding: 80px 0;
  border-radius: 40px;
}

.factors-section .subtitle {
  color: var(--accent);
  letter-spacing: 2px;
}

.factors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.factor-card {
  padding: 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.factor-card:last-child { border-right: none; }

.factor-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.factor-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.factor-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  transition: var(--transition);
}

.factor-link:hover { color: #ffffff; }

.cta-bottom { margin-top: 50px; }

/* ============================================
   AI CHATBOT - Self Contained
   ============================================ */

.chat-float-container {
  position: fixed;
  bottom: 10px;
  right: 30px;
  z-index: 9999;
}

.chat-btn {
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
  color: white;
  padding: 14px 24px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
  transition: all 0.3s ease;
}

.chat-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.6);
}

.chat-box {
  width: 360px;
  max-width: 90vw;
  background: #0f172a;
  border-radius: 18px;
  position: absolute;
  bottom: 75px;
  right: 0;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-box.hidden {
  display: none;
  transform: scale(0.9);
  opacity: 0;
}

.chat-header {
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.chat-body {
  padding: 16px;
  height: 350px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #0f172a;
}

/* Message Styles */
.bot-message, .user-message {
  max-width: 85%;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
  animation: messageSlide 0.3s ease;
  word-wrap: break-word;
}

.bot-message {
  background: #1a2234;
  color: #e2e8f0;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-message {
  background: linear-gradient(135deg, #00d4ff, #2196f3);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Quick Reply Buttons */
.quick-reply {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.quick-reply button {
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: #00d4ff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-reply button:hover {
  background: rgba(0, 212, 255, 0.25);
  transform: translateY(-1px);
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 10px 16px;
  background: #1a2234;
  border-radius: 14px;
  align-self: flex-start;
  max-width: 60px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: #94a3b8;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite both;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

@keyframes messageSlide {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Chat Input */
.chat-input-area {
  display: flex;
  padding: 10px 12px;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  gap: 8px;
}

.chat-input-area input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #1a2234;
  color: white;
  outline: none;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.chat-input-area input::placeholder {
  color: #64748b;
}

.chat-input-area input:focus {
  border-color: #00d4ff;
}

.chat-input-area button {
  background: linear-gradient(135deg, #00d4ff, #2196f3);
  border: none;
  color: white;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-input-area button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

/* Scrollbar */
.chat-body::-webkit-scrollbar {
  width: 4px;
}

.chat-body::-webkit-scrollbar-track {
  background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 480px) {
  .chat-box {
    width: 300px;
    bottom: 65px;
    right: -10px;
  }
  
  .chat-body {
    height: 300px;
  }
  
  .chat-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
}
/* --- Utility Floaters --- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
}

.scroll-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  color: var(--text-secondary);
  cursor: pointer;
}

.scroll-top.visible { 
  opacity: 1; 
  visibility: visible; 
}

/* --- Footer --- */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 50px 0;
}

.logo-outer-container {
  position: relative; 
  height: 95px;
  width: 100%;
}

.footer-logo {
  position: absolute; 
  top: -60px;
  left: 0;
  width: 320px !important;
  height: auto !important;
  filter: brightness(0) invert(1) !important;
  margin: 0 !important;
}

.footer-brand p {
  margin-top: 10px !important;
  margin-bottom: 1rem;
  margin-left: 3em;
}

.footer-social {
  margin-left: 3em;
  display: flex;
  gap: 15px; 
  margin-top: 15px;
}

.social-icon {
  width: 45px;
  height: 45px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: #ffffff;
  color: #000000;
  transform: translateY(-5px);
}

.footer-column h4 { 
  font-size: 1rem; 
  margin-bottom: 1.5rem; 
  color: #fff; 
}

.footer-column ul { 
  list-style: none; 
  padding: 0; 
}

.footer-column ul li { 
  margin-bottom: 0.75rem; 
}

.footer-column ul li a { 
  font-size: 0.9rem; 
  color: #ccc; 
  text-decoration: none; 
}

.footer-column ul li a:hover { 
  color: var(--accent); 
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
}

/* ============================================
   MOBILE FIXES (Integrated)
   ============================================ */

/* Fix Floating Image - Hide on Mobile */
@media (max-width: 991px) {
  .floating-image-container {
    display: none !important;
  }
}

/* Fix Dropdown on Mobile */
@media (max-width: 991px) {
  .dropdown-menu {
    display: none !important;
    position: static !important;
    width: 100% !important;
    background: #1b2436 !important;
    padding: 8px !important;
    margin-top: 8px !important;
    border-radius: 10px !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
  }

  .dropdown.open .dropdown-menu {
    display: block !important;
  }

  .dropdown > a::after {
    display: none !important;
  }

  .dropdown > a {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }
  
  .header-cta .btn {
    display: none !important;
  }

  .menu-toggle {
    display: flex !important;
    z-index: 99999 !important;
  }
}

/* Fix Header on Mobile */
@media (max-width: 991px) {
  .header {
    height: 75px !important;
  }

  .header .container {
    padding: 0 15px !important;
  }

  .logo-capsule-container {
    width: 150px !important;
    height: 45px !important;
  }

  .logo-capsule-container img {
    margin-top: 30px !important;
    transform: scale(1.1) !important;
  }

  .logo-capsule-container .logo-capsule-bg {
    top: -8px !important;
    left: -6px !important;
    right: -6px !important;
    bottom: -30px !important;
  }
}

/* Ensure nav-menu works properly on mobile */
@media (max-width: 991px) {
  .nav-menu {
    position: fixed !important;
    top: 75px !important;
    right: -100% !important;
    width: 280px !important;
    height: calc(100vh - 75px) !important;
    background: #111827 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 35px 25px !important;
    gap: 20px !important;
    transition: 0.4s ease !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 9998 !important;
  }

  .nav-menu.active {
    right: 0 !important;
  }

  .nav-menu li {
    width: 100% !important;
  }

  .nav-menu li a {
    display: block !important;
    width: 100% !important;
    padding: 12px 0 !important;
    font-size: 16px !important;
  }
}

/* Fix Hero Section on Mobile */
@media (max-width: 991px) {
  .hero {
    padding-top: 6rem !important;
    min-height: auto !important;
  }

  .hero .container {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 2rem !important;
  }

  .hero-content {
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  .hero h1 {
    font-size: 2rem !important;
  }

  .hero p {
    font-size: 1rem !important;
  }

  .hero-buttons {
    justify-content: center !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .hero-visual {
    display: none !important;
  }

  .hero-badge {
    display: inline-flex !important;
    margin: 0 auto 1.5rem !important;
  }
}

/* Fix Custom Hero Section */
@media (max-width: 991px) {
  .custom-hero-section {
    padding: 6rem 1.5rem 3rem !important;
  }

  .custom-hero-section h2 {
    font-size: 1.8rem !important;
  }

  .custom-hero-section span {
    font-size: 1rem !important;
  }

  .hero-cta {
    flex-direction: column !important;
    align-items: center !important;
  }

  .btn-custom {
    width: 100% !important;
    max-width: 300px !important;
    justify-content: center !important;
  }
}

/* Fix Stats on Mobile */
@media (max-width: 991px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }

  .stat-item h3 {
    font-size: 2rem !important;
  }
}

/* Fix Services Grid on Mobile */
@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: 1fr !important;
  }

  .services-grid2 {
    grid-template-columns: 1fr !important;
  }

  .service-card {
    padding: 1.5rem !important;
  }
}

/* Fix About Preview on Mobile */
@media (max-width: 991px) {
  .about-preview {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .about-features {
    grid-template-columns: 1fr !important;
  }
}

/* Fix Why Choose on Mobile */
@media (max-width: 991px) {
  .why-choose-bg {
    padding: 30px 20px !important;
    margin: 20px 15px !important;
    border-radius: 20px !important;
  }

  .why-wrapper2 {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .why-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .choice-card {
    padding: 15px !important;
  }

  .choice-card h3 {
    font-size: 18px !important;
  }
}

/* Fix Factors Section on Mobile */
@media (max-width: 991px) {
  .factors-section {
    padding: 40px 20px !important;
    margin: 20px 0 !important;
    border-radius: 20px !important;
  }

  .factors-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .factor-card {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 20px !important;
  }

  .factor-card:last-child {
    border-bottom: none !important;
  }
}

/* Fix Testimonials on Mobile */
@media (max-width: 991px) {
  .testimonials-wrapper {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .review-card {
    padding: 20px !important;
  }
}

/* Fix Portfolio on Mobile */
@media (max-width: 991px) {
  .portfolio-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Fix CTA Box on Mobile */
@media (max-width: 991px) {
  .cta-box {
    padding: 2rem 1.5rem !important;
  }

  .cta-box h2 {
    font-size: 1.5rem !important;
  }
}

/* Fix Footer on Mobile */
@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 30px !important;
    padding: 30px 0 !important;
  }

  .footer-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .footer-social {
    margin-left: 0 !important;
    justify-content: center !important;
  }

  .footer-brand p {
    margin-left: 0 !important;
    text-align: center !important;
  }

  .footer-logo {
    width: 200px !important;
    position: relative !important;
    top: 0 !important;
  }

  .logo-outer-container {
    height: auto !important;
    display: flex !important;
    justify-content: center !important;
  }
}

/* Fix Chat Button on Mobile */
@media (max-width: 991px) {
  .chat-float-container {
    bottom: 80px !important;
    right: 15px !important;
  }

  .chat-btn {
    padding: 10px 16px !important;
    font-size: 14px !important;
  }

  .chat-box {
    width: 220px !important;
    right: 0 !important;
    bottom: 55px !important;
  }
}

/* Fix Floating Buttons on Mobile */
@media (max-width: 991px) {
  .whatsapp-float {
    width: 48px !important;
    height: 48px !important;
    bottom: 1.5rem !important;
    right: 1.5rem !important;
    font-size: 1.2rem !important;
  }

  .scroll-top {
    width: 40px !important;
    height: 40px !important;
    bottom: 1.5rem !important;
    left: 1.5rem !important;
    font-size: 1rem !important;
  }
}

/* Fix Breadcrumb on Mobile */
@media (max-width: 991px) {
  .breadcrumb {
    padding: 6rem 0 1.5rem !important;
    font-size: 14px !important;
  }
}

/* Fix Section Spacing on Mobile */
@media (max-width: 991px) {
  .section {
    padding: 3rem 0 !important;
  }

  .section-header {
    margin-bottom: 2rem !important;
  }

  .section-header h2 {
    font-size: 1.5rem !important;
  }

  .section-header p {
    font-size: 0.95rem !important;
  }
}

/* Fix Container Padding on Mobile */
@media (max-width: 991px) {
  .container {
    padding: 0 15px !important;
  }
}

/* Fix About Section on Mobile */
@media (max-width: 991px) {
  .about-section {
    padding-top: 6rem !important;
    padding-bottom: 1.5rem !important;
  }
}

/* ============================================
   EXTRA SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  html {
    font-size: 14px !important;
  }

  .container {
    padding: 0 0.75rem !important;
  }

  .hero h1 {
    font-size: 1.75rem !important;
  }

  .stats-grid {
    grid-template-columns: 1fr !important;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .nav-menu {
    width: 85% !important;
    max-width: 280px !important;
    padding: 1.5rem 1rem !important;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .header, .footer, .whatsapp-float, .scroll-top, .cta-section {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  .section {
    padding: 2rem 0 !important;
  }
}

/* FIX: Remove duplicate arrows and fix header position */
.dropdown > a .fa-chevron-down {
  display: none !important;
}

/* ============================================
   FIX: Navigation Arrow & Positioning
   ============================================ */

/* Hide the Font Awesome arrow - use CSS arrow instead */
.dropdown > a .fa-chevron-down {
  display: none !important;
}

/* Or if you want to keep Font Awesome arrow and hide CSS arrow */
.dropdown > a::after {
  display: none !important;
}

/* Fix header height on mobile */
@media (max-width: 991px) {
  .header {
    height: 70px !important;
    min-height: 70px !important;
  }

  .header .container {
    padding: 0 12px !important;
    height: 70px !important;
    min-height: 70px !important;
  }

  .logo-capsule-container {
    width: 130px !important;
    height: 40px !important;
  }

  .logo-capsule-container img {
    margin-top: 25px !important;
    transform: scale(1) !important;
  }

  .logo-capsule-container .logo-capsule-bg {
    top: -6px !important;
    left: -4px !important;
    right: -4px !important;
    bottom: -24px !important;
  }

  /* Fix nav menu position */
  .nav-menu {
    top: 70px !important;
    height: calc(100vh - 70px) !important;
  }

  /* Fix menu toggle button */
  .menu-toggle {
    width: 38px !important;
    height: 38px !important;
    gap: 4px !important;
  }

  .menu-toggle span {
    width: 24px !important;
    height: 2.5px !important;
  }
}

/* Fix dropdown arrow on mobile */
@media (max-width: 991px) {
  .dropdown > a {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding-right: 10px !important;
  }

  /* Add a custom arrow for mobile dropdown */
  .dropdown > a::after {
    content: '▼' !important;
    display: inline-block !important;
    font-size: 12px !important;
    color: #94a3b8 !important;
    margin-left: auto !important;
    transition: transform 0.3s ease !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
  }

  .dropdown.open > a::after {
    transform: rotate(180deg) !important;
  }

  /* Remove default CSS arrow on desktop too */
  .dropdown > a::after {
    display: none !important;
  }
}

/* For desktop - keep dropdown hover working */
@media (min-width: 992px) {
  .dropdown > a::after {
    display: inline-block !important;
    content: '' !important;
    margin-left: 0.4rem !important;
    border-left: 4px solid transparent !important;
    border-right: 4px solid transparent !important;
    border-top: 4px solid currentColor !important;
    transition: var(--transition) !important;
  }

  .dropdown:hover > a::after {
    transform: rotate(180deg) !important;
  }
}
/* ============================================
   FIX: Mobile Dropdown Arrow
   ============================================ */

/* Remove Font Awesome arrow completely */
.dropdown > a .fa-chevron-down {
  display: none !important;
}

/* Desktop arrow using CSS */
@media (min-width: 992px) {
  .dropdown > a::after {
    content: '' !important;
    display: inline-block !important;
    margin-left: 0.4rem !important;
    border-left: 4px solid transparent !important;
    border-right: 4px solid transparent !important;
    border-top: 4px solid currentColor !important;
    transition: transform 0.3s ease !important;
  }
  
  .dropdown:hover > a::after {
    transform: rotate(180deg) !important;
  }
}

/* Mobile arrow - SHOW ON MOBILE */
@media (max-width: 991px) {
  .dropdown > a::after {
    content: '▼' !important;
    display: inline-block !important;
    font-size: 12px !important;
    color: #94a3b8 !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    padding-left: 10px !important;
    transition: transform 0.3s ease !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
  }
  
  .dropdown.open > a::after {
    transform: rotate(180deg) !important;
  }

  /* Make sure the link shows arrow properly */
  .dropdown > a {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 12px 0 !important;
  }

  /* Ensure dropdown menu items are visible */
  .dropdown-menu {
    display: none !important;
    position: static !important;
    width: 100% !important;
    background: #1b2436 !important;
    padding: 8px !important;
    margin-top: 8px !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .dropdown.open .dropdown-menu {
    display: block !important;
  }

  .dropdown-menu li a {
    padding: 10px 14px !important;
    font-size: 14px !important;
    color: #cbd5e1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border-radius: 8px !important;
    transition: background 0.3s ease !important;
  }

  .dropdown-menu li a:hover {
    background: #18253d !important;
    color: #00d4ff !important;
  }

  .dropdown-menu li a .icon {
    font-size: 16px !important;
  }
}

/* For very small screens */
@media (max-width: 480px) {
  .dropdown > a::after {
    font-size: 10px !important;
    padding-left: 8px !important;
  }
  
  .dropdown-menu li a {
    padding: 8px 12px !important;
    font-size: 13px !important;
  }
}
/* ============================================
   ONLY MOBILE COMPATIBILITY FIXES
   No design changes - Only responsive fixes
   ============================================ */

/* --- Fix: Container padding on mobile --- */
@media (max-width: 991px) {
  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* --- Fix: Header height on smaller screens --- */
@media (max-width: 480px) {
  .header {
    height: 65px !important;
  }
  
  .header .container {
    padding: 0 10px !important;
  }
  
  .logo-capsule-container {
    width: 110px !important;
    height: 38px !important;
  }
  
  .logo-capsule-container img {
    margin-top: 22px !important;
    transform: scale(1) !important;
  }
  
  .logo-capsule-container .logo-capsule-bg {
    top: -6px !important;
    left: -4px !important;
    right: -4px !important;
    bottom: -22px !important;
  }
  
  .menu-toggle {
    width: 34px !important;
    height: 34px !important;
  }
  
  .menu-toggle span {
    width: 22px !important;
    height: 2px !important;
  }
}

@media (max-width: 360px) {
  .header {
    height: 58px !important;
  }
  
  .logo-capsule-container {
    width: 90px !important;
    height: 32px !important;
  }
  
  .logo-capsule-container img {
    margin-top: 18px !important;
    transform: scale(0.9) !important;
  }
  
  .logo-capsule-container .logo-capsule-bg {
    top: -4px !important;
    left: -3px !important;
    right: -3px !important;
    bottom: -18px !important;
  }
  
  .menu-toggle {
    width: 30px !important;
    height: 30px !important;
  }
  
  .menu-toggle span {
    width: 18px !important;
    height: 2px !important;
  }
}

/* --- Fix: Hero section on mobile --- */
@media (max-width: 480px) {
  .hero {
    padding-top: 80px !important;
    padding-bottom: 30px !important;
  }
  
  .hero h1 {
    font-size: 1.8rem !important;
  }
  
  .hero p {
    font-size: 0.95rem !important;
  }
  
  .hero-badge {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.8rem !important;
  }
  
  .hero-buttons .btn {
    font-size: 0.9rem !important;
    padding: 8px 18px !important;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.5rem !important;
  }
  
  .hero p {
    font-size: 0.85rem !important;
  }
  
  .hero-buttons .btn {
    font-size: 0.8rem !important;
    padding: 6px 14px !important;
    max-width: 200px !important;
  }
}

/* --- Fix: Stats on mobile --- */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  
  .stat-item h3 {
    font-size: 1.6rem !important;
  }
  
  .stat-item p {
    font-size: 0.75rem !important;
  }
}

@media (max-width: 360px) {
  .stats-grid {
    gap: 8px !important;
  }
  
  .stat-item h3 {
    font-size: 1.3rem !important;
  }
}

/* --- Fix: Services grid on mobile --- */
@media (max-width: 480px) {
  .services-grid {
    gap: 15px !important;
  }
  
  .services-grid2 {
    gap: 15px !important;
  }
  
  .service-card {
    padding: 18px !important;
  }
  
  .service-card h3 {
    font-size: 1.1rem !important;
  }
  
  .service-card p {
    font-size: 0.85rem !important;
  }
  
  .service-icon {
    width: 45px !important;
    height: 45px !important;
    font-size: 1.2rem !important;
  }
}

@media (max-width: 360px) {
  .service-card {
    padding: 14px !important;
  }
  
  .service-card h3 {
    font-size: 1rem !important;
  }
  
  .service-card p {
    font-size: 0.8rem !important;
  }
  
  .service-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 1rem !important;
  }
}

/* --- Fix: Section headers on mobile --- */
@media (max-width: 480px) {
  .section-header {
    margin-bottom: 2rem !important;
  }
  
  .section-header h2 {
    font-size: 1.4rem !important;
  }
  
  .section-header p {
    font-size: 0.9rem !important;
  }
  
  .section-header .subtitle {
    font-size: 0.7rem !important;
    padding: 0.3rem 1rem !important;
  }
}

/* --- Fix: Custom hero section on mobile --- */
@media (max-width: 480px) {
  .custom-hero-section {
    padding: 80px 15px 25px !important;
  }
  
  .custom-hero-section h2 {
    font-size: 1.5rem !important;
  }
  
  .custom-hero-section span {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 360px) {
  .custom-hero-section h2 {
    font-size: 1.2rem !important;
  }
  
  .custom-hero-section span {
    font-size: 0.8rem !important;
  }
}

/* --- Fix: About section on mobile --- */
@media (max-width: 480px) {
  .about-section {
    padding-top: 75px !important;
  }
  
  .about-preview {
    gap: 20px !important;
  }
  
  .about-content h2 {
    font-size: 1.3rem !important;
  }
  
  .about-content p {
    font-size: 0.9rem !important;
  }
  
  .about-features {
    grid-template-columns: 1fr !important;
  }
  
  .about-feature {
    padding: 0.5rem !important;
    font-size: 0.85rem !important;
  }
}

/* --- Fix: Why choose section on mobile --- */
@media (max-width: 480px) {
  .why-choose-bg {
    padding: 25px 18px !important;
    margin: 15px 10px !important;
    border-radius: 16px !important;
  }
  
  .why-content2 h2 {
    font-size: 1.3rem !important;
  }
  
  .why-content2 p {
    font-size: 0.9rem !important;
  }
  
  .why-grid {
    gap: 12px !important;
  }
  
  .choice-card {
    padding: 12px !important;
  }
  
  .choice-card h3 {
    font-size: 16px !important;
  }
  
  .choice-card p {
    font-size: 13px !important;
  }
  
  .icon {
    font-size: 20px !important;
  }
}

/* --- Fix: Factors section on mobile --- */
@media (max-width: 480px) {
  .factors-section {
    padding: 30px 15px !important;
    margin: 15px 0 !important;
    border-radius: 16px !important;
  }
  
  .factors-grid {
    gap: 12px !important;
    margin-top: 25px !important;
  }
  
  .factor-card {
    padding: 15px !important;
  }
  
  .factor-card h3 {
    font-size: 1.1rem !important;
  }
  
  .factor-card p {
    font-size: 0.85rem !important;
  }
}

/* --- Fix: Tech grid on mobile --- */
@media (max-width: 480px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  
  .tech-item {
    padding: 12px 8px !important;
  }
  
  .tech-item span {
    font-size: 12px !important;
  }
  
  .tech-item .tech-icon {
    font-size: 1.5rem !important;
  }
}

/* --- Fix: Portfolio on mobile --- */
@media (max-width: 480px) {
  .portfolio-grid {
    gap: 15px !important;
  }
  
  .portfolio-info {
    padding: 12px !important;
  }
  
  .portfolio-info h3 {
    font-size: 1rem !important;
  }
  
  .portfolio-info p {
    font-size: 0.85rem !important;
  }
}

/* --- Fix: Testimonials on mobile --- */
@media (max-width: 480px) {
  .testimonials-wrapper {
    gap: 20px !important;
  }
  
  .review-card {
    padding: 15px !important;
  }
}

/* --- Fix: CTA box on mobile --- */
@media (max-width: 480px) {
  .cta-box {
    padding: 25px 18px !important;
  }
  
  .cta-box h2 {
    font-size: 1.3rem !important;
  }
  
  .cta-box p {
    font-size: 0.9rem !important;
  }
  
  .btn-primary {
    padding: 8px 18px !important;
    font-size: 0.9rem !important;
  }
}

/* --- Fix: Footer on mobile --- */
@media (max-width: 480px) {
  .footer-grid {
    gap: 20px !important;
    padding: 25px 0 !important;
  }
  
  .footer-logo {
    width: 160px !important;
  }
  
  .footer-brand p {
    font-size: 0.85rem !important;
  }
  
  .social-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 14px !important;
  }
  
  .footer-column h4 {
    font-size: 0.95rem !important;
  }
  
  .footer-column ul li a {
    font-size: 0.85rem !important;
  }
}

/* --- Fix: Chat button on mobile --- */
@media (max-width: 480px) {
  .chat-float-container {
    bottom: 75px !important;
    right: 12px !important;
  }
  
  .chat-btn {
    padding: 8px 14px !important;
    font-size: 12px !important;
  }
  
  .chat-box {
    width: 280px !important;
    right: -5px !important;
    bottom: 50px !important;
  }
  
  .chat-body {
    height: 260px !important;
  }
}

/* --- Fix: Scroll top button on mobile --- */
@media (max-width: 480px) {
  .scroll-top {
    width: 38px !important;
    height: 38px !important;
    bottom: 12px !important;
    left: 12px !important;
    font-size: 0.85rem !important;
  }
}

/* --- Fix: Breadcrumb on mobile --- */
@media (max-width: 480px) {
  .breadcrumb {
    padding: 75px 0 12px !important;
    font-size: 13px !important;
  }
}

/* --- Fix: Values grid on mobile --- */
@media (max-width: 480px) {
  .values-grid {
    gap: 15px !important;
    margin-top: 30px !important;
  }
  
  .value-card {
    padding: 20px !important;
  }
  
  .value-card h3 {
    font-size: 20px !important;
  }
  
  .value-card p {
    font-size: 14px !important;
  }
  
  .value-icon {
    width: 50px !important;
    height: 50px !important;
    font-size: 22px !important;
  }
}

/* --- Fix: Roadmap on mobile --- */
@media (max-width: 480px) {
  .roadmap-row,
  .roadmap-row.reverse {
    gap: 15px !important;
    margin-bottom: 25px !important;
  }
  
  .roadmap-text h3 {
    font-size: 1.2rem !important;
  }
  
  .roadmap-text p {
    font-size: 0.85rem !important;
  }
  
  .roadmap-text small {
    font-size: 0.7rem !important;
  }
}

/* --- Fix: Service card box on mobile --- */
@media (max-width: 480px) {
  .service-card-box {
    padding: 16px !important;
  }
  
  .service-card-box h3 {
    font-size: 1rem !important;
  }
  
  .service-card-box p {
    font-size: 0.85rem !important;
  }
}

/* --- Fix: Features list on mobile --- */
@media (max-width: 480px) {
  .features-list-center {
    gap: 12px !important;
  }
  
  .feature-item {
    padding: 14px !important;
  }
  
  .feature-item h4 {
    font-size: 0.95rem !important;
  }
  
  .feature-item p {
    font-size: 0.85rem !important;
  }
}

/* --- Fix: Body scroll when menu open --- */
body.menu-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
}

/* --- Fix: Safari iOS support --- */
@supports (-webkit-touch-callout: none) {
  .nav-menu {
    height: -webkit-fill-available !important;
  }
}
