/*
 * SEO by FuelitOnline (FIO) - Home Page Styles
 * Specific styles for the home/landing page
 */

/* Hero Section */
.hero {
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
}


.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(117, 225, 194, 0.1) 0%, rgba(117, 225, 194, 0) 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    padding: 45px;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: #fff;
}

.hero-title .highlight {
    color: var(--primary);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 0.2em;
    background-color: var(--secondary);
    opacity: 0.5;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: var(--spacing-lg);
    color: #fff;
}

/* Scan Form */
.scan-form-container {
    width: 100%;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    margin-top: -41px; /* Changed from -40px to -60px to move it higher */
}

.scan-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
}

.input-button-container {
    display: flex;
    align-items: center;
    width: 100%;
    gap: var(--spacing-sm);
}

.url-input-container {
    flex: 1;
    position: relative;
}

.scan-counter {
    font-size: medium;
    color: var(--dark-gray);
    text-align: left;
    animation: fadeIn 0.5s ease-in-out;
}

.scan-counter span {
    color: var(--primary);
    font-weight: 700;
}
.total-scan-counter{
    font-size: x-large;
    font-weight: bold;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.scan-counter.empty span {
    color: var(--error);
}

#url-input {
    width: 100%;
    padding: var(--spacing-md);
    font-size: 1rem;
    border: 1px solid var(--light);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-medium);
    height: 48px; /* Explicit height for consistency */
}

#url-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

#scan-button {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-medium);
    height: 48px;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#scan-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

#scan-button:disabled {
    background-color: var(--medium);
    cursor: not-allowed;
    transform: none;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  border-radius: 20px;
  padding: 30px;
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3), transparent 70%);
  animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
  0% { transform: translate(0, 0); }
  100% { transform: translate(100px, 100px); }
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.feature-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  }

.feature-icon {
  margin-bottom: 15px;
      width: 80px;
    height: 80px;
    border-radius: 100%;
    overflow: hidden;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #2b2b2b;
  margin-bottom: 10px;
}

.feature-description {
  font-size: 0.95rem;
  color: #555;
}

/* Animation Keyframes */
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
/* Add other animations as needed */

.animate-bounce:hover   { animation: bounce 0.6s ease-in-out; }
.animate-pulse:hover    { animation: pulse 0.6s ease-in-out; }
/* Apply hover animations only on hover */

@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .hero::before {
    content: '';
    position: static;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(117, 225, 194, 0.2) 0%, rgba(117, 225, 194, 0) 70%);
}
}


/* Testimonials Section */
.testimonials-section {
  padding: 40px 20px;
  text-align: center;
  background: #f9fafb;
}

.testimonial-header h2 {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #1f2937;
}

.trusted-by {
  font-size: 1.5rem;
  color: #6b7280;
  margin-bottom: 30px;
}

.testimonial-carousel {
  position: relative;
  max-width: 1232px;
  margin: auto;
  overflow: hidden;
}

.testimonial-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  min-width: 100%;
  display: flex;
  gap: 70px;
  justify-content: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.testimonial-card {
  background: #edc9ff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 360px;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: #374151;
  margin-bottom: 10px;
}

.testimonial-card strong {
  color: #1f2937;
  font-weight: 600;
}



.testimonial-control:hover {
  background: rgba(0,0,0,0.6);
}

.testimonial-control.prev {
  left: 10px;
}

.testimonial-control.next {
  right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .testimonial-slide {
    flex-direction: column;
    align-items: center;
  }

  .testimonial-card {
    max-width: 90%;
  }
}


