/* =========================================
   GLOBAL STYLES & VARIABLES
   ========================================= */

:root {
  --primary-color: #ff6d1f;
  --primary-hover: #e65c0a;
  --light-bg: #faf3e1;
  --dark-bg: #222222;
  --card-bg: #f5e7c6;
  --card-hover-bg: #ffffff;
  --text-dark: #333;
  --text-light: #fff;
  --text-muted: #555;
  --border-color: #ddd;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --font-sans: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-serif: 'Merriweather', 'Georgia', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--light-bg);
  color: var(--text-dark);
  position: relative; /* Needed for the aurora effect */
  overflow-x: hidden;
}

/* Aurora background effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 10% 20%, rgba(255, 109, 31, 0.1), transparent 40%),
  radial-gradient(circle at 90% 80%, rgba(255, 109, 31, 0.1), transparent 40%);
  z-index: -1;
  animation: aurora-glow 20s infinite alternate;
}

@keyframes aurora-glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* =========================================
   PRELOADER
   ========================================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark-bg);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid var(--card-bg);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--light-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* =========================================
   TOP BAR
   ========================================= */

.topbar {
  background: var(--dark-bg);
  color: var(--text-light);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 20px;
  font-size: 14px;
  flex-wrap: wrap;
}

.topbar div {
  transition: color 0.3s ease;
}

.topbar div:hover {
  color: var(--primary-color);
}

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

.topbar a:hover {
  color: var(--primary-color);
}

.topbar .social-icons i {
  margin-left: 15px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.topbar .social-icons i:hover {
  transform: scale(1.2);
  color: var(--primary-color);
}

/* =========================================
   NAVIGATION BAR
   ========================================= */

.navbar {
  background: rgba(250, 243, 225, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  box-shadow: 0 4px 12px var(--shadow-color);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
  background-color: var(--light-bg);
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.navbar .logo {
  font-size: 28px;
  font-weight: bold;
  font-family: var(--font-serif);
  color: var(--text-dark);
  transition: transform 0.3s ease;
}

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

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  padding: 8px 12px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: var(--primary-color);
}

.nav-links li a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 2px;
  background-color: var(--primary-color);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateX(-50%);
}

.nav-links li a:hover::before,
.nav-links li a.active-link::before {
  width: 100%;
}

.nav-links li a.active-link {
  color: var(--primary-color);
}


.menu-toggle {
  display: none;
  font-size: 28px;
}

/* =========================================
   HERO SLIDER
   ========================================= */

.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--dark-bg);
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden; /* Contain the parallax background */
}

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

.hero-background {
  position: absolute;
  width: 110%;
  height: 110%;
  background-size: cover;
  background-position: center;
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}


.hero-slide::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
  z-index: 2; /* Sit on top of the background image */
}

.hero-content {
  position: relative;
  z-index: 3; /* Sit on top of the overlay */
  color: var(--text-light);
  max-width: 800px;
}

/* Advanced Text Animation */
.hero-content .animated-headline {
  font-family: var(--font-serif);
  font-size: 56px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  min-height: 140px;
}

.hero-content .animated-headline span {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotateZ(10deg);
  animation: letter-reveal 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes letter-reveal {
  to {
    opacity: 1;
    transform: translateY(0) rotateZ(0);
  }
}

.hero-slide.active .hero-content p,
.hero-slide.active .hero-content .btn {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease-out forwards;
  animation-delay: 0.8s;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
}

.hero-content .btn {
  padding: 14px 28px;
  background: var(--text-light);
  color: var(--primary-color);
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.hero-content .btn:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   GENERAL SECTION STYLING & ANIMATIONS
   ========================================= */
.about, .services, .team, .gallery, .testimonials, .contact-section, .newsletter, .parallax {
  padding: 80px 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out, background-color 0.4s ease, box-shadow 0.4s ease;
}

.about.visible, .services.visible, .team.visible, .gallery.visible, .testimonials.visible, .contact-section.visible, .newsletter.visible, .parallax.visible {
  opacity: 1;
  transform: translateY(0);
}

.services:hover, .gallery:hover, .contact-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1);
}

.about:hover, .team:hover, .testimonials:hover {
  transform: translateY(-5px);
  background-color: #fff;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.08);
}


