/* ----------------------------------
   Global Reset & Fonts
----------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6a5acd;
  --primary-dark: #5a4abc;
  --primary-light: #7e6bff;
  --secondary: #9370db;
  --accent: #b19cd9;
  --text-light: #e4e4e4;
}

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.hero h1,
.service-category h3,
.feature h3,
.testimonial-author strong,
.footer-column h3,
.contact-info h3,
.contact-form h3 {
  font-family: "Lora", serif;
  font-weight: 600;
}

/* ----------------------------------
   Header & Navigation
----------------------------------*/
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  height: 80px;
}

.logo {
  height: 2.5rem;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  position: relative;
  font-size: 1.1rem;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ----------------------------------
   Hamburger Menu (mobile)
----------------------------------*/
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.hamburger .bar {
  width: 30px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    flex-direction: column;
    width: 100%;
    height: calc(100vh - 80px);
    padding: 2rem 0;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    text-align: center;
  }

  .nav-links a {
    display: block;
    font-size: 1.3rem;
    padding: 1rem 0;
  }
}

/* ----------------------------------
   HERO SECTION
----------------------------------*/
.hero {
  position: relative;
  min-height: 100vh;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  text-align: center;
  color: #fff;
  background: url("./assets/images/hero-bg.webp") center/cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 30rem;
  padding-top: 80px;
  padding-bottom: 80px;
  animation: fadeInUp 1s ease-out both;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #a594f9, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  color: var(--text-light);
  font-weight: 300;
}

/* ----------------------------------
   CTA BUTTON
----------------------------------*/
.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 10px 30px rgba(106, 90, 205, 0.3);
  text-decoration: none;
}

.cta-button:hover {
  transform: translateY(-3px);
  background: var(--primary-dark);
  box-shadow: 0 15px 40px rgba(106, 90, 205, 0.4);
}

/* ----------------------------------
   Key Animations (single definition)
----------------------------------*/
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------------------------------
   Responsive Tweaks
----------------------------------*/
@media (max-width: 768px) {
  .hero-content {
    padding-top: 120px;
    padding: 2rem 1rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

/* ----------------------------------
   Generic Section Wrapper
----------------------------------*/
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-title {
  position: relative;
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

/* ----------------------------------
   Services Tabs
----------------------------------*/
.services-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.8rem 1.8rem;
  background: #fff;
  border: 2px solid #f0f0f0;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 25px rgba(106, 90, 205, 0.3);
}

.services-content {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  min-height: 400px;
  border: 1px solid rgba(106, 90, 205, 0.1);
}

.service-category {
  display: none;
  animation: fadeIn 0.5s ease-out forwards;
}

.service-category.active {
  display: block;
}

.service-category h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  text-align: center;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  list-style: none;
}

.service-list li {
  position: relative;
  padding: 1rem 1rem 1rem 2.5rem;
  background: #f9f9f9;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 1rem;
  color: var(--primary);
  font-weight: bold;
}

.service-list li:hover {
  background: #f5f3ff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(106, 90, 205, 0.1);
}

/* ----------------------------------
   Why Choose Us (full-width)
----------------------------------*/
.full-width-section {
  width: 100%;
  padding: 5rem 0;
}

.full-width-section .section-title {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.light-purple {
  background: #f5f3ff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.feature {
  text-align: center;
  padding: 2rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(106, 90, 205, 0.2);
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  color: #fff;
}

/* ----------------------------------
   Premium Technology Section
----------------------------------*/
#premium-tech {
  background: #fff;
}

.tech-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.tech-feature {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 4rem;
}

.tech-feature.reverse {
  flex-direction: row-reverse;
}

.tech-text,
.tech-image {
  flex: 1;
}

.tech-text h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.tech-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
}

.tech-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tech-image:hover {
  transform: scale(1.05);
}

/* ----------------------------------
   Products Section
----------------------------------*/
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.product-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding-bottom: 1.5rem;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(106, 90, 205, 0.15);
}

.product-image {
  height: 250px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-card h3 {
  color: var(--primary);
  margin: 1.2rem 1rem 0.5rem;
  font-size: 1.4rem;
}

.product-card p {
  color: #666;
  padding: 0 1.5rem;
  min-height: 60px;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0.8rem 0;
}

.product-btn {
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  margin: 0 auto;
  display: block;
  width: max-content;
}

/* ----------------------------------
   About Section
----------------------------------*/
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
}

.about-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-image:hover {
  transform: scale(1.05);
}

/* ----------------------------------
   Testimonials
----------------------------------*/
.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
  cursor: grab;
}

.testimonial-slider:active {
  cursor: grabbing;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
  user-select: none;
}

.testimonial {
  flex: 0 0 calc(100% - 30px);
  min-width: calc(100% - 30px);
  margin: 0 15px;
  background: #fff;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(106, 90, 205, 0.2);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: #666;
  font-size: 1.1rem;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  font-weight: bold;
  color: var(--primary);
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.stars {
  color: #ffd700;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.slider-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  background: #d8d8d8;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.slider-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

.center-button {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* Remove slider arrows */
.slider-arrows {
  display: none;
}

/* ----------------------------------
   Contact Section
----------------------------------*/
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 3rem;
  border-radius: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item i {
  font-size: 1.5rem;
  margin-top: 5px;
}

.contact-form {
  background: #fff;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid #eee;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(106, 90, 205, 0.2);
}

.google-map {
  height: 300px;
  margin-top: 1.5rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.google-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ----------------------------------
   Footer
----------------------------------*/
footer {
  background: #1a1a1a;
  color: #fff;
  padding: 4rem 0 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  padding: 0 2rem;
}

.footer-column h3 {
  position: relative;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
}

.footer-logo {
  height: 2.5rem;
  object-fit: contain;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-links a i {
  font-size: 0.8rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #333;
  color: #fff;
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-5px);
}

/* Footer bottom */
.copyright {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 0;
  font-size: 0.9rem;
  color: #aaa;
  border-top: 1px solid #333;
}

/* ----------------------------------
   Additional Animations
----------------------------------*/
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------
   Mobile Optimisations
----------------------------------*/
@media (max-width: 992px) {
  .hero {
    height: auto;
    flex-direction: column;
    padding-top: 100px;
    padding-bottom: 3rem;
  }

  .hero-content {
    padding-top: 0;
    margin-bottom: 2rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .services-tabs {
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .tab-btn {
    white-space: nowrap;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .testimonial {
    padding: 1.5rem;
  }

  .testimonial-track {
    width: 100%;
  }

  .testimonial {
    min-width: calc(100% - 30px);
  }

  .product-card {
    max-width: 350px;
    margin: 0 auto;
  }

  .tech-feature,
  .tech-feature.reverse {
    flex-direction: column;
  }

  .tech-text,
  .tech-image {
    width: 100%;
  }
}
