/* ============================================
   HITESH FLOORTECH - Global Styles
   ============================================ */

:root {
  --blue: #292684;
  --green: #24946f;
  --dark: #101827;
  --text: #1f2937;
  --muted: #6b7280;
  --white: #ffffff;
  --light: #f5f7fb;
  --gold: #f3b23c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text);
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--green);
}

/* ============================================
   LAYOUT & SPACING
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-heading h2 {
  position: relative;
  display: inline-block;
}

.section-heading h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 2px;
}

.section-heading p {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 600px;
  margin: 1rem auto 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(41, 38, 132, 0.3);
}

.btn-secondary {
  background: var(--light);
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-menu a {
  color: var(--text);
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--blue);
}

.nav-menu .btn {
  margin-left: 1rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  margin: 5px 0;
  transition: 0.3s;
}

/* ============================================
   CAROUSEL SECTION
   ============================================ */

.carousel-section {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
  height: 600px;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 10;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(41, 38, 132, 0.6), rgba(36, 148, 111, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active .carousel-overlay {
  opacity: 1;
}

.carousel-overlay h2 {
  color: var(--white);
  font-size: 2.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.8s ease;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
  color: var(--white);
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 20;
  border-radius: 8px;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 2rem;
}

.carousel-next {
  right: 2rem;
}

.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 20;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.indicator.active {
  background: var(--gold);
  transform: scale(1.2);
  border-color: var(--white);
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

.carousel-section .hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 800px;
  width: 100%;
  padding: 2rem;
  z-index: 15;
  animation: slideUp 0.8s ease 0.3s backwards;
}

.carousel-section .hero-content h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 3.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.carousel-section .hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(rgba(41, 38, 132, 0.85), rgba(36, 148, 111, 0.85)),
              url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
  color: var(--white);
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(243, 178, 60, 0.1) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

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

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 3.5rem;
  animation: slideDown 0.8s ease;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  animation: slideUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  animation: slideUp 0.8s ease 0.4s backwards;
}

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

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

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  background: var(--light);
  padding: 2.5rem;
  border-radius: 12px;
  border-left: 5px solid var(--blue);
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(41, 38, 132, 0.15);
  border-left-color: var(--green);
}

.service-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--blue);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.service-card a {
  color: var(--blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.service-card a:hover {
  gap: 1rem;
}

/* ============================================
   FEATURES/HIGHLIGHTS
   ============================================ */

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.highlight-item {
  text-align: center;
  padding: 2rem;
}

.highlight-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.highlight-label {
  font-size: 1.125rem;
  color: var(--text);
  font-weight: 600;
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--gray-100);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(41, 38, 132, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-text {
  color: var(--white);
  font-weight: 600;
  font-size: 1.25rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--light);
  padding: 2rem;
  border-radius: 12px;
  border-top: 4px solid var(--gold);
}

.testimonial-text {
  color: var(--text);
  margin-bottom: 1.5rem;
  font-style: italic;
  font-size: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.testimonial-role {
  color: var(--muted);
  font-size: 0.875rem;
}

.stars {
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

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

.about-text h3 {
  color: var(--blue);
  margin: 1.5rem 0 1rem;
}

.about-text ul {
  list-style: none;
  margin: 1.5rem 0;
}

.about-text li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text);
}

.about-text li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: bold;
  font-size: 1.25rem;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  height: 400px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-icon {
  font-size: 2rem;
  color: var(--blue);
  min-width: 60px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 0.5rem;
}

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

.contact-details p {
  color: var(--muted);
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(41, 38, 132, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 2rem 1rem;
  margin-top: 5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
  color: var(--gold);
}

.btn-footer-contact {
  display: inline-block;
  margin-top: 1rem;
  background: linear-gradient(135deg, var(--gold), var(--green));
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.btn-footer-contact:hover {
  background: linear-gradient(135deg, var(--green), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(243, 178, 60, 0.3);
  border-color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .nav-menu {
    gap: 1.5rem;
  }

  .carousel-section {
    height: 400px;
  }

  .carousel-overlay h2 {
    font-size: 1.75rem;
  }

  .carousel-section .hero-content h1 {
    font-size: 2rem;
  }

  .carousel-section .hero-content p {
    font-size: 0.9rem;
  }

  .carousel-btn {
    padding: 0.75rem 1rem;
    font-size: 1.2rem;
  }

  .carousel-prev {
    left: 1rem;
  }

  .carousel-next {
    right: 1rem;
  }

  .hero {
    padding: 5rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    height: 300px;
  }

  .services-grid,
  .gallery-grid,
  .testimonials-grid,
  .highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .navbar {
    padding: 1rem 1.5rem;
  }

  .nav-menu {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo img {
    height: 40px;
  }

  .section-heading h2::after {
    width: 60px;
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .service-card,
  .testimonial-card {
    padding: 1.5rem;
  }

  .section-heading h2::after {
    bottom: -10px;
  }

  .gallery-item {
    height: 200px;
  }
}

