/* landing.css - advanced landing page with animations */

:root {
  --primary: #004080;
  --secondary: #0074f0;
  --accent: #ffcc00;
  --text-dark: #333;
  --text-light: #fff;
  --bg-light: #f9f9f9;
  --bg-lighter: #f0f4f8;
  --border-radius: 8px;
  --max-width: 1200px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* global reset and base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Montserrat', sans-serif;
  scroll-behavior: smooth;
}

body {
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #fff;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  text-align: center;
  animation: fadeInUp 0.8s ease forwards;
}

h3 {
  font-size: 1.3rem;
  color: var(--primary);
}

/* header */
.site-header {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .logo {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  animation: slideInLeft 0.6s ease;
  display: flex;
  align-items: center;
}

.site-header .logo img {
  height: 60px;
  margin-right: 0.5rem;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 0.25rem;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

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

/* hero section */
.hero {
  background: linear-gradient(135deg, #004080 0%, #0074f0 100%);
  color: var(--text-light);
  text-align: center;
  padding: 10rem 1rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="1200" height="600" fill="%23004080"/><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
  opacity: 0.1;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease forwards;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 1rem 2.5rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 204, 0, 0.3);
}

/* sections */
.section {
  padding: 5rem 0;
  animation: fadeInUp 0.8s ease forwards;
}

.section.bg-light {
  background-color: var(--bg-lighter);
}

.section-subtitle {
  color: var(--secondary);
  text-align: center;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

/* about */
.about-content {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.highlight {
  background: var(--text-light);
  padding: 1.2rem;
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.highlight strong {
  color: var(--primary);
}

/* capabilities/services */
.services {
  margin-top: 3rem;
}

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

.services .card {
  background: var(--text-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease forwards;
  border-top: 4px solid var(--accent);
}

.services .card:nth-child(2) { animation-delay: 0.2s; }
.services .card:nth-child(3) { animation-delay: 0.4s; }
.services .card:nth-child(4) { animation-delay: 0.6s; }

.services .card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.services .card img {
  border-radius: 6px;
  margin-bottom: 1rem;
  max-height: 200px;
  object-fit: cover;
}

.services .card h3 {
  margin-bottom: 0.8rem;
}

.services .card p {
  font-size: 0.95rem;
  color: #666;
}

/* process section */
.process {
  margin-top: 3rem;
}

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

.process-step {
  text-align: center;
  animation: scaleIn 0.6s ease forwards;
}

.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.4s; }
.process-step:nth-child(4) { animation-delay: 0.6s; }

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-md);
}

.process-step h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.95rem;
  color: #666;
}

/* machinery section */
.machinery-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.machinery-list {
  list-style: none;
}

.machinery-list li {
  padding: 0.8rem 0;
  padding-left: 2rem;
  position: relative;
  font-size: 1.05rem;
  color: #555;
  animation: slideInLeft 0.6s ease forwards;
}

.machinery-list li:nth-child(2) { animation-delay: 0.1s; }
.machinery-list li:nth-child(3) { animation-delay: 0.2s; }
.machinery-list li:nth-child(4) { animation-delay: 0.3s; }
.machinery-list li:nth-child(5) { animation-delay: 0.4s; }

.machinery-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.3rem;
}

.machinery-image {
  background: var(--bg-lighter);
  padding: 2rem;
  border-radius: var(--border-radius);
}

.machinery-image img {
  border-radius: 6px;
}

/* stats section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.stat-box {
  background: var(--text-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.8s ease forwards;
}

.stat-box:nth-child(2) { animation-delay: 0.2s; }
.stat-box:nth-child(3) { animation-delay: 0.4s; }
.stat-box:nth-child(4) { animation-delay: 0.6s; }

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

/* gallery */
.gallery {
  background: var(--bg-lighter);
  margin-top: 3rem;
}

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

.gallery-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease forwards;
}

.gallery-item:nth-child(2) { animation-delay: 0.1s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.3s; }

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

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

.testimonial {
  background: var(--text-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--accent);
  animation: slideInLeft 0.6s ease forwards;
}

.testimonial:nth-child(2) { animation-delay: 0.2s; }
.testimonial:nth-child(3) { animation-delay: 0.4s; }

.testimonial-stars {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.testimonial p {
  font-style: italic;
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.testimonial-company {
  font-size: 0.9rem;
  color: #999;
}

/* faqs */
.faq-container {
  max-width: 700px;
  margin: 0 auto;
  margin-top: 2rem;
}

.faq-item {
  background: var(--text-light);
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.8s ease forwards;
}

.faq-item:nth-child(2) { animation-delay: 0.1s; }
.faq-item:nth-child(3) { animation-delay: 0.2s; }
.faq-item:nth-child(4) { animation-delay: 0.3s; }

.faq-header {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary);
  transition: background-color 0.3s ease;
}

.faq-header:hover {
  background-color: var(--bg-lighter);
}

.faq-toggle {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: var(--accent);
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
  color: #555;
}

.faq-item.active .faq-body {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem;
}

/* call to action */
.contact-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-light);
  text-align: center;
  padding: 4rem 1rem;
  margin-top: 0;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease forwards;
}

.contact-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.05;
  z-index: 0;
}

.contact-cta .container {
  position: relative;
  z-index: 1;
}

.contact-cta h2 {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

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

.contact-cta .button {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 1rem 2.5rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.contact-cta .button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 204, 0, 0.3);
}

/* footer */
.site-footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 3rem 0 1rem;
  font-size: 0.9rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #333;
}

.footer-section h4 {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1rem;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #aaa;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

/* responsiveness */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.8rem;
  }

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

  .main-nav {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
  }

  .main-nav a {
    margin-left: 0;
  }

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

/* interactive touches */
.main-nav a:hover {
  text-decoration: underline;
}
.button {
  cursor: pointer;
  transition: background-color 0.3s;
}
.button:hover {
  background-color: var(--secondary);
}

/* make header nav wrap on small screens */
@media (max-width: 600px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav {
    margin-top: 0.5rem;
  }
  .main-nav a {
    display: block;
    margin: 0.5rem 0;
  }
}