section h2 {
  font-size: 36px;
  margin-bottom: 20px;
  font-family: var(--font-serif);
  /* Gradient text for headlines */
  background: linear-gradient(to right, var(--primary-hover), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.about {
  background: var(--light-bg);
}

.about p {
  max-width: 700px;
  margin: auto;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
}

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

.services {
  background-color: #fff;
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: var(--card-bg);
  padding: 40px 30px;
  border-radius: 8px;
  width: 300px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, background-color 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

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

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

.card:hover {
  transform: translateY(-15px) rotateX(5deg) rotateY(-5deg);
  box-shadow: 0px 20px 30px -10px var(--shadow-color), 0 0 30px rgba(255, 109, 31, 0.3);
  background-color: var(--card-hover-bg);
}

.card i {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.card:hover i {
  transform: scale(1.2);
}

.card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.services p{
  text-align: center;
}

.services .card p {
  text-align: center;
  margin: 10px 0;
}


/* =========================================
   WHY CHOOSE US SECTION
   ========================================= */
.why-choose-us {
  padding: 80px 20px;
  background: var(--light-bg);
  position: relative;
  overflow: hidden;
}

.why-choose-us .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.why-choose-us .section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--text-dark);
  font-family: var(--font-serif);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  -webkit-text-fill-color: var(--text-dark);
  white-space: nowrap;
}

.why-choose-us .section-title .highlight {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.why-choose-us .section-title .highlight::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  border-radius: 3px;
}

.why-choose-us .section-subtitle {
  text-align: center;
  color: var(--text-dark);
  font-size: 1.3rem;
  margin: 0 auto 30px;
  max-width: 700px;
  line-height: 1.6;
  font-weight: 500;
}

.why-choose-us .intro-text {
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1.1rem;
  padding: 0 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 0 auto;
  max-width: 900px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
}

.feature-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(255, 109, 31, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(255, 109, 31, 0.1);
  background: var(--card-hover-bg);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card .icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: rgba(255, 109, 31, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  color: var(--primary-color);
  font-size: 32px;
}

.feature-card:hover .icon-wrapper {
  background: var(--primary-color);
  color: white;
  transform: rotateY(180deg);
}

.feature-card h3 {
  font-size: 1.4rem;
  margin: 20px 0 15px;
  color: var(--text-dark);
  font-family: var(--font-serif);
  transition: color 0.3s ease;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1rem;
  margin: 0;
  max-width: 280px;
  transition: color 0.3s ease;
  font-weight: 400;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.feature-card:hover h3,
.feature-card:hover p {
  color: var(--text-dark);
}

/* Animation Keyframes */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.feature-card {
  animation: float 6s ease-in-out infinite;
  animation-delay: calc(var(--delay, 0) * 0.2s);
}

/* Responsive Design */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .why-choose-us .section-title {
    font-size: 2.2rem;
  }
  
  .why-choose-us .section-subtitle {
    font-size: 1.2rem;
    max-width: 90%;
  }
  
  .why-choose-us .intro-text,
  .why-choose-us .closing-text {
    max-width: 90%;
    padding: 0 20px;
  }
  
  .feature-card {
    padding: 25px 20px;
  }
  
  .feature-card p {
    font-size: 0.98rem;
  }
}

@media (max-width: 768px) {
  .why-choose-us {
    padding: 50px 10px;
  }
  
  .why-choose-us .section-title {
    font-size: 2rem;
    white-space: normal;
    width: 100%;
    padding: 0 20px;
  }
  
  .why-choose-us .section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding: 0 15px;
  }
  
  .why-choose-us .intro-text {
    padding: 0 15px;
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 0 15px;
    gap: 20px;
  }
  
  .feature-card {
    padding: 25px 20px;
    max-width: 100%;
  }
  
  .feature-card h3 {
    font-size: 1.3rem;
    margin: 15px 0 10px;
    min-height: auto;
  }
  
  .feature-card p {
    max-width: 100%;
    font-size: 0.95rem;
  }
}

/* =========================================
   TEAM SECTION
   ========================================= */
.team {
  background: var(--light-bg);
}

.team-members {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.member {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  width: 150px;
  height: 150px;
}

.member img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.member:hover img {
  transform: scale(1.1);
}

.member-info {
  margin-top: 15px;
}

.member-info h3 {
  margin: 10px 0 5px;
  font-size: 20px;
}

.member-info p {
  color: var(--text-muted);
  font-style: italic;
}

.member-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.member:hover .member-overlay {
  opacity: 1;
}
.member-overlay a {
  color: white;
  font-size: 20px;
  transition: transform 0.3s ease;
}
.member-overlay a:hover {
  transform: scale(1.2);
  color: var(--primary-color);
}

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

.gallery {
  background-color: #fff;
}

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

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* =========================================
   PARALLAX SECTION
   ========================================= */
.parallax {
  padding: 120px 20px;
  background-image: url('https://images.unsplash.com/photo-1553356084-58ef4a67b2a7?q=80&w=1974&auto=format&fit=crop');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.parallax::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.parallax-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  text-align: center;
}

.parallax-content h2 {
  font-family: var(--font-serif);
  font-size: 42px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
  /* Revert to solid color for better readability on image */
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--text-light);
}

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

.testimonials {
  background: var(--light-bg);
}

.testimonial-slider-container {
  position: relative;
  max-width: 800px;
  margin: 40px auto;
  overflow: hidden;
}
.testimonial-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.testimonial-slide {
  min-width: 100%;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
}
.testimonial-slide.active {
  opacity: 1;
  position: relative;
}
.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.3);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.testimonial-nav:hover {
  background-color: var(--primary-color);
}
.testimonial-nav.prev { left: -20px; }
.testimonial-nav.next { right: -20px; }

.testimonial-slide p {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text-muted);
  line-height: 1.6;
}

