@tailwind base;
@tailwind components;
@tailwind utilities;

/* Reset any potential overflow or unwanted margins */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* Existing responsive breakpoints and grid adjustments */
@media (max-width: 768px) {
  .responsive-header {
    position: relative;
    padding: 10px;
  }

  .responsive-nav {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .responsive-logo {
    height: 3rem;
  }

  .responsive-nav-links {
    display: none;
    width: 100%;
    text-align: center;
    background-color: #1e40af;
    padding: 15px 0;
  }

  .responsive-nav-links.active {
    display: flex;
  }

  .responsive-hero {
    padding: 20px 0;
  }

  .responsive-hero-content {
    padding: 0 15px;
  }

  .responsive-services-grid {
    grid-template-columns: 1fr;
  }
}

/* Flexbox Enhancements */
.flex-responsive {
  display: flex;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .flex-responsive {
    flex-direction: column;
  }
}

/* Additional Responsive Utilities */
.container-fluid {
  width: 100%;
  padding: 0 15px;
}

/* Smooth Transitions */
* {
  transition: all 0.3s ease;
}

/* Prevent horizontal scrolling */
body {
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

/* Ensure full-width containers don't cause overflow */
.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl {
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}

.about-us .company-story,
.about-us .team-member {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.about-us .company-story:hover,
.about-us .team-member:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Add some additional styles for new conversion elements */
.conversion-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.conversion-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.testimonial {
  transition: transform 0.3s ease;
}

.testimonial:hover {
  transform: scale(1.05);
}

/* Highlight conversion sections */
#cta {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 3s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

/* Add a new rule to make the logo white in the home section */
#home .logo img {
  filter: brightness(0) invert(1);
}