body {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

p,
a,
button {
  font-family: "Poppins", sans-serif !important;
  font-weight: 400;
  font-style: normal;
}

span {
  font-family: "Poppins SemiBold", sans-serif;
  font-weight: 600;
  font-style: normal;
}

h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins Bold", sans-serif;
  font-weight: 700;
  font-style: normal;
}

h3.font-medium {
  font-family: "Poppins Medium", sans-serif;
  font-weight: 500 !important;
  font-style: normal;
}

.hero-img {
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.09);
  position: absolute;
  width: 190px;
  z-index: 2;
  border: 4px solid #F5F5F5;
  animation: float 6s ease-in-out infinite;
}

.img1 { 
  top: 32px; 
  left: 0px; 
  transform: rotate(5deg);
  animation-delay: 0s;
}

.img2 { 
  top: 164px; 
  left: 284px; 
  transform: rotate(-5deg);
  animation: float2 6s ease-in-out infinite;
  animation-delay: 2s;
}

/* Hero Micro Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(5deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

@keyframes float2 {
  0%, 100% {
    transform: translateY(0px) rotate(-5deg);
  }
  50% {
    transform: translateY(-10px) rotate(-5deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Hero Animation Classes */
.hero-title {
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-button {
  animation: fadeInUp 0.8s ease-out 0.6s both;
  transition: all 0.3s ease;
}

.hero-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 203, 5, 0.3);
}

.hero-images {
  animation: fadeInRight 1s ease-out 0.8s both;
}

/* Yellow shape animation */
.hero-yellow-shape {
  animation: pulse 4s ease-in-out infinite;
}

/* Mobile image animations */
.mobile-hero-img {
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.mobile-hero-img:nth-child(1) {
  animation-delay: 0.8s;
}

.mobile-hero-img:nth-child(2) {
  animation-delay: 1s;
}

/* Shimmer effect for CTA button */
.hero-button {
  background: linear-gradient(90deg, #FEE102, #FFDB57, #FEE102);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.mobile-nav { display: none; }
.mobile-nav.open { display: block; animation: fadeIn 0.2s;}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1; } }

a.learn-more {
  width: 150px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border-radius: 10px;
}

/* Services Grid Styles */
.services-grid {
  width: 100%;
}

.services-row-1 {
  margin-bottom: 2rem;
}

.services-row-2 {
  margin-top: 0;
}

.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Service card text hover effect */
.service-card h3 {
  font-size: 1.5rem; /* Make h3 bigger */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-card p {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding-left: 1.5rem;
  padding-right: 3rem;
  font-size: large;
  line-height: 1.4;
}

/* .service-card:hover h3 {
  opacity: 0;
  transform: translateY(-10px);
} */

.service-card:hover p {
  opacity: 1;
  transform: translateY(0);
}

.service-card-image {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover .service-card-image {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.service-card-image-large {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 220px;
  height: 160px;
  border-radius: 16px;
  z-index: 2;
}

.service-card:hover .service-card-image-large {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-card:hover .bg-design-icon svg {
  opacity: 0.4;
  transform: scale(1.3);
}

.service-card .hovering-image {
  bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  right: 30px;
  width: 240px;
  height: 180px;
}

.bg-design-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 220px;
  height: 160px;
  z-index: 1;
  overflow: hidden;
}

.bg-design-icon svg {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  transform: scale(1.2);
}

.service-card .max-width {
  max-width: 65%;
}

/* Mobile Service Card Styles */
@media (max-width: 768px) {
  .services-row-1 {
    margin-bottom: 1.5rem;
  }
  
  .services-row-2 {
    grid-template-columns: 1fr;
  }
  
  .hero-img {
    animation: none; /* Disable floating on mobile for better performance */
  }

  .service-card .max-width {
    max-width: 100%;
  }
  
  .service-card h3 {
    font-size: 1.25rem; /* Slightly smaller on mobile */
  }
  
  /* New mobile service card styles */
  .service-card-wrapper {
    position: relative;
  }
  
  .service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .service-card.active {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
  
  .service-description {
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-radius: 1.5rem;
    z-index: 10;
  }
  
  .service-description p {
    margin: 0;
    line-height: 1.4;
    font-size: 1rem;
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    display: block !important;
    padding: 0 !important;
    text-align: left;
  }
  
  .service-description.show {
    opacity: 1;
  }
  
  /* Override desktop hover on mobile */
  .service-card:hover .service-description {
    opacity: 0 !important;
  }
  
  .service-card.active .service-description {
    opacity: 1 !important;
  }
  
  /* Hide icon on first row cards when active */
  .services-row-1 .service-card.active .absolute.top-6.right-6 {
    opacity: 0 !important;
    transition: opacity 0.3s ease;
  }

  .dot-item{
    background-color: #888888;
    transition: color 0.3s ease, background-color 0.3s ease;
  }

  .dot-item.active{
    background-color: rgb(205, 205, 205);
  }
}

/* Desktop hover effects remain unchanged */
@media (min-width: 769px) {
  .service-card:hover .service-description {
    opacity: 1;
  }
}

/* FAQ Section Micro Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    max-height: 200px;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    max-height: 200px;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 203, 5, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 203, 5, 0.6);
  }
}

/* FAQ Item Animations */
.faq-item {
  animation: fadeInUp 0.6s ease-out;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }

.faq-question {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  outline: none;
}

.faq-question::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 203, 5, 0.1), transparent);
  transition: left 0.5s ease;
}

.faq-question:hover::before {
  left: 100%;
}

.faq-question:hover {
  box-shadow: 0 8px 25px rgba(30, 74, 138, 0.3);
}

.faq-answer {
  transition: all 0.3s ease;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position:relative;
  top: -10px;
}

.faq-answer.show {
  animation: slideDown 0.3s ease-out forwards;
}

.faq-answer.hide {
  animation: slideUp 0.3s ease-out forwards;
}

.faq-icon {
  transition: all 0.3s ease;
  display: inline-block;
}

.faq-question:hover .faq-icon {
  animation: bounce 0.6s ease;
}

/* FAQ Section Title Animation */
.faq-item:first-child {
  animation: fadeInLeft 0.8s ease-out 0.5s both;
}

/* Buy Template Button Animation */
.faq-item:first-child a {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.faq-item:first-child a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.faq-item:first-child a:hover::before {
  left: 100%;
}

.faq-item:first-child a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 203, 5, 0.4);
  animation: glow 2s ease-in-out infinite;
}

/* FAQ Section Background Animation */
.faq-item:first-child {
  position: relative;
}

.faq-item:first-child::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 203, 5, 0.05) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
  pointer-events: none;
}

