/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.8;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Colors */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --dark-bg: #2c3e50;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--primary-color);
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}
h3 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
}

/* Navigation */
.navbar {
  background-color: white;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)),
    url("https://i.ytimg.com/vi/qHcb-41Cpoc/maxresdefault.jpg?sqp=-oaymwEmCIAKENAF8quKqQMa8AEB-AH-CYAC0AWKAgwIABABGF8gZSg4MA8=&rs=AOn4CLBlwxDZhuyxzClipb1QbjKvb5dvNw");
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  padding-top: 60px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: white;
  animation: fadeInUp 0.8s ease-out;
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.btn {
  display: inline-block;
  padding: 12px 35px;
  background-color: var(--secondary-color);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  margin: 0 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid white;
  box-shadow: none;
}

.btn-secondary:hover {
  background-color: white;
  color: var(--primary-color);
}

/* Services Section */
.services {
  padding: 8rem 0;
  background-color: white;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

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

.service-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  background-color: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.service-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.service-card p {
  color: #666;
  margin-bottom: 1.5rem;
}

.service-card .read-more {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* About Page */
.about-section {
  padding: 8rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.about-text .highlight {
  color: var(--secondary-color);
  font-weight: 600;
}

.stats-section {
  background-color: var(--dark-bg);
  color: white;
  padding: 4rem 0;
  margin-top: 4rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Contact Page */
.contact-section {
  padding: 8rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form {
  background: white;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--secondary-color);
  outline: none;
}

textarea.form-control {
  height: 150px;
  resize: vertical;
}

.submit-btn {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-btn:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

/* Posts Page */
.posts-section {
  padding: 8rem 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.post-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.post-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.post-content {
  padding: 2rem;
}

.post-category {
  background-color: var(--secondary-color);
  color: white;
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.post-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.post-date {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.read-more {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Footer */
.footer {
  background-color: var(--dark-bg);
  color: white;
  padding: 5rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-column h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.footer-column p {
  opacity: 0.8;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column ul li a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-column ul li a:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 0.5rem 0;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .contact-form {
    padding: 1.5rem;
  }

  .footer-content {
    text-align: center;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  h3 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 10px 25px;
    margin: 5px;
  }
}

/* Testimonial Author Image Styles */
.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
  border: 2px solid var(--light-bg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.testimonial-author:hover img {
  transform: scale(1.05);
}

/* Testimonial Author Container */
.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.testimonial-author div {
  display: flex;
  flex-direction: column;
}

.testimonial-author strong {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

.testimonial-author p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

/* Add loading state for images */
.testimonial-author img {
  background-color: var(--light-bg);
}

/* Fix broken images */
.testimonial-author img:before {
  content: attr(alt);
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  position: absolute;
  z-index: 1;
}

/* Blog Post Styles */

/* Post Hero Section */
.post-hero {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  padding: 8rem 0 4rem;
  text-align: center;
}

.post-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.post-category {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.post-hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: white;
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  opacity: 0.9;
  font-size: 0.9rem;
}

.post-meta span::after {
  content: "•";
  margin-left: 1rem;
  margin-right: 1rem;
}

.post-meta span:last-child::after {
  content: none;
}

/* Post Content Section */
.post-content {
  background-color: white;
}

.post-image {
  max-width: 1000px;
  margin: 0 auto 3rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.post-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

/* Post Typography */
.post-text h2 {
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.post-text h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: var(--secondary-color);
}

.post-text p {
  margin-bottom: 1.5rem;
}

.post-text ul,
.post-text ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.post-text li {
  margin-bottom: 0.5rem;
}

.post-text blockquote {
  border-left: 4px solid var(--secondary-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #666;
  background-color: var(--light-bg);
  padding: 1rem 1.5rem;
  border-radius: 0 5px 5px 0;
}

/* Special Elements */
.post-text strong {
  color: var(--primary-color);
}

.conclusion {
  background-color: var(--light-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 3rem;
  border-left: 4px solid var(--secondary-color);
}

/* Next/Previous Post Navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e8e8e8;
}

.post-navigation a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 600;
}

.post-navigation a:hover {
  text-decoration: underline;
}

/* Share Buttons */
.share-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e8e8e8;
  text-align: center;
}

.share-section h3 {
  margin-bottom: 1rem;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.share-button {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  color: white;
  transition: transform 0.2s ease;
}

.share-button:hover {
  transform: translateY(-2px);
}

.share-button.twitter {
  background-color: #1da1f2;
}
.share-button.linkedin {
  background-color: #0077b5;
}
.share-button.facebook {
  background-color: #3b5998;
}

/* Author Box */
.author-box {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: 10px;
  margin-top: 4rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.author-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h3 {
  margin-bottom: 0.5rem;
}

.author-info p {
  color: #666;
  margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .post-hero {
    padding: 6rem 0 3rem;
  }

  .post-hero h1 {
    font-size: 2rem;
  }

  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .post-meta span::after {
    content: none;
  }

  .post-content {
    padding: 2rem 0;
  }

  .post-text {
    font-size: 1rem;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
  }

  .author-image {
    margin: 0 auto;
  }

  .share-buttons {
    flex-wrap: wrap;
  }
}

/* Print Styles */
@media print {
  .post-hero {
    background: white;
    color: var(--primary-color);
  }

  .post-category {
    background: none;
    color: var(--primary-color);
  }

  .share-section,
  .post-navigation,
  .author-box {
    display: none;
  }
}

/* Service Card Image Styles */

.service-icon img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
  background-color: var(--light-bg);
  border: 2px solid #f0f0f0;
}

.service-card:hover .service-icon img {
  transform: scale(1.1);
}

/* Service Icon Container */
.service-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-bg);
  border-radius: 50%;
  padding: 10px;
}

/* Alternative styles for non-circular images */
.service-icon.square img {
  border-radius: 10px;
  width: 80px;
  height: 80px;
}

/* Loading state */
.service-icon img:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--light-bg);
  border-radius: 50%;
  z-index: -1;
}

/* Error handling for broken images */
.service-icon img[alt]:after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-bg);
  border-radius: 50%;
  color: #666;
  text-align: center;
  font-size: 0.8rem;
  content: attr(alt);
}

/* Responsive styles */
@media (max-width: 768px) {
  .service-icon {
    width: 80px;
    height: 80px;
  }

  .service-icon img {
    width: 60px;
    height: 60px;
  }
}