/* Why Choose Us Section */
 .why-choose-section {
        background-color: #e9e5ff; /* Light purple background */
        padding: 80px 0;
        text-align: center;
    }

   .choose-grid {
      display: grid;
      grid-template-columns: 1fr; /* one wide card per row */
      gap: 40px;
      max-width: 900px;
      margin: 0 auto;
    }
    .choose-item {
        background-color: #fff;
        border-radius: 12px;
        padding: 30px;
        text-align: left;
        display: flex;
        align-items: flex-start;
        margin-bottom: 10px;
        gap: 20px;
         border: 1px solid black;
        box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
    }

   .choose-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #e0f0ff;
    border-radius: 50%;
    }

    .card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
    }

    .choose-content {
        flex-grow: 1;
    }

    .choose-title {
        font-size: 1.3rem;
        color: #343a40;
        margin-bottom: 10px;
        font-weight: 600;
    }

    .choose-description {
        font-size: 0.95rem;
        color: #6c757d;
        line-height: 1.6;
    }

    .cta-section {
        background: linear-gradient(rgb(45 37 255 / 60%), rgb(0 255 227 / 60%)), url('https://images.unsplash.com/photo-1557804506-669e00171d7f?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3MzkyNDZ8MHwxfHNlYXJjaHwxNXx8c2VvJTIwYmFja2dyb3VuZCUyMGJsdWV8ZW58MHx8fHwxNzE5MjUyOTY2fDA&ixlib=rb-4.1.0&q=80&w=1080') no-repeat center center/cover;
        color: #fff;
        padding: 100px 0;
        text-align: center;
        border-radius: 15px;
        margin: 80px auto;
        max-width: 1200px;
        position: relative;
        overflow: hidden; /* For any internal absolute positioning */
    }
/* Scan Results Section */
#scan-results {
    display: none;
    margin-top: var(--spacing-lg);
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

#scan-results.active {
    display: block;
    opacity: 1;
}

.results-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--light);
}

.scan-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--medium);
}

.score-section {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.score-circle {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--light);
    box-shadow: inset 0 0 0 15px rgba(0, 0, 0, 0.1);
}

.score-circle.good {
    box-shadow: inset 0 0 0 15px var(--success);
}

.score-circle.medium {
    box-shadow: inset 0 0 0 15px var(--warning);
}

.score-circle.poor {
    box-shadow: inset 0 0 0 15px var(--error);
}

.score-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark);
}

.score-label {
    font-size: 0.875rem;
    color: var(--medium);
}

.metrics-section, .suggestions-section {
    margin-bottom: var(--spacing-lg);
}

.metrics-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    list-style: none;
}

.metric-item {
    background-color: var(--light);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-sm);
}

.metric-name {
    font-weight: 600;
    color: var(--dark);
    margin-right: var(--spacing-sm);
}

.suggestions-list {
    list-style-position: inside;
    margin-left: var(--spacing-md);
}

.suggestions-list li {
    margin-bottom: var(--spacing-sm);
}

.actions-section {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}
/* General container for consistent spacing */
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* Enhancements for existing elements */
    #scanning-container, #analysis-view {
        background-color: #ffffff;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        padding: 40px;
        margin-top: 30px;
    }
/* CTA Section */
.cta-section {
    background: linear-gradient(rgb(45 37 255 / 60%), rgb(0 255 227 / 60%)), url('https://images.unsplash.com/photo-1557804506-669e00171d7f?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3MzkyNDZ8MHwxfHNlYXJjaHwxNXx8c2VvJTIwYmFja2dyb3VuZCUyMGJsdWV8ZW58MHx8fHwxNzE5MjUyOTY2fDA&ixlib=rb-4.1.0&q=80&w=1080') no-repeat center center/cover;
    color: #fff;
    padding: 100px 0;
    text-align: center;
    border-radius: 15px;
    margin: 80px auto;
    max-width: 1200px;
    position: relative;
    overflow: hidden; /* For any internal absolute positioning */
}