.testimonial-slide h4 {
  font-weight: bold;
  color: var(--text-dark);
}

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

.contact-section {
  background-color: #fff;
  padding: 80px 30px;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  gap: 50px;
}

.contact-form {
  background: transparent;
  flex: 1 1 500px;
  padding: 0;
  text-align: left;
}

.contact-form h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.contact-form p {
  margin-bottom: 30px;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: none;
  border-bottom: 2px solid var(--border-color);
  background: transparent;
  outline: none;
  font-size: 16px;
  margin-bottom: 20px;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
}

.submit-btn {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  padding: 15px 30px;
  font-weight: bold;
  border-radius: 50px;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.submit-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.contact-info {
  flex: 1 1 400px;
  text-align: left;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.info-item .icon {
  font-size: 28px;
  color: var(--primary-color);
}

.info-item h4 {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
}

.info-item p {
  margin: 3px 0 0;
  font-weight: bold;
  color: var(--text-dark);
  font-size: 18px;
}


/* =========================================
   NEWSLETTER & FOOTER
   ========================================= */
.newsletter {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 60px 20px;
}

.newsletter h2 {
  color: var(--text-light);
  background: none;
  -webkit-text-fill-color: initial;
}

.newsletter-form {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.newsletter-form input {
  padding: 15px;
  border: 1px solid var(--primary-color);
  border-radius: 50px;
  width: 300px;
  background-color: var(--dark-bg);
  color: var(--text-light);
  font-size: 16px;
}

.newsletter-form button {
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  padding: 15px 30px;
  font-weight: bold;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.newsletter-form button:hover {
  background-color: var(--primary-hover);
}

.footer {
  background: var(--dark-bg);
  border-top: 1px solid #333;
  color: var(--text-muted);
  padding: 20px;
  text-align: center;
  font-size: 14px;
}

/* =========================================
   SCROLL TO TOP BUTTON
   ========================================= */
#topBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--primary-color);
  color: white;
  padding: 15px;
  border-radius: 50%;
  font-size: 18px;
  width: 50px;
  height: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.3s ease, transform 0.2s ease;
}

#topBtn.show {
  opacity: 1;
  transform: translateY(0);
}

#topBtn:hover {
  background-color: var(--primary-hover);
}

/* =========================================
   AI CHATBOT STYLES
   ========================================= */
.chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.chatbot-toggle:hover {
  background-color: var(--primary-hover);
  transform: scale(1.1);
}
.chatbot-toggle .fa-times { display: none; }
.chatbot.open .chatbot-toggle .fa-times { display: block; }
.chatbot.open .chatbot-toggle .fa-comment-dots { display: none; }

.chatbot-window {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 350px;
  max-height: 500px;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.5) translateY(50px);
  opacity: 0;
  visibility: hidden;
  transform-origin: bottom right;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}
.chatbot.open .chatbot-window {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
}

.chatbot-header {
  background: var(--primary-color);
  color: white;
  padding: 15px;
  text-align: center;
}
.chatbot-header h3 {
  margin: 0;
  font-size: 18px;
}

