/* ============================================
   HOME PAGE STYLES
   Modern design with advanced animations
   ============================================ */

/* Cursor Trail */
.cursor-trail {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(59, 130, 246, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
}

/* Enhanced Navigation (dark) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 17, 21, 0.6);
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1rem 0;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(15, 17, 21, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  border-bottom-color: var(--border-subtle);
  padding: 0.5rem 0;
}

.navbar.scrolled .nav-link {
  color: var(--text-secondary);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--accent-blue);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-logo-img {
  height: 45px;
  width: auto;
}


.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-blue);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* Enhanced Hero */
.hero-enhanced {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 1;
}

.hero-floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(0, 94, 184, 0.5);
  border-radius: 50%;
  animation: float var(--duration) infinite ease-in-out;
  animation-delay: var(--delay);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  50% {
    transform: translateY(-100px) translateX(50px);
    opacity: 1;
  }
}

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

.hero-content {
  text-align: center;
  color: white;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(0, 94, 184, 0.2);
  border: 1px solid rgba(0, 94, 184, 0.5);
  border-radius: 50px;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-title-line {
  display: block;
  animation: fadeInUp 0.8s ease;
}

.hero-title-line:nth-child(2) {
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  letter-spacing: 0.2em;
  animation: fadeInUp 1s ease;
  animation-delay: 0.4s;
  animation-fill-mode: both;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1.2s ease;
  animation-delay: 0.6s;
  animation-fill-mode: both;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.btn-primary {
  background: var(--accent-blue);
  color: white;
  border: 2px solid var(--accent-blue);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 94, 184, 0.3);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: white;
  color: var(--text-charcoal);
  border-color: white;
  transform: translateY(-2px);
}

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

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  margin: 0 auto 0.5rem;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

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

/* Enhanced Stats Section (dark) */
.stats-section-enhanced {
  padding: 4rem 0;
  background: linear-gradient(to bottom, var(--bg-surface) 0%, var(--bg-dark) 100%);
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  padding: 0.5rem 1.5rem;
  background: var(--accent-blue-dim);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50px;
}

.section-title-large {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.stats-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-default);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 94, 184, 0.1), transparent);
  transition: left 0.6s ease;
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  border-color: var(--accent-blue);
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.stat-card.highlight-card {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #2563eb 100%);
  color: white;
  border: none;
}

.stat-card.highlight-card .stat-icon,
.stat-card.highlight-card .stat-label,
.stat-card.highlight-card .stat-subtitle {
  color: white;
}

.stat-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.25rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Services Showcase (dark) */
.services-showcase {
  padding: 4rem 0;
  background: var(--bg-dark);
}

.services-masonry {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.service-item {
  position: relative;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-default);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Shine sweep: left → right on hover, right → left on leave */
.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.12) 40%,
    rgba(59, 130, 246, 0.2) 50%,
    rgba(59, 130, 246, 0.12) 60%,
    transparent 100%
  );
  transition: left 0.6s ease;
  z-index: 5;
  pointer-events: none;
}

.service-item:hover::before {
  left: 100%;
}

.service-item--hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-item.large-image {
  grid-column: span 3;
  grid-row: span 2;
  position: relative;
}

.service-item.wide-image {
  grid-column: span 4;
  grid-row: span 1;
  position: relative;
}


.service-item:not(.large-image):not(.wide-image) {
  grid-column: span 3;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  border-color: rgba(59, 130, 246, 0.4);
}

.service-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.service-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-item:hover .service-image-wrapper img {
  transform: scale(1.1);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
  z-index: 1;
}

.service-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: white;
  z-index: 2;
}

.service-number {
  font-size: 0.75rem;
  color: var(--accent-blue);
  background: var(--bg-surface);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: white;
}

.service-description {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.service-item:not(.large-image):not(.wide-image) .service-icon {
  font-size: 2.5rem;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
}

.service-item:not(.large-image):not(.wide-image) .service-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.service-item:not(.large-image):not(.wide-image) .service-description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Products Preview Enhanced (dark) */
.products-preview-enhanced {
  padding: 4rem 0;
  background: linear-gradient(to bottom, var(--bg-surface) 0%, var(--bg-dark) 100%);
}

.products-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-category-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-default);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.product-category-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  border-color: var(--accent-blue);
}

.category-image {
  height: 200px;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.category-icon {
  font-size: 3.5rem;
  color: var(--accent-blue);
  opacity: 0.3;
  transition: all 0.4s ease;
}

.product-category-card:hover .category-icon {
  transform: scale(1.2) rotate(10deg);
  opacity: 0.5;
}

.category-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.category-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex: 1;
}

.category-link {
  color: var(--accent-blue);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.product-category-card:hover .category-link {
  gap: 1rem;
}

/* About Preview (dark) */
.about-preview {
  padding: 4rem 0;
  background: var(--bg-dark);
}

.about-content-split {
  display: grid;
  grid-template-columns: 1fr 1fr ;
  gap: 3rem;
  align-items: center;
}

.about-image-section {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
}

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

.image-frame {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border: 2px solid var(--accent-blue);
  border-radius: 16px;
  opacity: 0.3;
  z-index: -1;
}

.about-stats-mini {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
}

.mini-stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  min-width: 120px;
}

.mini-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.mini-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about-text-section {
  position: relative;
  padding-left: 1rem;
}

.about-text-section .section-tag {
  display: inline-block;
  text-align: left;
  margin-bottom: 1rem;
}

.about-text-section .section-title-large {
  text-align: left;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.about-description {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

/* Light mode for about description */
[data-theme="light"] .about-description {
  color: rgba(15, 17, 21, 0.8);
}

/* Footer Enhanced (dark) */
.footer-enhanced {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-dark) 100%);
  color: var(--text-primary);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-section-title {
  font-size: 0.875rem;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.contact-item i {
  color: var(--accent-blue);
  margin-top: 0.25rem;
  min-width: 20px;
}

.contact-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: white;
}

.map-container {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-version {
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
  .services-masonry {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .service-item.large-image {
    grid-column: span 6;
  }
  
  .service-item.wide-image {
    grid-column: span 6;
  }
  
  .service-item:not(.large-image):not(.wide-image) {
    grid-column: span 3;
  }
  
  .about-content-split {
    gap: 3rem;
  }
  
  .about-text-section {
    position: relative;
    padding-left: 0;
  }
  
  .footer-content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: left 0.3s ease;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .stats-grid-enhanced {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-masonry {
    grid-template-columns: 1fr;
  }
  
  .service-item {
    grid-column: span 1 !important;
  }
  
  .products-showcase {
    grid-template-columns: 1fr;
  }
}
