/*
 * File: style.css
 * Description: Main stylesheet for the Emacan website.
 *
 * Color Palette:
 * --primary-green: #38a169; (a strong, vibrant green)
 * --secondary-green: #2f855a; (a darker green for hover states)
 * --white: #ffffff;
 * --text-gray: #4a5568; (a dark gray for body text)
 */

:root {
  --primary-green: #38a169;
  --secondary-green: #2f855a;
  --white: #ffffff;
  --accent-gold: #EAB308;
  --text-gray: #4a5568;
}

/* Basic Resets & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif; /* Poppins is a modern, clean font */
  line-height: 1.6;
  color: var(--text-gray);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif; /* Inter is a great header font */
  color: var(--secondary-green);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--primary-green);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-green);
}

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

/* Reusable Button Style */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px; /* This creates a pill shape */
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-green);
  color: var(--white);
  border: 2px solid var(--primary-green);
}

.btn-primary:hover {
  background-color: var(--secondary-green);
  border-color: var(--secondary-green);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url('../images/hero-bg.jpg'); /* You'll need to add a suitable image here */
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 2rem;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay to make text readable */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 4rem); /* Responsive font size */
  font-weight: bold;
  color: var(--white);
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 2rem;
}

/* Services Section */
.services-section {
  padding: 4rem 0;
}

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

.service-card {
  background-color: #f7fafc;
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.service-card .icon {
  font-size: 3rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Portfolio Section */
.portfolio-section {
  padding: 4rem 0;
  background-color: #fefcbf; /* A light, warm background to stand  out */
}

.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
}

.project-card {
  width: 100%;
  max-width: 350px;
  background-color: var(--white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

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

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

.project-card-content {
  padding: 1.5rem;
}

.project-card-content h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.project-card-content p {
  font-size: 0.9rem;
  color: #718096;
}

/* Trust Section */
.trust-section {
  padding: 4rem 0;
  text-align: center;
}

.client-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.client-logo img {
  max-height: 50px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.client-logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.testimonial-card {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #fcfcfc; /* A slightly off-white for depth */
  border-left: 4px solid var(--accent-gold);
  border-radius: 0.5rem;
  font-style: italic;
}

/* Contact Section */
.contact-section {
  padding: 4rem 0;
  background-color: var(--primary-green);
  color: var(--white);
  text-align: center;
}

.contact-section h2, .contact-section p {
  color: var(--white);
}

.contact-form {
  max-width: 600px;
  margin: 2rem auto 0;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 0.5rem;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 0.25rem;
  border: 1px solid #e2e8f0;
}

.contact-form .btn {
  width: 100%;
}

/* Footer */
.footer {
  background-color: #2d3748; /* Dark, professional gray */
  color: var(--white);
  padding: 4rem 0;
  font-size: 0.9rem;
}

.footer .container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.footer-links a, .footer-contact p {
  color: #a0aec0;
  margin-right: 1.5rem;
  transition: color 0.3s ease;
}

.footer-links a:hover, .footer-contact p:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #4a5568;
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Interactive Content Area Animations */
.animate-on-scroll .anim-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.in-view .anim-child {
  opacity: 1;
  transform: translateY(0);
}

/* --- Enhanced Interactivity & Animations --- */

/* Enhanced Service Card Hover */
.service-card-interactive {
  background: linear-gradient(145deg, #f9f9f9, #ffffff);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card-interactive:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-card-interactive .icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card-interactive:hover .icon {
  transform: scale(1.2) rotate(-10deg);
}

/* Animated Button Arrow */
.btn-animated-arrow .arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateX(-3px);
  opacity: 0;
}

.btn-animated-arrow:hover .arrow {
  transform: translateX(3px);
  opacity: 1;
}

/* Tech Stack Logos on Services Page */
.tech-logo {
  max-height: 4rem; /* 64px */
  margin-left: auto;
  margin-right: auto;
  opacity: 0.8;
  transition: all 0.3s ease-in-out;
}

.tech-logo:hover {
  opacity: 1;
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px var(--accent-gold));
}
