/* Global Styles */
:root {
  --primary: #3498db;
  --secondary: #2ecc71;
  --dark: #2c3e50;
  --light: #ecf0f1;
  --accent: #e74c3c;
  --gray: #95a5a6;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
}

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

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background-color: var(--primary);
  bottom: -10px;
  left: 25%;
}

.section-header p {
  color: var(--gray);
  font-size: 18px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
  cursor: pointer;
  border: none;
  font-size: 16px;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

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

.btn-outline {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: 3px solid white;
  font-weight: 700;
  margin-left: 15px;
}

.btn-outline:hover {
  background-color: white;
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
}

/* Header and Navigation */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  padding: 10px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Updated Header Styling */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.logo img {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

header.scrolled .logo img {
  height: 40px;
}

/* Header Contact Info Styling */
.header-contact-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.header-contact-item {
  display: flex;
  align-items: center;
  font-size: 13px;
}

.header-icon {
  width: 15px;
  height: 15px;
  stroke: var(--primary);
  margin-right: 5px;
}

.header-contact-item span,
.header-contact-item a {
  color: var(--dark);
  transition: var(--transition);
  text-decoration: none;
}

.header-contact-item a:hover {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  position: relative;
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  bottom: -5px;
  left: 0;
  transition: var(--transition);
}

.nav-menu a:hover::after, .nav-menu a.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--dark);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 150px 0 100px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-text {
  width: 50%;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-image {
  width: 45%;
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.about-card {
  background-color: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-card-image {
  margin-bottom: 20px;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-card:hover .about-card-image img {
  transform: scale(1.05);
}

.about-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--dark);
  text-align: center;
}

.about-card p {
  color: #666;
  margin-bottom: 10px;
  flex-grow: 1;
  text-align: left;
  line-height: 1.7;
}

.about-card ul {
  text-align: left;
  padding-left: 20px;
  margin-top: 10px;
}

.about-card li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Services Section */
.services {
  background-color: #f9f9f9;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
}

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

/* Service Images Styling */
.service-image {
  margin-bottom: 20px;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--dark);
}

.service-card p {
  color: #666;
  margin-bottom: 15px;
  flex-grow: 1;
}

/* Service Card Button Styling */
.service-card .btn {
  margin-top: 20px;
  width: 100%;
  transition: var(--transition);
}

.service-card .btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.service-card .btn-primary:hover {
  background-color: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(44, 62, 80, 0.3);
}

/* Projects Section */
.project-filter {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  margin: 0 5px 10px;
  background-color: transparent;
  border: 2px solid var(--primary);
  border-radius: 30px;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--primary);
  color: white;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #fff;
}

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

.project-img {
  position: relative;
  overflow: hidden;
  height: 250px; /* Fixed height for image container */
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  position: relative;
  min-height: 150px;
}

.project-info h3 {
  font-size: 20px;
  margin-bottom: 5px;
}

.project-info p {
  color: var(--gray);
  margin-bottom: 40px; /* Added more bottom margin to make space for the link */
}

.project-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  position: absolute;
  bottom: 20px;
  left: 20px;
}

.project-link:hover {
  color: var(--dark);
}

/* Pricing Section */
.pricing {
  background-color: #f9f9f9;
}

.pricing-table-container {
  overflow-x: auto;
  margin-bottom: 60px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  overflow: hidden;
}

.pricing-table th, 
.pricing-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.pricing-table th {
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 18px;
}

