* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --primary: #0f1c3f; /* Deep navy blue */
  --secondary: #e31e25; /* Vibrant red */
  --accent: #2d5bff; /* Bright blue */
  --light: #f8fafc;
  --dark: #1e293b;
  --text: #475569;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, var(--primary) 0%, #152a5e 100%);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.7;
  color: var(--text);
  background-color: var(--white);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.home-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  justify-items: center;
}

section {
  padding: 100px 0;
}

h1, h2, h3, h4 {
  margin-bottom: 24px;
  color: var(--dark);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--secondary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  font-size: 1rem;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: #c11a20;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(227, 30, 37, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

.btn-outline:hover {
  background: var(--secondary);
  color: white;
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.supply-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  color: white;
}

.section-title h2 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text);
  max-width: 600px;
  margin: 0 auto;
}

/* Header Styles */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(15, 28, 63, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(15, 28, 63, 0.15);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
}

.logo-img {
  height: 90px;
  padding: 10px;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  font-size: 18px;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 8px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--secondary);
}

.mobile-menu {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary);
  background: none;
  border: none;
}

/* Hero Section */
.hero {
  background: var(--gradient);
  color: white;
  padding: 200px 0 120px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://images.unsplash.com/photo-1558618047-3c8c76ca7d13?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 24px;
  color: white;
  line-height: 1.1;
}

.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* About Section */
.about {
  background: var(--white);
  position: relative;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text {
  padding-right: 40px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 40px 0;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: var(--light);
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
  display: block;
}

.stat-label {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

.about-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 28, 63, 0.15);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s ease;
}

.about-image:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Services Section */
.services {
  background: var(--light);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.service-card {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(15, 28, 63, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(15, 28, 63, 0.15);
}

.service-icon {
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 24px;
  display: inline-block;
  padding: 20px;
  background: rgba(45, 91, 255, 0.1);
  border-radius: 12px;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.service-card p {
  font-size: 1rem;
  color: var(--text);
}

/* Materials Section */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.material-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(15, 28, 63, 0.08);
  transition: all 0.4s ease;
  position: relative;
}

.material-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(15, 28, 63, 0.15);
}

.material-img {
  height: 250px;
  background-color: #e2e8f0;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.5s ease;
}

.material-card:hover .material-img {
  transform: scale(1.05);
}

.material-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(15, 28, 63, 0.8));
  padding: 20px;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.material-card:hover .material-overlay {
  transform: translateY(0);
}

.material-content {
  padding: 24px;
}

.material-content h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.material-content p {
  font-size: 0.95rem;
  color: var(--text);
}

/* Process Section */
.process {
  background: var(--gradient);
  color: white;
  position: relative;
  overflow: hidden;
}

.process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://images.unsplash.com/photo-1558618047-3c8c76ca7d13?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
}

.process .section-title h2 {
  background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.process .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 2;
}

.step {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 24px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(227, 30, 37, 0.3);
}

.step h3 {
  color: white;
  margin-bottom: 16px;
}

.step p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

/* Testimonials */
.testimonials {
  background: var(--white);
  position: relative;
}

.testimonial-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.testimonial {
  background: var(--light);
  padding: 50px 40px;
  border-radius: 20px;
  text-align: center;
  display: none;
  border-left: 5px solid var(--accent);
  box-shadow: 0 10px 40px rgba(15, 28, 63, 0.08);
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 40px;
  font-size: 80px;
  color: var(--accent);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.testimonial.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 30px;
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--dark);
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.1rem;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 15px;
}

.testimonial-controls button {
  background: var(--primary);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-controls button:hover {
  background: var(--secondary);
  transform: scale(1.1);
}

/* Contact Section */
.contact {
  background: var(--light);
  position: relative;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(15, 28, 63, 0.08);
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-details h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(15, 28, 63, 0.1);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: var(--light);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 3px rgba(45, 91, 255, 0.1);
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background: var(--primary);
  color: white;
  padding: 80px 0 20px;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-column h3 {
  color: white;
  margin-bottom: 24px;
  font-size: 1.3rem;
  position: relative;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #cbd5e0;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: #94a3b8;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 992px) {
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .process-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(15, 28, 63, 0.15);
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 0;
  }

  .nav-links a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .services-grid,
  .materials-grid {
    grid-template-columns: 1fr;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  section {
    padding: 80px 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
}

/* =========================================== */
/* ========== RESPONSIVE STYLES ============== */
/* =========================================== */

/* For Tablets and smaller desktops */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.2rem;
  }

  /* Stack two-column layouts */
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Make footer a two-column layout */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Reset the 3D effect on the about image as it can look awkward */
  .about-image {
    transform: none;
    margin-top: 30px; /* Add some space when it stacks */
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* For most Mobile Phones (Portrait) */
@media (max-width: 768px) {
  section {
    padding: 60px 0; /* Reduce padding on all sections */
  }

  /* --- Mobile Navigation --- */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; /* Position it right below the header */
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 10px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #f0f0f0;
    gap: 0;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    margin: 0;
    width: 100%;
    text-align: center;
  }
  .nav-links a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
  }
  .nav-links li:last-child a {
    border-bottom: none;
  }
  .mobile-menu {
    display: block; /* Show the hamburger icon */
  }
  .logo-img {
    height: 60px; /* Make logo smaller */
  }

  /* --- Hero Section --- */
  .hero {
    padding-top: 150px; /* More padding to push content below the fixed header */
    padding-bottom: 60px;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.1rem;
  }

  /* --- Force all grids to a single column --- */
  .services-grid,
  .materials-grid,
  .process-steps,
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    /* Ensure image appears after text */
    grid-template-areas: "text" "image";
  }
  .about-text {
    grid-area: text;
  }
  .about-image {
    grid-area: image;
  }

  /* --- Center footer content when stacked --- */
  .footer-column {
    text-align: center;
  }
  .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .social-links {
    justify-content: center;
  }
}


/* For small Mobile Phones */
@media (max-width: 480px) {
  h1 {
    font-size: 2.1rem;
    line-height: 1.3;
  }
  h2 {
    font-size: 1.8rem;
  }
  .section-title {
    margin-bottom: 40px;
  }

  /* Make hero buttons stack vertically */
  .home-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .btn {
    width: 100%; /* Make buttons take up more space */
    max-width: 320px;
    justify-content: center;
  }

  /* Adjust contact form for small screens */
  .contact-form {
    padding: 30px 20px;
  }
  .testimonial {
    padding: 40px 25px;
  }
  .testimonial-text {
    font-size: 1.1rem;
  }
}