/* Global Styles & Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a472a; /* Deep forest green */
  --secondary-color: #2e844a; /* Professional green */
  --accent-color: #4bca81; /* Bright green for CTAs */
  --text-color: #2c3e50; /* Dark blue-gray for text */
  --light-gray: #f7fafc; /* Light background */
  --white: #ffffff;
  --success-green: #29b765; /* Success states */
  --hover-green: #236e3c; /* Darker green for hover states */
  --transition: all 0.3s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
  line-height: 1.6;
  color: var(--text-color);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--white);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
  margin-right: 0.5rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

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

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

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

/* Unified Hero Sections */
.hero,
.services-hero,
.projects-hero {
  height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 5%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  margin-top: 60px;
}

.hero h1,
.services-hero h1,
.projects-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero p,
.services-hero p,
.projects-hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  padding: 1rem 2rem;
  background: var(--accent-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: var(--transition);
}

.cta-button:hover {
  background: var(--hover-green);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Key Features Section */
.key-features {
  padding: 5rem 5%;
  background: var(--white);
}

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

.feature {
  padding: 2rem;
  background: var(--light-gray);
  border-radius: 10px;
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--accent-color);
}

/* Unified Content Sections */
.about-content,
.services-container,
.projects-container {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 5%;
}

.about-content h1,
.service-content h2,
.project-content h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.about-content h2,
.service-content h3,
.project-details h4 {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
}

.personal-intro {
  text-align: center;
  margin-bottom: 4rem;
}

.personal-intro img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin-bottom: 2rem;
  object-fit: cover;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.social-links a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--hover-green);
}

/* Footer */
footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 3rem 5%;
  text-align: center;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
  .hero h1,
  .services-hero h1,
  .projects-hero h1 {
    font-size: 2.5rem;
  }

  .hero,
  .services-hero,
  .projects-hero {
    height: 35vh;
  }

  .about-content,
  .services-container,
  .projects-container {
    margin: 4rem auto;
  }

  .nav-links {
    display: none; /* You'll need JavaScript to create a mobile menu */
  }

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

  .logo img {
    height: 32px;
  }

  .logo-text {
    font-size: 1.2rem;
  }
}

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

.feature,
.project-card {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Unified Cards */
.service-card,
.project-card,
.feature {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: var(--transition);
  padding: 2rem;
}

.service-card:hover,
.project-card:hover,
.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-image {
  height: 100%;
  min-height: 300px;
  background: var(--light-gray);
}

.project-content {
  padding: 2.5rem;
}

.project-tags {
  margin: 1rem 0 1.5rem;
}

.tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--light-gray);
  color: var(--primary-color);
  border-radius: 25px;
  margin: 0.2rem 0.5rem 0.2rem 0;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.project-description {
  margin-bottom: 2rem;
  color: var(--text-color);
}

.project-details h4 {
  color: var(--secondary-color);
  margin: 1.5rem 0 0.5rem;
  font-size: 1.2rem;
}

.project-details p {
  color: var(--text-color);
  margin-bottom: 1rem;
}

/* Responsive design for projects */
@media (max-width: 768px) {
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-image {
    min-height: 200px;
  }

  .project-content {
    padding: 1.5rem;
  }

  .project-content h3 {
    font-size: 1.5rem;
  }
}

.contact-cta {
  background: var(--light-gray);
  padding: 5rem 5%;
  text-align: center;
}

.contact-cta h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-cta p {
  margin-bottom: 2rem;
}

/* Responsive adjustments for services page */
@media (max-width: 768px) {
  .services-hero {
    height: 40vh;
  }

  .service-content {
    padding: 1.5rem;
  }

  .service-content h2 {
    font-size: 1.5rem;
  }
}

.service-details {
  padding-left: 1.5rem;
}

.service-details ul {
  list-style-position: outside;
  margin-left: 1.2rem;
}

.service-details p {
  margin-bottom: 1rem;
}

.service-details li {
  margin-bottom: 0.5rem;
}

.service-card {
  display: flex;
  align-items: stretch;
  gap: 2rem;
}

.service-logos {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 1rem;
  align-items: center;
  height: 100%;
  padding: 2rem 0;
}

.service-logos .tech-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.service-content {
  flex: 1;
}

.tech-logos-display {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  max-width: 200px;
}

.tech-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  margin-top: 80px;
}

.personal-intro {
  margin-bottom: 2rem;
}

.personal-intro img {
  max-width: 200px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 2px solid #f0f0f0;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
