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

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f7f7f7;
  color: #333;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header / Navigation */
.main-header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.8); /* Transparent background */
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.main-header.sticky {
  background-color: #000;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.main-header .logo a {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.main-header .nav-menu ul li a {
  color: #fff;
  font-size: 18px;
  font-weight: 300;
  text-decoration: none;
  transition: color 0.3s ease;
}

.main-header .nav-menu ul li a:hover {
  color: #E67E22;
}

/* Animations */
.main-header a,
.main-header .logo {
  transition: all 0.6s ease;
}

/* Sticky header animation */
.main-header.sticky a,
.main-header.sticky .logo {
  opacity: 1;
  transform: translateY(0);
}


.container {
  width: 60vw;
  margin: 0 auto;
  padding: 0 20px;
}

.container h2 {
  text-align: left;
  margin-bottom: 30px;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: url('../images/main_bg.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 10px;
}

.hero-content .highlight {
  color: #E67E22;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.hero-btn {
  background-color: #E67E22;
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.hero-btn:hover {
  background-color: #d35400;
}

/* About Section */
.about-section {
  padding: 100px 0;
  background-color: #fff;
}

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

.about-text {
  flex: 1;
  padding-right: 40px;
}

.counters {
  display: flex;
  flex: 1;
  justify-content: space-around;
}

.counter {
  text-align: center;
}

.counter .count {
  font-size: 3rem;
  color: #E67E22;
}

.counter p {
  margin-top: 10px;
}

/* Skills Section */
.skills-section {
  padding: 100px 0;
  background-color: #f8f9fa;
}

.skills-grid {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
}

.skill {
  text-align: center;
}

.skill h3 {
  margin-top: 10px;
}

/* Projects Section */
.projects-section {
  padding: 100px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
  /* Project card links: remove underline and use site orange */
.projects-grid .project-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.projects-grid .project-card-link:visited {
  color: inherit;
}  /* Make cards equal height and stack content vertically */
  .projects-grid .project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .projects-grid .project-card img {
    /* keep visual size but don't force card to grow */
    flex: 0 0 auto;
  }

  .projects-grid .project-card .project-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
  }

  .projects-grid .project-card-link .project-info h3,
  .projects-grid .project-card-link .project-info p {
    color: #222; /* black text by default */
    text-decoration: none;
    transition: color 0.18s ease;
  }

  .projects-grid .project-card-link:hover .project-info h3,
  .projects-grid .project-card-link:hover .project-info p {
    color: #E67E22; /* orange on hover */
  }

.project-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 220ms ease, box-shadow 220ms ease;
  will-change: transform;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 20px;
}

.projects-grid .project-card-link:hover .project-card,
.projects-grid .project-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

/* Testimonials Section */
.testimonials-section {
  padding: 100px 0;
  background: url('../images/testimonial_bg.jpg') no-repeat center center/cover;
  color: #fff;
  text-align: center;
}

.testimonial-slider {
  display: flex;
  overflow: hidden;
}

.testimonial {
  padding: 20px;
  min-width: 33.33%;
  transition: transform 0.5s ease;
}

.testimonial p {
  font-style: italic;
}

.testimonial span {
  display: block;
  margin-top: 10px;
  color: #E67E22;
}

/* Call to Action Section */
.cta-section {
  padding: 80px 0;
  background-color: #333;
  text-align: center;
  color: #fff;
}

.cta-section .container h2 {
  text-align: center;
}

.cta-btn {
  background-color: #E67E22;
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  margin-top: 20px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta-btn:hover {
  background-color: #d35400;
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 20px 0;
  background-color: #2C3E50;
  color: #fff;
  text-align: center;
}
