:root {
  --primary: #5e98f1;
  --secondary: #4a7ac1;
  --text: #1f2937;
  --light: #f3f4f6;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text);
}

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

/* Navigation */
nav {
  background: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  margin-left: 2rem;
}

.cta-btn {
  background: var(--primary);
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background 0.3s;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(to bottom, #f8fafc, white);
}

.hero-content {
  max-width: 800px;
  margin-bottom: 3rem;
}

.hero-visual {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.subtitle {
  font-size: 1.25rem;
  color: #4b5563;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-btn-large {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.125rem;
  transition: background 0.3s;
}

.floating-browser {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.browser-header {
  background: #f1f5f9;
  padding: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot:nth-child(1) {
  background: #fc6058;
}
.dot:nth-child(2) {
  background: #fec02f;
}
.dot:nth-child(3) {
  background: #2aca3e;
}

.browser-content {
  position: relative;
  height: 550px;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
  touch-action: pan-y pinch-zoom;
  padding: 0;
  margin: 0;
}

.browser-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: backgroundSwitch 9s infinite;
  background-size: cover;
  background-position: center;
  z-index: 1;
  opacity: 0;
}

@keyframes backgroundSwitch {
  0%,
  28% {
    background-image: url("../images/LinkedIn.png");
    opacity: 1;
  }
  33%,
  61% {
    background-image: url("../images/Mail.png");
    opacity: 1;
  }
  66%,
  94% {
    background-image: url("../images/Reddit.png");
    opacity: 1;
  }
  29%,
  32%,
  62%,
  65%,
  95%,
  100% {
    opacity: 0.2;
  }
}

.typing-animation {
  position: absolute;
  top: 20px;
  right: -80px;
  background: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 300px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #e2e8f0;
}

.wave-text {
  color: var(--primary);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.wave-text > span {
  display: inline-block;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.cursor {
  display: none;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes wave {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 1rem;
  }

  .hero-visual {
    margin-top: 2rem;
    padding: 0 1rem;
    max-width: 100%;
  }

  .browser-content {
    height: 230px;
  }
}

/* Features Section */
#features {
  padding: 5rem 0;
  background: linear-gradient(to bottom, white, var(--primary-light));
}

#features h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  padding: 2rem;
  border-radius: 1rem;
  background: white;
  transition: all 0.3s ease;
  border: 1px solid rgba(94, 152, 241, 0.1);
  box-shadow: 0 4px 20px rgba(94, 152, 241, 0.05);
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(94, 152, 241, 0.12);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-list {
  list-style: none;
  margin-top: 1rem;
  padding-left: 0;
}

.feature-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  color: #4b5563;
}

.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Testimonials */
#testimonials {
  padding: 5rem 0;
  background: linear-gradient(to bottom, white, var(--primary-light));
}

#testimonials h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.testimonials-floating {
  position: relative;
  height: 400px;
  margin-top: 3rem;
}

.testimonial-card {
  position: absolute;
  background: linear-gradient(
    135deg,
    var(--color) 0%,
    rgba(255, 255, 255, 0.95) 100%
  );
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(94, 152, 241, 0.15),
    0 10px 30px rgba(94, 152, 241, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.8);
  width: 220px;
  animation: float-around 15s linear infinite;
  animation-delay: var(--delay);
  transition: all 0.3s ease;
  border: 1px solid rgba(94, 152, 241, 0.1);
}

.testimonial-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 25px rgba(94, 152, 241, 0.2),
    0 15px 40px rgba(94, 152, 241, 0.15),
    inset 0 0 25px rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(94, 152, 241, 0.2);
}

.testimonial-card p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 1rem;
}

.testimonial-card cite {
  font-size: 0.9rem;
  color: var(--primary-dark);
  font-style: normal;
  font-weight: 500;
}

