/* Import base styles from global.css */
@import url('global.css');

/* ========================================
   HOME PAGE SPECIFIC STYLES
   ======================================== */

/* Hero Section Enhancements */
.hero-section {
    position: relative;
    padding: 5rem 1.5rem;
    background: linear-gradient(to bottom right, var(--blue-50), white, var(--blue-100));
  }
  
  .hero-section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
  }
  
  @media (min-width: 1024px) {
    .hero-section-background {
      height: 50%;
    }
  }
  
  .hero-section-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  @media (min-width: 1024px) {
    .hero-section {
      padding: 6rem 1.5rem;
    }
  }

/* Scoped tweaks for contact modal only */
.contact-modal .form-container {
  background: transparent;
  backdrop-filter: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.contact-modal .contact-details {
  margin-bottom: 1rem;
}

.contact-modal .form-row {
  display: grid;
  grid-template-columns: 1fr; /* stack fields vertically */
  gap: 1rem;
}

.contact-modal .form-submit {
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .contact-modal .form-row {
    grid-template-columns: 1fr; /* keep stacked on small/medium to stay compact */
  }
}
  
  .hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
  }
  
  @media (min-width: 1024px) {
    .hero-grid {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  .hero-title {
    font-family: var(--font-inter);
    font-weight: 800;
    font-size: 3rem;
    color: var(--slate-800);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  @media (min-width: 1024px) {
    .hero-title {
      font-size: 3.75rem;
      line-height: 1.05;
    }
  }
  
  .hero-description {
    font-family: var(--font-inter);
    font-size: 1.25rem;
    color: var(--slate-600);
    margin-bottom: 2rem;
    line-height: 1.65;
    font-weight: 400;
    opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  @media (min-width: 640px) {
    .hero-buttons {
      flex-direction: row;
    }
  }
  
  .hero-image-container {
    display: flex;
    justify-content: center;
  }
  
  @media (min-width: 1024px) {
    .hero-image-container {
      justify-content: flex-end;
    }
  }
  
  .hero-image-card {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--blue-200);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 28rem;
    width: 100%;
  }
  
  .hero-image-wrapper {
    aspect-ratio: 16 / 9;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
  }
  
  .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .hero-image-caption {
    font-family: var(--font-dm-sans);
    font-size: 0.875rem;
    color: var(--slate-500);
    text-align: center;
    font-weight: 500;
  }

  /* Hero animated states */
.hero-title.animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  
  .hero-description.animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  
  .hero-buttons.animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  
  .hero-image-card.animate {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
  }

/* Problems We Solve Section */
.problems-section {
    padding: 5rem 1.5rem;
    background-color: white;
}

.section-subtitle {
    font-family: var(--font-inter);
    font-size: 1.25rem;
    color: var(--slate-600);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-weight: 400;
}

.section-cta {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.problems-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .problems-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.problem-card {
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid var(--blue-200);
    border-radius: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-align: center;
}

@media (min-width: 1024px) {
    .problem-card {
        padding: 2rem 1.75rem;
    }
}

.problem-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}

.problem-icon {
    width: 3rem;
    height: 3rem;
    color: var(--blue-600);
    margin: 0 auto 1.5rem;
}

.problem-hero {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--slate-800);
    margin-bottom: 1rem;
    line-height: 1.3;
}

@media (min-width: 1024px) {
    .problem-hero {
        font-size: 1.375rem;
    }
}

.problem-subline {
    font-family: var(--font-inter);
    font-size: 0.875rem;
    color: var(--slate-600);
    margin-bottom: 1rem;
    line-height: 1.6;
}

@media (min-width: 1024px) {
    .problem-subline {
        font-size: 0.9375rem;
    }
}

.problem-description {
    font-family: var(--font-inter);
    font-size: 0.875rem;
    color: var(--blue-600);
    font-weight: 600;
    margin: 0;
    padding: 0.5rem 1rem;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 0.5rem;
    display: inline-block;
}

/* Features Strip */
.features-strip {
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.3), rgba(219, 234, 254, 0.4));
    border-top: 1px solid rgba(191, 219, 254, 0.5);
    border-bottom: 1px solid rgba(191, 219, 254, 0.5);
}

.features-strip-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .features-strip-content {
        gap: 2rem;
    }
}

.features-strip .feature-item {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 1rem;
    color: var(--slate-700);
    white-space: nowrap;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
    transition: none;
}

