/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

section {
    padding: 80px 20px;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px;
    background: #0046AD; /* primary blue */
    color: #FFFFFF;
}

.carousel .card {
    border: none;
    border-radius: 15px;
    background: #FFFFFF;
}
.carousel .card img {
    max-height: 300px;
    object-fit: contain;
}
.carousel .card h3 {
    color: #2e99f6;
}

@media (max-width: 991px) {
    .hero-section {
        height: auto;
        text-align: center;
        margin-top: 80px;
    }
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.about-image img {
    width: 100%;
    max-width: 450px;
}
.about-text h2 {
    margin-bottom: 30px;
    
}

.about-text {
    flex: 1;
}

/* Fade in for About */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 2s ease-out, transform 2s ease-out;
}
.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Why Us */
.why-us {
    background: #2e99f6; /* dark blue */
    text-align: center;
    color: #FFFFFF;
}
.why-us h2 {
    margin-bottom: 40px;
}
.why-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.why-card {
    background: #FFFFFF;
    color: #2e99f6;
    padding: 30px;
    border-radius: 12px;
    width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}
.why-card i {
    font-size: 40px;
    color: #229127;
    margin-bottom: 15px;
}

/* Services Section */
#services {
    background: #FFFFFF;
}
.services-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.service-card {
    background: #229127;
    color: #FFFFFF;
    width: 300px;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transform: rotateY(90deg); /* start flipped */
    transition: transform 0.8s ease, opacity 0.8s ease;
    backface-visibility: hidden;
}
.service-card i {
    font-size: 40px;
    color: #fff;
    margin-bottom: 15px;
}
.service-card h4 {
    margin-top: 10px;
    font-weight: bold;
}
.service-card p {
    margin-top: 15px;
    font-size: 14px;
}
.service-card.show {
    opacity: 1;
    transform: rotateY(0); /* flip into view */
}

/* Software Intro Section */
.software-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.software-text {
    flex: 1;
    text-align: left;
}
.software-text h2 {
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #229127;
}
.software-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #555555;
}
.software-image {
    flex: 1;
    text-align: center;
}
.software-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}
@media (max-width: 768px) {
    .software-intro {
        flex-direction: column;
        text-align: center;
    }
    .software-text {
        text-align: center;
    }
}

/* Testimonials */
.testimonials {
    background: #f8f9fa;
}
.testimonials h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2e99f6;
}
.testimonial-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.testimonial-card {
    background: #2e99f6;
    padding: 20px;
    border-radius: 12px;
    width: 300px;
    font-style: italic;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.testimonial-card h5 {
    margin-top: 15px;
    font-style: normal;
    color: #FFFFFF;
}

/* CTA Section */
.cta {
    background: #2e99f6;
    color: #FFFFFF;
    text-align: center;
    padding: 60px 20px;
}
.cta h2 {
    margin-bottom: 20px;
}
.cta p {
    margin-bottom: 30px;
}
.btn-primary {
    background: #229127;
    color: #FFFFFF;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s ease;
}
.btn-primary:hover {
    background: #229127;
}

/* Hire Developer Card */
.popup-card {
    background: linear-gradient(135deg, #2e99f6, #2e99f6);
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 20px 40px;
    border-radius: 50px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    text-align: center;
    display: inline-block;
    opacity: 0;
    transform: scale(0.8);
    transition: transform 0.5s ease, opacity 0.5s ease;
}
.popup-card.show {
    opacity: 1;
    transform: scale(1);
}

/* Responsive */
@media (max-width: 768px) {
    .why-cards, .portfolio-items, .testimonial-cards {
        flex-direction: column;
        align-items: center;
    }
    .hero-content h1 {
        font-size: 28px;
    }
}
.mid-cta {
  background: #f9f9f9; /* light background */
}
.mid-cta h2 {
  font-size: 2rem;
  color: #2e99f6; /* navy blue */
}
.mid-cta p {
  font-size: 1.1rem;
  color: #444;
}
.mid-cta-btn {
  display: inline-block;
  background: #229127; /* red */
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.mid-cta-btn:hover {
  background: #2e99f6; /* blue */
  color: #fff;
}
.cta-section {
  background: linear-gradient(135deg, #2e99f6, #1979cd);
  color: #fff;
  border-radius: 12px;
  margin: 50px auto;
  max-width: 1100px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.cta-section h2 {
  font-size: 2rem;
}
.cta-section p {
  font-size: 1.1rem;
  color: #f1f1f1;
}
.cta-btn {
  display: inline-block;
  background: #229127;
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.cta-btn:hover {
  background: #fff;
  color: #2e99f6;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}