@keyframes float-around {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(30%, -30%) rotate(2deg);
  }
  50% {
    transform: translate(60%, 0) rotate(-2deg);
  }
  75% {
    transform: translate(30%, 30%) rotate(1deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

/* Position cards initially */
.testimonial-card:nth-child(1) {
  top: 10%;
  left: 10%;
}
.testimonial-card:nth-child(2) {
  top: 20%;
  left: 40%;
}
.testimonial-card:nth-child(3) {
  top: 15%;
  left: 70%;
}
.testimonial-card:nth-child(4) {
  top: 50%;
  left: 15%;
}
.testimonial-card:nth-child(5) {
  top: 60%;
  left: 45%;
}
.testimonial-card:nth-child(6) {
  top: 55%;
  left: 75%;
}
.testimonial-card:nth-child(7) {
  top: 80%;
  left: 25%;
}
.testimonial-card:nth-child(8) {
  top: 75%;
  left: 65%;
}

@media (max-width: 768px) {
  .testimonials-floating {
    height: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
  }

  .testimonial-card {
    position: relative;
    top: unset !important;
    left: unset !important;
    animation: none;
    width: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
footer {
  background: var(--text);
  color: white;
  padding: 4rem 0;
}

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

.footer-section {
  margin-bottom: 1.5rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section p {
  margin-bottom: 0.5rem;
  color: #d1d5db;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

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

.demo-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.browser-mockup {
  width: 95%;
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px 20px 0;
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  line-height: 1.6;
}

.privacy-content h2 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.privacy-content ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.cta-btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

/* Add to existing styles */
#dictationCounter {
  color: var(--primary);
  font-weight: 600;
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.5s ease;
  opacity: 0; /* Start hidden */
}

.users {
  font-size: 1.1rem;
  color: #4b5563;
  margin-top: 1rem;
}

/* Use Cases Section */
#use-cases {
  padding: 5rem 0;
  background: linear-gradient(to bottom, white, var(--primary-light));
}

.use-case-browser {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  max-width: 1200px;
  margin: 2rem auto;
  animation: float 6s ease-in-out infinite;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.browser-header {
  background: #f1f5f9;
  padding: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  border-radius: 12px 12px 0 0;
}

.browser-images {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.browser-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  object-fit: contain;
  object-position: top;
  padding: 0;
  margin: 0;
}

.browser-image.active {
  opacity: 1;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: var(--primary);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .browser-content {
    height: 230px;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
}

.modal-content {
  position: relative;
  background-color: #fff;
  margin: 5% auto;
  width: 80%;
  max-width: 900px;
  border-radius: 12px;
  overflow: hidden;
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  z-index: 1;
}

.modal-body {
  display: flex;
  padding: 2rem;
  gap: 2rem;
}

.modal-image {
  flex: 1;
  min-width: 300px;
}

.modal-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-text {
  flex: 1;
  padding: 1rem;
}

.modal-text h3 {
  margin-bottom: 1rem;
  color: #333;
}

.modal-text ul {
  list-style-type: none;
  padding: 0;
  margin-top: 1rem;
}

.modal-text ul li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.modal-text ul li:before {
  content: "✓";
  color: #4caf50;
  position: absolute;
  left: 0;
}

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

  .modal-content {
    width: 95%;
    margin: 2% auto;
  }
}

/* Update the use-case-title-card styles */
.use-case-title-card {
  position: absolute;
  top: 40px;
  right: -80px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 300px;
  z-index: 100;
  border: 1px solid #e2e8f0;
}

.use-case-title-card .wave-text {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0.5rem;
}

.use-case-title-card .wave-text.active {
  display: flex;
}

.wave-text span {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.use-case-description {
  color: #666;
  font-size: 0.95rem;
  font-weight: normal;
  line-height: 1.4;
  margin-top: 4px;
}

@media (max-width: 1400px) {
  .use-case-title-card {
    right: 20px;
    top: 0px; /* Adjusted to prevent overlap */
  }
}

@media (max-width: 768px) {
  .use-case-title-card {
    position: absolute;
    right: 0;
    top: 0;
    width: 45%;
    margin-bottom: 0rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
}

.use-cases-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 4rem; /* Increase space after subtitle */
}

.use-case-browser {
  margin-top: 6rem; /* Increase space above browser to accommodate titles */
  position: relative;
}

.use-case-browser:active {
  cursor: grabbing;
}

/* Update Bottom CTA Section */
#bottom-cta {
  padding: 5rem 0;
  background: linear-gradient(to bottom, white, var(--primary-light));
}

#bottom-cta h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

#bottom-cta .bottom-cta-text {
  text-align: center;
  color: #4b5563;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Update container styles for consistent spacing */
#testimonials .container,
#bottom-cta .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Add this to your existing CSS */
.featured-section {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 1rem;
}

.featured-text {
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.featured-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.featured-logo {
  height: 30px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  filter: grayscale(100%);
}

/* Add specific adjustments for Product Hunt and Tech Base Directory logos */
img[alt="Product Hunt"].featured-logo,
img[alt="Tech Base Directory"].featured-logo {
  height: 45px; /* Increased from 38px to 45px */
}

.featured-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@media (max-width: 768px) {
  .featured-logos {
    gap: 1.5rem;
  }

  .featured-logo {
    height: 25px;
  }

  /* Maintain the proportion for the specific logos on mobile */
  img[alt="Product Hunt"].featured-logo,
  img[alt="Tech Base Directory"].featured-logo {
    height: 38px; /* Increased from 32px to 38px */
  }
}
