/* NJ Sales Modern Website - Custom Styles */
/* Built with Bootstrap 5 - Mobile First Responsive Design */

:root {
  /* Modern Color Palette */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  
  --primary-color: #667eea;
  --secondary-color: #f5576c;
  --accent-color: #4facfe;
  --success-color: #43e97b;
  --warning-color: #fa709a;
  
  --dark-color: #0f0f23;
  --light-color: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--light-color);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark-color);
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.1;
}

/* Custom Button System - Enhanced Bootstrap Buttons */
.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  border-radius: var(--radius-lg);
  padding: 12px 24px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.5;
}

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

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

.btn-primary-modern {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-lg);
}

.btn-primary-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: white;
}

.btn-outline-modern {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-outline-modern:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  color: white;
}

.btn-service {
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark-color);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.btn-service:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--dark-color);
}

.btn-cta {
  background: var(--secondary-gradient);
  color: white;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2xl);
  color: white;
}

.btn-arrow {
  transition: transform var(--transition-normal);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Hero Section - Mobile First */
.hero-modern {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--primary-gradient);
  overflow: hidden;
  padding: 80px 0 40px;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="90" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  animation: float 20s ease-in-out infinite;
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-2xl);
  padding: 8px 16px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.title-line {
  display: block;
  margin-bottom: 0.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-item {
  text-align: center;
  color: white;
  min-width: 100px;
}

.stat-number {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-visual-wrapper {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
}

.floating-cards {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: none; /* Hidden on mobile by default */
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-xl);
  text-align: center;
  animation: float 6s ease-in-out infinite;
  min-width: 120px;
}

.hero-main-image {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  max-width: 100%;
}

.hero-main-image img {
  width: 100%;
  height: auto;
  display: block;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  z-index: 2;
}

.scroll-text {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border: 2px solid white;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg);
  margin: 0 auto;
  animation: bounce 2s infinite;
}

/* Section Styling */
.section-header {
  margin-bottom: 3rem;
}

.section-badge {
  display: inline-block;
  background: var(--accent-gradient);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-2xl);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.section-description {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--gray-600);
  margin: 0 auto;
}

/* Services Grid - Bootstrap Enhanced */
.services-modern {
  background: var(--gray-50);
  padding: 80px 0;
}

.services-grid {
  margin-top: 3rem;
}

.service-card-modern {
  position: relative;
  background: white;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  height: 100%;
  margin-bottom: 2rem;
}

.service-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.service-background {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card-modern:hover .service-background img {
  transform: scale(1.1);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
}

.service-content {
  position: relative;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: calc(100% - 200px);
}

.service-icon {
  position: absolute;
  top: -40px;
  left: 2rem;
  z-index: 2;
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-lg);
}

.service-title {
  margin-top: 3rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.service-description {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  margin-bottom: 2rem;
  padding: 0;
}

.service-features li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
  color: var(--gray-700);
  font-size: 0.875rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
}

/* About Section - Bootstrap Grid */
.about-modern {
  padding: 80px 0;
}

.about-content {
  padding: 2rem 0;
}

.about-text {
  margin-bottom: 2rem;
}

.about-highlights {
  margin: 2rem 0;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary-color);
}

.highlight-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.highlight-content h4 {
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.highlight-content p {
  color: var(--gray-600);
  margin: 0;
}

.about-visual {
  position: relative;
  margin-top: 2rem;
}

.image-stack {
  position: relative;
}

.image-item {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.image-item img {
  width: 100%;
  height: auto;
  display: block;
}

.stats-floating {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-card {
  background: white;
  padding: 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  min-width: 100px;
}

.stat-card .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Testimonials Sliding Carousel - Mobile Optimized */
.testimonials-modern {
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.testimonials-carousel-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonials-carousel {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.testimonial-slide {
  min-width: 100%;
  flex-shrink: 0;
  padding: 0 1rem;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  border: 1px solid var(--gray-200);
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2xl);
}

.testimonial-content {
  margin-bottom: 2rem;
}

.quote-icon {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--primary-color);
  opacity: 0.3;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial-rating {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 2rem;
}

.star {
  color: #fbbf24;
  font-size: 1.25rem;
  transition: transform var(--transition-fast);
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--gray-200);
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  text-align: center;
}

.author-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.25rem;
}

.author-title {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.author-company {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0;
}

/* Carousel Controls - Mobile Friendly */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--gray-200);
  color: var(--gray-600);
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.carousel-dots {
  display: flex;
  gap: 0.75rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

.dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* CTA Section */
.cta-modern {
  background: var(--dark-color);
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-actions {
  position: relative;
  z-index: 2;
}

.cta-note {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-top: 1rem;
  text-align: center;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(-45deg); }
  40% { transform: translateY(-10px) rotate(-45deg); }
  60% { transform: translateY(-5px) rotate(-45deg); }
}

/* Mobile Responsive Breakpoints */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-actions {
    justify-content: flex-start;
  }
  
  .hero-stats {
    justify-content: flex-start;
  }
  
  .testimonial-card {
    padding: 2.5rem;
  }
  
  .author-info {
    text-align: left;
  }
  
  .testimonial-author {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-modern {
    padding: 100px 0 60px;
  }
  
  .floating-cards {
    display: block; /* Show floating cards on tablets and up */
  }
  
  .floating-card.card-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
  }
  
  .floating-card.card-2 {
    top: 50%;
    left: 5%;
    animation-delay: 2s;
  }
  
  .floating-card.card-3 {
    bottom: 15%;
    right: 20%;
    animation-delay: 4s;
  }
  
  .about-visual {
    margin-top: 0;
  }
  
  .stats-floating {
    position: absolute;
    top: 20px;
    right: 20px;
  }
  
  .testimonial-card {
    padding: 3rem;
  }
  
  .author-avatar {
    width: 80px;
    height: 80px;
  }
  
  .carousel-controls {
    gap: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .services-modern {
    padding: 120px 0;
  }
  
  .about-modern {
    padding: 120px 0;
  }
  
  .testimonials-modern {
    padding: 120px 0;
  }
  
  .cta-modern {
    padding: 120px 0;
  }
  
  .hero-visual-wrapper {
    margin-top: 0;
  }
  
  .about-content {
    padding-right: 2rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  .floating-card {
    padding: 1.5rem;
  }
}

/* Utility Classes */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: var(--primary-gradient);
}

.smooth-scroll {
  scroll-behavior: smooth;
}

/* Bootstrap Overrides for Better Mobile Experience */
.container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .row {
    margin-left: -15px;
    margin-right: -15px;
  }
  
  .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Touch-friendly interactive elements */
@media (max-width: 768px) {
  .btn {
    min-height: 44px;
    padding: 12px 20px;
  }
  
  .carousel-btn {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
  
  .dot {
    width: 16px;
    height: 16px;
  }
  
  .dot::after {
    width: 24px;
    height: 24px;
  }
}
