/* Sense and Serve Website Styles */

/* Global Styles */
:root {
  --primary-color: #6a1b9a; /* Purple color */
  --secondary-color: #9c27b0; /* Lighter purple */
  --accent-color: #4a148c; /* Darker purple */
  --text-color: #333333;
  --light-text: #666666;
  --background-color: #ffffff;
  --section-bg: #f9f9f9;
  --border-color: #e0e0e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--secondary-color);
  color: white;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.text-center {
  text-align: center;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  /* Removed text-align: center; as icons are now next to headings */
  margin-bottom: 1rem; /* Adjusted for better spacing with subtitle below */
  display: flex; /* Enable flex for icon-text alignment */
  align-items: center; /* Vertically align icon and text */
  justify-content: center; /* Center the entire heading block */
  text-align: center; /* Keep text centered if it wraps */
}

/* Style for icons next to section titles */
.section-icon {
  margin-right: 15px; /* Space between icon and text */
  font-size: 2.2rem; /* Slightly smaller than title font size */
  color: var(--primary-color);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--light-text);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Header Styles */
header {
  background-color: var(--background-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  font-weight: 600;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Hero Section (General and Page-specific) */
.hero {
  padding: 160px 0 80px;
  background-color: var(--background-color);
  position: relative;
  overflow: hidden;
}

.page-hero { /* Specific for pages like Services, About, Contact */
  padding-top: 120px; /* Adjust for fixed header */
  padding-bottom: 40px; /* Reduced space below hero section */
}

.services-hero .hero-content {
    flex-direction: column; /* Stack content for services hero */
    text-align: center;
}

.services-hero .hero-text {
    padding-right: 0; /* Remove padding from hero text */
}

.services-hero .hero-image {
    display: none; /* Ensure no image/icon placeholder is visible if not used */
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-text {
  flex: 1;
  padding-right: 40px;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--light-text);
  margin-bottom: 2rem;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

/* Services Section (Homepage) */
.services {
  background-color: var(--section-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background-color: var(--background-color);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-description {
  color: var(--light-text);
  flex-grow: 1;
}

.service-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Benefits Section */
.benefits {
  background-color: var(--background-color);
}

.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.benefit-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 15px;
  min-width: 30px;
}

.benefit-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.benefit-content p {
  color: var(--light-text);
}

/* Target Market Section */
.target-market {
  background-color: var(--section-bg);
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.market-item {
  background-color: var(--background-color);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.market-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.market-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* CTA Section */
.cta {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 80px 0;
}

.cta h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn {
  background-color: white;
  color: var(--primary-color);
  font-size: 1.1rem;
  padding: 15px 30px;
}

.cta .btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

/* About Page */
.about-section {
  padding: 160px 0 80px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.strategy-section {
  background-color: var(--section-bg);
}

.strategy-list {
  counter-reset: strategy-counter;
  list-style: none;
  padding: 0;
}

.strategy-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 30px;
}

.strategy-item::before {
  counter-increment: strategy-counter;
  content: counter(strategy-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
}

.strategy-item h3 {
  margin-bottom: 10px;
}

/* Services Detail Page - Adjusted Styles for full width content */
/* Removed .service-detail-content grid as content should flow full width */
.service-text-block {
  padding: 0; /* Remove previous padding for full width flow */
  margin-top: 20px; /* Add some space below the section subtitle */
}

.service-text-block h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

/* Removed .service-icon-block and its related styles */

.service-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 20px;
  margin-bottom: 40px;
}

.feature-card {
  background-color: var(--background-color); /* Changed from section-bg for contrast */
  border-radius: 8px;
  padding: 25px; /* Slightly reduced padding */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.feature-card i {
  font-size: 3.5rem; /* Larger icons within feature cards */
  color: var(--primary-color);
  margin-bottom: 15px;
}

.feature-card h4 { /* Changed from h3 to h4 for better semantic hierarchy */
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.feature-card p {
  color: var(--light-text);
  margin-bottom: 0; /* Remove bottom margin for last paragraph */
}

.use-cases {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color); /* Separator */
}

.use-cases h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 30px;
  color: var(--accent-color);
}

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.case-study {
  background-color: var(--background-color);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.case-study h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.case-study p {
  color: var(--light-text);
  margin-bottom: 0;
}


/* Contact Page */
.contact-section {
  padding: 160px 0 80px;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h2 {
  margin-bottom: 30px;
}

.contact-details {
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 15px;
  min-width: 30px;
}

.contact-text h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.contact-form {
  background-color: var(--section-bg);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: #222;
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
}

.footer-description {
  color: #aaa;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-icon {
  color: white;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: var(--primary-color);
}

.footer-title {
  font-size: 1.3rem;
  color: white;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #aaa;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #444;
  color: #aaa;
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text {
    padding-right: 0;
    margin-bottom: 40px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
    margin-bottom: 30px;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }

  /* Adjust section title alignment for smaller screens */
  .section-title {
    flex-direction: column; /* Stack icon and text */
    text-align: center;
  }

  .section-icon {
    margin-right: 0; /* Remove side margin */
    margin-bottom: 10px; /* Add bottom margin for spacing when stacked */
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero {
    padding: 140px 0 60px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  .nav-links li {
    margin: 15px 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .service-card, .feature-card, .case-study, .contact-form {
    padding: 20px;
  }
}
/* Toast Messages */
.toast-container {
    position: fixed;
    top: 20px; /* Adjust as needed */
    right: 20px; /* Adjust as needed */
    z-index: 1000; /* Ensure it's above other content */
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none; /* Allows clicks to pass through to elements below */
}

.toast-message {
    background-color: #333;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInSlideDown 0.5s forwards;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    min-width: 250px;
    max-width: 350px;
    pointer-events: auto; /* Re-enable pointer events for the toast itself */
}

.toast-message.toast-success {
    background-color: #4CAF50; /* Green */
}

.toast-message.toast-error {
    background-color: #F44336; /* Red */
}

.toast-message .fas {
    font-size: 1.2rem;
}

/* Animations */
@keyframes fadeInSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutSlideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}