.cta-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-cta {
    display: inline-block; /* Ensure button is visible */
    background-color: #f8f9fa; /* Off-white background for contrast */
    color: var(--black); /* Dark text for readability */
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    opacity: 1; /* Full visibility by default */
    z-index: 1; /* Prevent overlap */
    font-weight: 600; /* Bold text for emphasis */
}
.btn-outline {
    display: inline-block; /* Ensure button is visible */
    background-color: var(--white); /* White background for contrast */
    color: var(--black); /* Dark text for readability */
    border: 2px solid var(--primary); /* Blue border for style */
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    opacity: 1; /* Full visibility by default */
    z-index: 1; /* Prevent overlap */
    font-weight: 600; /* Bold text for emphasis */
}
.btn-cta:hover {
    background-color: var(--light-gray); /* Light gray on hover */
    color: var(--black); /* Maintain dark text */
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .scan-form {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        position: relative;
    }

    .input-button-container {
        display: flex;
        align-items: center;
        width: 100%;
        gap: var(--spacing-sm);
    }

    .url-input-container {
        flex: 1;
        position: relative;
    }

    #scan-button {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-medium);
    height: 48px;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .scan-counter {
        font-size: medium;
        color: var(--dark-gray);
        text-align: left;
        animation: fadeIn 0.5s ease-in-out;
    }

    .testimonial-grid, .features-grid, .choose-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .scan-form-container {
        padding: var(--spacing-md);
    }

    .actions-section {
        flex-direction: column;
    }
}
















/* Website Preview Card Styles */
.website-preview-card {
    margin-top: var(--spacing-md);
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light);
    overflow: hidden;
    transition: all var(--transition-medium);
}

.website-preview-card.hidden {
    display: none;
}

.preview-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background-color: var(--light);
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
}

.preview-card-header h3 {
    margin: 0;
    color: var(--dark);
    font-size: 1.1rem;
}

.toggle-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--primary);
    cursor: pointer;
    transition: transform var(--transition-medium);
}

.toggle-btn.expanded {
    transform: rotate(180deg);
}

.preview-card-content {
    overflow: hidden;
    transition: max-height var(--transition-medium) ease;
}

.preview-card-content.collapsed {
    max-height: 0;
}

.preview-card-content.expanded {
    max-height: 600px; /* Adjust as needed */
}

.iframe-container {
    padding: var(--spacing-md);
    display: flex;
    justify-content: center;
}

#preview-iframe {
    width: 80%;
    height: 500px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius-sm);
    background-color: var(--white);
}

.scrollable-container {
    max-height: 650px; /* Adjust as needed */
    overflow-y: auto;
    padding-right: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
}

.author-image {
    background-color: #3b82f6;
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 10px;
}


/* Why Choose Us Section */
 .why-choose-section {
    background-color: #e9e5ff; /* Light purple background */
    padding: 80px 0;
    text-align: center;
}

.choose-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.choose-item {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    padding: 30px;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 650px;
}

.choose-icon {
    font-size: 2.5rem;
    color: #611bf8;
    background-color: #f3f1ff;
    padding: 15px;
    border-radius: 10px;
    flex-shrink: 0;
}

.choose-content {
    flex-grow: 1;
}

.choose-title {
    font-size: 1.3rem;
    color: #343a40;
    margin-bottom: 10px;
    font-weight: 600;
}

.choose-description {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
}

/* Bigger sticky cards with more content */
.sticky-card {
  position: sticky;
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 255px;
  width: 100%; /* take full width of grid */
}


.sticky-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.choose-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background-color: #007bff;
  color: #fff;
  border-radius: 50%;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  animation-duration: 1.5s;
  animation-iteration-count: infinite;
}

.choose-content {
  flex: 1;
}

.choose-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #222;
}

.choose-description {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
}

/* Animation keyframes (as before) */
.bounce { animation-name: bounceAnim; }
@keyframes bounceAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.pulse { animation-name: pulseAnim; }
@keyframes pulseAnim {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.wiggle { animation-name: wiggleAnim; }
@keyframes wiggleAnim {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(3deg); }
  75% { transform: rotate(-3deg); }
}

.glow { animation-name: glowAnim; }
@keyframes glowAnim {
  0%, 100% { box-shadow: 0 0 0px rgba(255, 255, 0, 0.6); }
  50% { box-shadow: 0 0 12px rgba(255, 255, 0, 0.9); }
}