/* Back to Top Button Animation */
@keyframes floatUp {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes arrowBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-2px);
  }
  60% {
    transform: translateY(-1px);
  }
}

@keyframes titleGlow {
  0%, 100% {
    text-shadow: 0 0 5px rgba(255, 203, 5, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 203, 5, 0.8), 0 0 30px rgba(255, 203, 5, 0.4);
  }
}

@keyframes titleSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleHighlightPulse {
  0%, 100% {
    transform: scale(1);
    background-color: #FFDB57;
  }
  50% {
    transform: scale(1.02);
    background-color: #FEE102;
  }
}

/* Back to Top Button */
.back-to-top {
  animation: floatUp 2s ease-in-out infinite;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.back-to-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 203, 5, 0.2), transparent);
  transition: left 0.5s ease;
}

.back-to-top:hover::before {
  left: 100%;
}

.back-to-top:hover {
  transform: translateY(-5px);
  color: #FEE102 !important;
  animation: none;
}

.back-to-top:hover span {
  animation: arrowBounce 0.6s ease;
}

/* Section Title Animations */
.section-title {
  animation: titleSlideIn 0.8s ease-out;
}

.section-title-highlight {
  animation: titleGlow 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

.section-title-highlight:hover {
  transform: scale(1.05);
  animation: titleGlow 1s ease-in-out infinite;
}

/* Portfolio Section Title */
.portfolio-title {
  animation: titleSlideIn 0.8s ease-out 0.2s both;
}

.portfolio-title-highlight {
  animation: titleGlow 3s ease-in-out infinite 0.5s;
  transition: all 0.3s ease;
}

.portfolio-title-highlight:hover {
  transform: scale(1.05);
  animation: titleGlow 1s ease-in-out infinite;
}

/* Why Choose Us Section Title */
.why-choose-title {
  animation: titleSlideIn 0.8s ease-out 0.4s both;
  opacity: 0;
  animation-fill-mode: forwards;
}

.why-choose-title-highlight {
  animation: titleHighlightPulse 2s ease-in-out infinite 0.7s, titleGlow 3s ease-in-out infinite 0.7s;
  transition: all 0.3s ease;
  display: inline-block;
}

.why-choose-title-highlight:hover {
  transform: scale(1.05);
  animation: titleHighlightPulse 1s ease-in-out infinite, titleGlow 1s ease-in-out infinite;
}

/* Scroll-triggered Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations for multiple elements */
.animate-on-scroll.stagger-1 { transition-delay: 0.1s; }
.animate-on-scroll.stagger-2 { transition-delay: 0.2s; }
.animate-on-scroll.stagger-3 { transition-delay: 0.3s; }
.animate-on-scroll.stagger-4 { transition-delay: 0.4s; }
.animate-on-scroll.stagger-5 { transition-delay: 0.5s; }
.animate-on-scroll.stagger-6 { transition-delay: 0.6s; }

/* Slide in from left */
.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}

.slide-in-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* Slide in from right */
.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}

.slide-in-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* Scale in */
.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s ease-out;
}

.scale-in.animate-in {
  opacity: 1;
  transform: scale(1);
}

/* Fade in */
.fade-in {
  opacity: 0;
  transition: all 0.8s ease-out;
}

.fade-in.animate-in {
  opacity: 1;
}

/* CTA Section Text Capitalization */
.cta-heading {
  text-transform: uppercase;
}

/* CTA Button Styling - Matching Hero Button */
.cta-button {
  background: linear-gradient(90deg, #FEE102, #FFDB57, #FEE102);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 203, 5, 0.3);
  background: linear-gradient(90deg, #FFDB57, #FEE102, #FFDB57);
}

/* Portfolio Carousel Styles */
.portfolio-carousel-container {
  overflow: hidden;
}

.portfolio-carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.portfolio-slide {
  flex-shrink: 0;
}

/* Navigation Buttons */
.portfolio-nav-btn {
  opacity: 0.8;
  transition: all 0.3s ease;
}

.portfolio-nav-btn:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.portfolio-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* Dots Navigation */
.portfolio-dot {
  cursor: pointer;
  transition: all 0.3s ease;
}

.portfolio-dot:hover {
  opacity: 0.7;
}

.portfolio-dot.active {
  opacity: 1;
  background-color: #FEE102;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .portfolio-slide {
    width: 100%;
  }
  
  .portfolio-nav-btn {
    padding: 0.5rem;
  }
  
  .portfolio-nav-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* Auto Hover Animation for Past Clients Logos */
.group img.auto-hover {
  filter: grayscale(0) !important;
  transform: scale(1.1) !important;
  transition: all 0.3s ease !important;
}

.group img.auto-hover {
  opacity: 1 !important;
}