.chatbot-messages {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  list-style: none;
}
.chatbot-messages .message {
  margin-bottom: 15px;
  padding: 10px 15px;
  border-radius: 20px;
  max-width: 80%;
  line-height: 1.4;
}
.chatbot-messages .message.bot {
  background-color: var(--card-bg);
  color: var(--text-dark);
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}
.chatbot-messages .message.user {
  background-color: var(--primary-color);
  color: white;
  align-self: flex-end;
  margin-left: auto;
  border-bottom-right-radius: 5px;
}
.chatbot-messages .typing-indicator {
  display: flex;
  align-items: center;
}
.chatbot-messages .typing-indicator span {
  height: 8px;
  width: 8px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 2px;
  animation: typing 1s infinite;
}
.chatbot-messages .typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-messages .typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  50% { opacity: 0.5; }
}


.chatbot-input {
  display: flex;
  border-top: 1px solid var(--border-color);
  padding: 10px;
}
.chatbot-input input {
  flex-grow: 1;
  border: none;
  outline: none;
  padding: 10px;
  font-size: 16px;
  background: transparent;
}
.chatbot-input button {
  border: none;
  background: transparent;
  color: var(--primary-color);
  font-size: 20px;
  cursor: pointer;
  padding: 0 10px;
  transition: color 0.3s ease;
}
.chatbot-input button:hover {
  color: var(--primary-hover);
}


/* =========================================
   RESPONSIVE STYLES
   ========================================= */

@media screen and (max-width: 768px) {
  .topbar { flex-direction: column; text-align: center; gap: 10px; }
  .nav-links { position: absolute; top: 70px; right: 0; width: 100%; background: var(--light-bg); flex-direction: column; gap: 0; padding: 10px 0; transform: scaleY(0); transform-origin: top; transition: transform 0.3s ease-in-out; box-shadow: 0 8px 16px var(--shadow-color); display: none; }
  .nav-links.active { display: flex; transform: scaleY(1); }
  .nav-links li { margin-left: 0; text-align: center; }
  .nav-links li a { display: block; padding: 15px; }
  .menu-toggle { display: block; }
  .hero-content .animated-headline { font-size: 36px; min-height: 90px; }
  .hero-content p { font-size: 16px; }
  .form-group { flex-direction: column; }
  .parallax { background-attachment: scroll; }
  .parallax-content h2 { font-size: 32px; }
  .chatbot-window { width: calc(100% - 40px); right: 20px; bottom: 90px; }
  .testimonial-nav { display: none; }
}


    .card {
      transition: 
        transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
        box-shadow 0.4s ease, 
        background-color 0.4s ease;
    }
    .card:hover {
      transform: translateY(-10px) scale(1.03) rotateX(3deg) rotateY(-3deg);
      box-shadow: 0px 20px 30px -10px var(--shadow-color), 0 0 30px rgba(255, 109, 31, 0.2);
      background-color: var(--card-hover-bg);
    }
    .card i {
      font-size: 2rem;
      color: #ff6d1f;
      margin-bottom: 0.5rem;
      display: block;
      text-align: center;
      transition: transform 0.3s cubic-bezier(0.77, 0, 0.175, 1);
    }
    .card:hover i {
      transform: scale(1.15) rotate(-5deg);
    }
    .card h3 {
      margin: 0.5rem 0;
      font-size: 1.2rem;
      color: #111827;
      text-align: center;
      font-weight: 600;
      letter-spacing: 0.5px;
      transition: color 0.3s ease;
    }
    .card:hover h3 {
      color: var(--primary-color);
    }
    .card p {
      color: #555;
      margin-bottom: 1rem;
      text-align: left;
      line-height: 1.6;
      transition: color 0.3s ease;
    }
    .card:hover p {
      color: #222;
    }
    .details {
      opacity: 0;
      max-height: 0;
      overflow: hidden;
      transition: opacity 0.5s cubic-bezier(0.77, 0, 0.175, 1), max-height 0.5s cubic-bezier(0.77, 0, 0.175, 1);
      text-align: left;
    }
    .card:hover .details {
      opacity: 1;
      max-height: 500px;
    }
    .details ul {
      padding-left: 1.2rem;
      margin: 0;
      color: #374151;
      font-size: 0.95rem;
      text-align: left;
      transition: color 0.3s ease;
    }
    .card:hover .details ul {
      color: #111827;
    }
    .details ul li {
      margin-bottom: 0.4rem;
      list-style-type: disc;
      padding-left: 0.2rem;
      transition: transform 0.3s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.3s ease;
    }
    .card:hover .details ul li {
      transform: translateX(5px);
      opacity: 1;
    }