@media (min-width: 768px) {
    .features-strip .feature-item {
        font-size: 1.125rem;
    }
}

.feature-separator {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--blue-600);
    display: none;
}

@media (min-width: 768px) {
    .feature-separator {
        display: inline;
    }
}

/* Trust Signal Section */
.trust-section {
    padding: 3rem 1.5rem;
    background: linear-gradient(to bottom right, rgba(239, 246, 255, 0.3), white);
}

.trust-signal {
    font-family: var(--font-inter);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--slate-600);
    margin: 0;
    text-align: center;
}

/* Animation enhancements for problem cards */
.problem-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
}

.problem-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design for Mobile */
@media (max-width: 640px) {
    .problems-section {
        padding: 3rem 1rem;
    }
    
    .problem-card {
        padding: 1.5rem;
    }
    
    .problem-hero {
        font-size: 1.25rem;
    }
    
    .features-strip {
        padding: 1.5rem 1rem;
    }
    
    .features-strip-content {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .feature-separator {
        display: none !important;
    }
    
    .trust-section {
        padding: 2rem 1rem;
    }
    
    .trust-signal {
        font-size: 1.125rem;
    }
}

/* Enhanced focus states for accessibility */
.problem-card:focus-within {
    outline: 2px solid var(--blue-600);
    outline-offset: 2px;
}

/* Solutions Container - Alternating Layout */
.solutions-container {
    padding: 3rem 1.5rem;
    background-color: white;
}

.solution-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--slate-200);
}

.solution-section:last-child {
    border-bottom: none;
}

.solution-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .solution-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.solution-content {
    max-width: none;
}

.solution-title {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 2.25rem;
    color: var(--slate-800);
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 1024px) {
    .solution-title {
        font-size: 2.5rem;
    }
}

.solution-description {
    font-family: var(--font-inter);
    font-size: 1.25rem;
    color: var(--slate-600);
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Contact Details Styles */
.contact-details {
    display: grid;
    gap: 1.5rem;
    text-align: center;
  }
  
  .contact-item {
    padding: 1rem;
    background-color: rgba(239, 246, 255, 0.3);
    border-radius: 0.5rem;
    border: 1px solid var(--blue-200);
    text-align: left;
  }
  
  .contact-item-title {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--blue-600);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .contact-item-value {
    font-family: var(--font-inter);
    font-size: 1rem;
    color: var(--slate-800);
    margin: 0;
    line-height: 1.5;
  }

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid var(--blue-200);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.feature-title {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--slate-800);
    margin: 0;
    line-height: 1.4;
}

.feature-badge {
    font-family: var(--font-inter);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--blue-600);
    background-color: rgba(37, 99, 235, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.feature-description {
    font-family: var(--font-inter);
    font-size: 0.875rem;
    color: var(--slate-600);
    line-height: 1.6;
    margin: 0;
}

/* Solution Images */
.solution-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.solution-img {
    width: 100%;
    height: auto;
    min-height: 300px;
    max-height: 500px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--slate-200);
    transition: transform 0.3s ease;
}

.solution-img:hover {
    transform: scale(1.02);
}

/* Animation Styles */
.solution-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.solution-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-item.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design for Solutions */
@media (max-width: 640px) {
    .solutions-container {
        padding: 2rem 1rem;
    }
    
    .solution-section {
        padding: 3rem 0;
    }
    
    .solution-title {
        font-size: 2rem;
    }
    
    .solution-description {
        font-size: 1.125rem;
    }
    
    .feature-item {
        padding: 1.25rem;
    }
    
    .feature-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .feature-badge {
        align-self: flex-start;
    }
    
    .solution-img {
        min-height: 200px;
        max-height: 300px;
    }
}

/* Focus states for accessibility */
.feature-item:focus-within {
    outline: 2px solid var(--blue-600);
    outline-offset: 2px;
}

/* AI Features Section - Special Layout */
.ai-features-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--slate-200);
}

.ai-features-container {
    max-width: none;
}

.ai-features-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ai-features-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .ai-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .ai-features-grid {
        gap: 3rem;
        max-width: 1000px;
        margin: 0 auto;
    }
}

/* AI Features specific styling */
.ai-features-section .feature-item {
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid var(--blue-200);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-align: left;
}

.ai-features-section .feature-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.ai-features-section .feature-header {
    margin-bottom: 1rem;
}

.ai-features-section .feature-title {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--slate-800);
    margin: 0;
    line-height: 1.4;
}

