/* Custom CSS Improvements for International Man of Business */

/* Blog Read More Functionality */
.blog-content .excerpt {
  display: block;
}

.blog-content .full-content {
  display: none;
}

.blog-content.expanded .excerpt {
  display: none;
}

.blog-content.expanded .full-content {
  display: block;
}

.read-more-btn {
  cursor: pointer;
  text-decoration: none;
  color: var(--accent-color);
  font-weight: 600;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.blog-item {
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-content p {
  flex-grow: 1;
}

/* Enhanced animations and transitions */
.service-item:hover {
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.portfolio-item:hover .portfolio-content {
  transform: scale(1.05);
  transition: all 0.3s ease;
}

/* Improved button styles */
.btn-get-started {
  background: linear-gradient(45deg, var(--accent-color), #5aa3d1);
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-get-started:hover {
  background: linear-gradient(45deg, #5aa3d1, var(--accent-color));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(66, 139, 202, 0.4);
}

/* Enhanced hero section */
.hero .carousel-container h2 {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero .carousel-container p {
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
  font-size: 1.3rem;
  margin-bottom: 30px;
}

/* Improved stats section */
.stats-item {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.stats-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.stats-item i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.purecounter {
  font-size: 3rem;
  font-weight: 700;
  color: var(--heading-color);
  display: block;
  margin: 10px 0;
}

/* Enhanced testimonials */
.testimonial-item {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.testimonial-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--accent-color);
  margin-bottom: 20px;
}

/* Enhanced portfolio section */
.portfolio-content {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.portfolio-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  color: white;
  padding: 20px;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-info {
  transform: translateY(0);
}

/* Enhanced contact form */
.php-email-form {
  background: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.php-email-form input,
.php-email-form textarea {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.php-email-form input:focus,
.php-email-form textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(66, 139, 202, 0.25);
}

.php-email-form button[type="submit"] {
  background: linear-gradient(45deg, var(--accent-color), #5aa3d1);
  border: none;
  padding: 12px 40px;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.php-email-form button[type="submit"]:hover {
  background: linear-gradient(45deg, #5aa3d1, var(--accent-color));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(66, 139, 202, 0.4);
}

/* Enhanced info wrap */
.info-wrap {
  background: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  height: 100%;
}

.info-item {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.info-item:hover {
  background: #e9ecef;
  transform: translateX(10px);
}

.info-item i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-right: 20px;
}

/* Enhanced footer */
.footer {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
}

.footer-newsletter form {
  display: flex;
  border-radius: 50px;
  overflow: hidden;
  background: white;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.footer-newsletter input[type="email"] {
  flex: 1;
  border: none;
  padding: 12px 20px;
  outline: none;
}

.footer-newsletter input[type="submit"] {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 12px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer-newsletter input[type="submit"]:hover {
  background: #357abd;
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
  .hero .carousel-container h2 {
    font-size: 2.5rem;
  }

  .hero .carousel-container p {
    font-size: 1.1rem;
  }

  .stats-item {
    margin-bottom: 30px;
  }

  .testimonial-item {
    margin-bottom: 30px;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #357abd;
}

/* Blog Section Styles */
.blog-item {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.blog-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.blog-img {
  position: relative;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.blog-item:hover .blog-img img {
  transform: scale(1.1);
}

.blog-date {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent-color);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.blog-content {
  padding: 25px;
}

.blog-content h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
  line-height: 1.3;
}

.blog-content h3 a {
  color: var(--heading-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-content h3 a:hover {
  color: var(--accent-color);
}

.blog-meta {
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #666;
}

.blog-meta span {
  margin-right: 15px;
}

.blog-meta .author::before {
  content: "👤 ";
}

.blog-meta .category::before {
  content: "📁 ";
}

.read-more {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: #357abd;
  transform: translateX(5px);
}

/* FAQ Section Styles */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.faq-item h3 {
  font-size: 1.2rem;
  padding: 20px 25px;
  margin: 0;
  cursor: pointer;
  position: relative;
  color: var(--heading-color);
  transition: all 0.3s ease;
}

.faq-item.faq-active h3 {
  color: var(--accent-color);
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.faq-content {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.faq-active .faq-content {
  max-height: 300px;
  padding: 0 25px 25px 25px;
}

.faq-toggle {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.faq-item.faq-active .faq-toggle {
  transform: translateY(-50%) rotate(90deg);
  color: var(--accent-color);
}

/* Pricing Section Styles */
.pricing-item {
  background: #ffffff;
  border-radius: 15px;
  padding: 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.pricing-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.pricing-item.featured {
  border: 3px solid var(--accent-color);
  transform: scale(1.05);
}

.pricing-item.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.featured-badge {
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--accent-color);
  color: white;
  padding: 5px 40px;
  transform: rotate(45deg);
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-header {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  padding: 30px 25px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--heading-color);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
}

.pricing-price .currency {
  font-size: 1.2rem;
  color: var(--accent-color);
  font-weight: 600;
}

.pricing-price .amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
}

.pricing-price .period {
  font-size: 1rem;
  color: #666;
}

.pricing-body {
  padding: 30px 25px;
}

.pricing-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.pricing-body li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

.pricing-body li i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.pricing-body li.na {
  color: #999;
}

.pricing-body li.na i {
  color: #ccc;
}

.pricing-btn {
  text-align: center;
}

.pricing-btn .btn {
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Team Section Styles */
.team-member {
  background: #ffffff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.team-member .pic {
  margin-right: 20px;
  flex-shrink: 0;
}

.team-member .pic img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-color);
}

.member-info h4 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: var(--heading-color);
}

.member-info span {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 15px;
}

.member-info p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.team-member .social {
  display: flex;
  gap: 10px;
}

.team-member .social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.team-member .social a:hover {
  background: #357abd;
  transform: translateY(-2px);
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
  .team-member {
    flex-direction: column;
    text-align: center;
  }

  .team-member .pic {
    margin-right: 0;
    margin-bottom: 20px;
    align-self: center;
  }

  .pricing-item.featured {
    transform: none;
  }

  .pricing-item.featured:hover {
    transform: translateY(-10px);
  }
}

/* Enhanced animations */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), #5aa3d1);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* Enhanced button hover effects */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(66, 139, 202, 0.3);
}

/* Interactive elements enhancement */
.service-item:hover .icon i {
  transform: rotate(360deg);
  transition: transform 0.6s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px) rotateY(5deg);
  transition: all 0.4s ease;
}

/* AdSense Ad Section Styling */
.ad-section {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
  margin: 20px 0;
}

.ad-section.light-background {
  background: #ffffff;
  border-color: #dee2e6;
}

.ad-section ins.adsbygoogle {
  display: block;
  margin: 20px auto;
  max-width: 100%;
  background: transparent;
}

/* Ad container styling for better integration */
.ad-section .container {
  padding: 20px 15px;
}

.ad-section .row {
  align-items: center;
}

/* Responsive ad adjustments */
@media (max-width: 768px) {
  .ad-section {
    margin: 15px 0;
    padding: 15px 0;
  }

  .ad-section .container {
    padding: 10px 5px;
  }
}

/* Content quality improvements for AdSense */
.content {
  line-height: 1.8;
  font-size: 16px;
  color: #333;
}

.content h2 {
  color: var(--heading-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.content h3 {
  color: var(--heading-color);
  margin-top: 25px;
  margin-bottom: 12px;
  font-weight: 500;
}

.content p {
  margin-bottom: 20px;
  text-align: justify;
}

.content ul {
  margin-bottom: 20px;
  padding-left: 25px;
}

.content li {
  margin-bottom: 8px;
}

.content a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}

.content a:hover {
  text-decoration: underline;
}
