/* 
* SL Infotech - Premium Redesign 
* Inspired by Clearwater London
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Color Palette */
  --bg-color: #F0F0F0;
  --text-color: #111111;
  --accent-color: #2A52BE;
  /* Electric Blue */
  --secondary-text: #666666;
  --dark-bg: #111111;
  --light-text: #F0F0F0;
  --border-color: #E0E0E0;

  /* Spacing */
  --container-width: 1400px;
  --header-height: 80px;
  --section-spacing: 120px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.6s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  font-family: 'Manrope', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.5rem, 4.5vw, 5rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 3vw, 3.5rem);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: var(--section-spacing) 0;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--text-color);
  color: var(--bg-color);
}

.btn-primary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.btn-outline:hover {
  background-color: var(--accent-color);
  color: #fff;
}

/* Navigation */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  mix-blend-mode: difference;
  color: #fff;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo span {
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.8rem 2rem;
  border-radius: 50px;
}

.nav-links a {
  font-size: 0.9rem;
  text-transform: uppercase;
  opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

/* Hero Section */
.hero {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
  overflow: hidden;
}

.canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  transform: translateX(-40px);
}

/* Animation Utilities */
.section-line {
  width: 100%;
  height: 1px;
  background-color: var(--border-color);
  transform: scaleX(0);
  /* Hidden by default */
  transform-origin: left;
  margin-bottom: 2rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.service-card {
  background: #fff;
  padding: 3rem;
  border-radius: 8px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  opacity: 0;
  /* Hidden for GSAP */
  visibility: hidden;
  /* Prevent flash */
}

/* 3D Hover Effect */
.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-color);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--accent-color);
  transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-card p {
  color: var(--secondary-text);
  margin-bottom: 2rem;
}

/* Dark Section */
.dark-section {
  background-color: var(--dark-bg);
  color: var(--light-text);
}

.dark-section .text-gray {
  color: #999;
}

/* Horizontal Scroll Section */
.horizontal-scroll-container {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  position: relative;
}

.panel {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 8rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4rem;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-col ul li {
  margin-bottom: 1rem;
}

.footer-col ul li a {
  color: #999;
}

.footer-col ul li a:hover {
  color: #fff;
}

.mobile-menu-btn {
  display: none;
  cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
    color: #fff;
    font-size: 1.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Products Grid (Refurbished) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  opacity: 0;
  /* Hidden for GSAP */
  visibility: hidden;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-color);
}

.product-image {
  background: #f8f9fa;
  padding: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.product-image i,
.product-image img {
  color: #333;
  transition: transform 0.4s ease;
}

.product-image img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-card:hover .product-image i,
.product-card:hover .product-image img {
  transform: scale(1.1);
  color: var(--accent-color);
}

.product-details {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-details .title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.product-specs {
  margin-bottom: 2rem;
  flex-grow: 1;
}

.product-specs li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.8rem;
  color: var(--secondary-text);
  font-size: 0.95rem;
}

.product-specs li i {
  color: var(--accent-color);
  width: 20px;
  text-align: center;
}

/* Testimonials Section */
.testimonials-slider {
  position: relative;
  overflow: hidden;
  padding: 2rem 0 5rem;
}

.testimonials-grid {
  display: flex;
  transition: transform 0.6s var(--ease-out);
  gap: 2rem;
}

.testimonial-card {
  flex: 0 0 100%;
  /* Default: 1 card per view */
  background: rgba(255, 255, 255, 0.03);
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s var(--ease-out);
  opacity: 1 !important;
  /* Ensure visibility for slider */
  visibility: visible !important;
}

@media (min-width: 768px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 1rem);
    /* 2 cards on tablet */
  }
}

@media (min-width: 1024px) {
  .testimonial-card {
    flex: 0 0 calc(33.333% - 1.35rem);
    /* 3 cards on desktop */
  }
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-color);
  transform: translateY(-5px);
}

.testimonial-content {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #ccc;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-info h4 {
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.author-info p {
  font-size: 0.85rem;
  color: var(--accent-color);
}

.rating {
  color: #FFD700;
  margin-bottom: 1rem;
}

/* Slider Controls */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.slider-prev,
.slider-next {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.slider-prev:hover,
.slider-next:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  gap: 0.8rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.dot.active {
  background: var(--accent-color);
  transform: scale(1.3);
}

/* Feedback Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #1e1e1e;
  width: 90%;
  max-width: 500px;
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transform: translateY(30px);
  transition: all 0.4s var(--ease-out);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.close-modal:hover {
  opacity: 1;
}

.feedback-form label {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: #999;
}

.feedback-form input,
.feedback-form textarea,
.feedback-form select {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  margin-bottom: 1.5rem;
  font-family: inherit;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  transition: color 0.3s;
  margin-bottom: 0;
}

.star-rating label:hover,
.star-rating label:hover~label,
.star-rating input:checked~label {
  color: #FFD700;
}

```