.ai-features-section .feature-description {
    font-family: var(--font-inter);
    font-size: 0.9375rem;
    color: var(--slate-600);
    line-height: 1.6;
    margin: 0;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.3), rgba(219, 234, 254, 0.4));
    color: var(--slate-800);
    padding: 0;
    border-top: 1px solid var(--blue-200);
}

.footer-main {
    padding: 4rem 1.5rem 3rem;
}

.footer-grid {
    display: grid;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 4rem;
    }
}

/* Footer CTA Section */
.footer-cta-section {
    max-width: none;
}

.footer-title {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--slate-800);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

@media (min-width: 1024px) {
    .footer-title {
        font-size: 3rem;
    }
}

.footer-subtitle {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--blue-600);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.footer-description {
    font-family: var(--font-inter);
    font-size: 1.125rem;
    color: var(--slate-600);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 32rem;
}

.footer-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .footer-buttons {
        flex-direction: row;
        gap: 1.5rem;
    }
}

/* Footer Benefits */
.footer-benefits {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--blue-200);
    border-radius: 1.5rem;
    padding: 2rem;
}

.footer-section-title {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--slate-800);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-family: var(--font-inter);
    font-size: 0.875rem;
    color: var(--slate-600);
    line-height: 1.5;
}

.benefit-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--blue-600);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--blue-200);
    padding: 2rem 1.5rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-copyright {
    font-family: var(--font-inter);
    font-size: 0.875rem;
    color: var(--slate-600);
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 640px) {
    .footer-main {
        padding: 3rem 1rem 2rem;
    }
    
    .footer-title {
        font-size: 2rem;
    }
    
    .footer-subtitle {
        font-size: 1.25rem;
    }
    
    .footer-description {
        font-size: 1rem;
    }
    
    .footer-benefits {
        padding: 1.5rem;
    }
    
    .footer-section-title {
        font-size: 1.25rem;
    }
    
    .footer-bottom {
        padding: 1.5rem 1rem;
    }
}

/* Hero Collage Styles */
.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-collage {
    position: relative;
    width: 100%;
    max-width: 32rem;
    height: 24rem;
    padding: 1rem;
}

.collage-main {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 75%;
    height: 90%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 1;
}

.collage-item {
    position: absolute;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    width: 65%;
    height: 48%;
}

.collage-item-top {
    top: 1.5rem;
    right: 0.5rem;
    transform: rotate(-3deg);
    z-index: 2;
}

.collage-item-bottom {
    bottom: 0.5rem;
    right: 1.5rem;
    transform: rotate(3deg);
    z-index: 3;
}

.collage-image {
    width: 100%;
    height: 100%;
}

.collage-image-main {
    height: 100%;
    min-height: 31rem;
    object-fit: cover;
}

.collage-image-small {
    height: 100%;
    min-height: 10rem;
    object-fit: fill;
}

/* Responsive collage */
@media (max-width: 768px) {
    .hero-collage {
        height: 20rem;
        max-width: 28rem;
    }
    
    .collage-main {
        width: 75%;
        height: 85%;
    }
    
    .collage-item {
        width: 45%;
        height: 35%;
    }
    
    .collage-item-top {
        top: 1.5rem;
        right: 0.5rem;
    }
    
    .collage-item-bottom {
        bottom: 0.5rem;
        right: 1.5rem;
    }
}

@media (max-width: 640px) {
    .hero-collage {
        height: 18rem;
    }
    
    .collage-main {
        width: 80%;
        height: 80%;
        top: 0.5rem;
        left: 0.5rem;
    }
    
    .collage-item {
        width: 40%;
        height: 30%;
    }
    
    .collage-item-top {
        top: 1rem;
        right: 0.5rem;
        transform: rotate(-2deg);
    }
    
    .collage-item-bottom {
        bottom: 0.5rem;
        right: 1rem;
        transform: rotate(2deg);
    }
}

/* Print styles */
@media print {
    .features-strip,
    .trust-section {
        padding: 1rem 0;
    }
    
    .problem-card {
        border: 1px solid #000;
        box-shadow: none;
        background: white !important;
    }
    
    .hero-collage {
        display: block;
        height: auto;
    }
    
    .collage-main,
    .collage-item {
        position: static !important;
        margin-bottom: 1rem;
        transform: none !important;
        box-shadow: none !important;
        animation: none !important;
        width: 100% !important;
        height: auto !important;
    }
}