.pricing-table tr:hover {
  background-color: rgba(52, 152, 219, 0.05);
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table td:first-child {
  font-weight: 600;
  color: var(--dark);
}

.pricing-table td:last-child {
  font-weight: 600;
  color: var(--primary);
}

.custom-package {
  text-align: center;
  margin-top: 60px;
}

.custom-package h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.custom-package p {
  color: var(--gray);
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.custom-package .btn-outline {
  background-color: rgba(52, 152, 219, 0.1);
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 600;
}

.custom-package .btn-outline:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Media queries for responsive table */
@media screen and (max-width: 768px) {
  .pricing-table th, 
  .pricing-table td {
    padding: 10px 15px;
  }
  
  .pricing-table th {
    font-size: 16px;
  }
}

@media screen and (max-width: 576px) {
  .pricing-table th, 
  .pricing-table td {
    padding: 8px 10px;
    font-size: 14px;
  }
  
  .pricing-table th {
    font-size: 15px;
  }
}

/* Contact Section */
.contact-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact-info {
  width: 40%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

/* Contact Icons Styling */
.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  transition: var(--transition);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

.contact-icon:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.contact-text h3 {
  font-size: 20px;
  margin-bottom: 5px;
}

.contact-text p {
  color: var(--gray);
}

/* Contact image styling */
.contact-image {
  margin-top: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.contact-image img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.contact-image:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-image:hover img {
  transform: scale(1.03);
}

.contact-form {
  width: 55%;
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  outline: none;
  font-size: 16px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

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

/* Required field indicator */
.required-field {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 70px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.footer-logo {
  width: 30%;
}

.footer-logo p {
  color: #bbb;
  margin-top: 15px;
}

.footer-links,
.footer-services,
.footer-social {
  width: 20%;
}

.footer-links h3,
.footer-services h3,
.footer-social h3 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-social h3::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
  bottom: 0;
  left: 0;
}

.footer-links ul,
.footer-services ul {
  list-style: none;
}

.footer-links li,
.footer-services li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
  color: #bbb;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover,
.footer-services a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  font-size: 14px;
  font-weight: bold;
}

.social-icon:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

/* Other Links Section */
.other-links-section {
  margin: 30px 0;
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.other-links-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  display: inline-block;
}

.other-links-section h3::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.other-links-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.other-links-container a {
  color: #bbb;
  text-decoration: none;
  transition: var(--transition);
  padding: 5px 10px;
}

.other-links-container a:hover {
  color: var(--primary);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
}

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

.footer-bottom p {
  color: #bbb;
  font-size: 14px;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
  .header-contact-info {
      flex-direction: column;
      gap: 5px;
  }
}

@media screen and (max-width: 992px) {
  .header-contact-info {
      display: none;
  }
  
  .header-left {
      justify-content: flex-start;
  }
  
  .hero-content {
      flex-direction: column;
  }
  
  .hero-text,
  .hero-image {
      width: 100%;
  }
  
  .hero-image {
      margin-top: 40px;
  }
  
  .services-grid,
  .about-cards-grid {
      grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-info,
  .contact-form {
      width: 100%;
  }
  
  .contact-info {
      margin-bottom: 40px;
  }
  
  .contact-image {
    max-width: 450px;
    margin-top: 30px;
  }
  
  .footer-logo,
  .footer-links,
  .footer-services,
  .footer-social {
      width: 48%;
      margin-bottom: 30px;
  }
}

@media screen and (max-width: 768px) {
  .nav-menu {
      position: fixed;
      left: -100%;
      top: 80px;
      flex-direction: column;
      background-color: white;
      width: 100%;
      text-align: center;
      transition: 0.3s;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
      padding: 20px 0;
  }
  
  .nav-menu.active {
      left: 0;
  }
  
  .nav-menu li {
      margin: 15px 0;
  }
  
  .mobile-toggle {
      display: block;
  }
  
  .mobile-toggle.active .bar:nth-child(2) {
      opacity: 0;
  }
  
  .mobile-toggle.active .bar:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
  }
  
  .mobile-toggle.active .bar:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
  }
  
  .services-grid,
  .about-cards-grid {
      grid-template-columns: 1fr;
  }
  
  .project-grid {
      grid-template-columns: 1fr;
  }
  
  .pricing-grid {
      grid-template-columns: 1fr;
  }
  
  .pricing-card.featured {
      transform: scale(1);
  }
  
  .pricing-card.featured:hover {
      transform: translateY(-10px);
  }
  
  .footer-logo,
  .footer-links,
  .footer-services,
  .footer-social {
      width: 100%;
      margin-bottom: 30px;
  }
  
  .other-links-container {
      flex-direction: column;
      gap: 10px;
  }
}

@media screen and (max-width: 576px) {
  .section {
      padding: 70px 0;
  }
  
  .section-header h2 {
      font-size: 28px;
  }
  
  .hero h1 {
      font-size: 36px;
  }
  
  .btn {
      display: block;
      margin-bottom: 15px;
      width: 100%;
  }
  
  .btn-outline {
      margin-left: 0;
  }
  
  .stats-container {
      flex-direction: column;
  }
  
  .stat-item {
      width: 100%;
      margin-bottom: 20px;
  }
}