/* =========================================
   Reset and Root Variables
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Roboto:wght@300;400;500&display=swap');

:root {
  /* Brand Colors */
  --primary-charcoal: #2C3539;
  --secondary-charcoal: #1F2528;
  --accent-copper: #B87333;
  --background-pearl: #F8F8FF;
  --text-dark: #1A1A1A;
  --text-light: #FFFFFF;
  
  /* Utilities */
  --glass-bg: rgba(248, 248, 255, 0.85);
  --glass-border: rgba(44, 53, 57, 0.1);
  --glass-shadow: 0 10px 30px 0 rgba(44, 53, 57, 0.08);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--background-pearl);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary-charcoal);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* =========================================
   Typography & Layout
   ========================================= */
.container {
  width: 88%;
  max-width: 1280px;
  margin: 0 auto;
}

.section-padding {
  padding: 120px 0;
}

.section-title {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  letter-spacing: -0.5px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-copper);
}

.text-center { text-align: center; }

/* =========================================
   Navbar
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--glass-shadow);
  padding: 5px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  transition: var(--transition);
}

.navbar.scrolled .nav-container {
  height: 70px;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-charcoal);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.logo span {
  color: var(--accent-copper);
}

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding-bottom: 5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-copper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary-charcoal);
}

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 50px; 
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--primary-charcoal);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--accent-copper);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(184, 115, 51, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-charcoal);
  border-color: var(--primary-charcoal);
}

.btn-outline:hover {
  background-color: var(--primary-charcoal);
  color: var(--text-light);
  transform: translateY(-3px);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(to right, rgba(44, 53, 57, 0.95), rgba(44, 53, 57, 0.7)), url('../images/textile-factory.jpg') center/cover;
}

.hero-content {
  color: var(--text-light);
  max-width: 850px;
}

.hero-title {
  color: var(--text-light);
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.8rem;
  animation: slideUp 1s ease forwards;
  opacity: 0;
  transform: translateY(40px);
}

.hero-title span {
  color: var(--accent-copper);
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 3rem;
  animation: slideUp 1s ease 0.3s forwards;
  opacity: 0;
  transform: translateY(40px);
  color: rgba(255,255,255,0.8);
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  animation: slideUp 1s ease 0.6s forwards;
  opacity: 0;
  transform: translateY(40px);
}

.hero .btn-outline {
  color: var(--text-light);
  border-color: var(--text-light);
}

.hero .btn-outline:hover {
  background: var(--text-light);
  color: var(--primary-charcoal);
}

/* =========================================
   Cards (Expertise)
   ========================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.glass-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 3rem 2rem;
  transition: var(--transition);
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
  z-index: -1;
}

.glass-card:hover::before {
  transform: scaleX(1);
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.card-icon {
  width: 70px;
  height: 70px;
  background-color: var(--background-pearl);
  color: var(--accent-copper);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 2rem;
  font-size: 1.8rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.glass-card h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.glass-card p {
  color: #666;
  font-size: 1rem;
}

/* =========================================
   Products
   ========================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.product-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-info {
  padding: 2rem;
}

.product-info h3 {
  color: var(--primary-charcoal);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.product-info p {
  font-size: 1rem;
  color: #666;
}

/* =========================================
   R&D Section
   ========================================= */
.rd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.rd-image {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(44, 53, 57, 0.15);
}

.rd-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s ease;
}

.rd-image:hover img {
  transform: scale(1.08);
}

.rd-content h2.section-title::after {
  left: 0;
  transform: translateX(0);
}

.rd-content-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.03);
  transition: var(--transition);
}

.rd-content-list li:hover {
  transform: translateX(10px);
  border-left: 3px solid var(--accent-copper);
}

.rd-content-list .icon {
  color: var(--accent-copper);
  margin-right: 1.5rem;
  font-size: 1.5rem;
  background: var(--background-pearl);
  padding: 15px;
  border-radius: 50%;
}

.rd-content-list h4 {
  color: var(--primary-charcoal);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

/* =========================================
   Testimonials
   ========================================= */
.testimonial-section {
  background-color: var(--primary-charcoal);
  color: #fff;
}

.testimonial-section .section-title {
  color: #fff;
}

.testimonial-section .section-title::after {
  background-color: var(--accent-copper);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: 'Outfit', sans-serif;
  font-size: 4rem;
  color: rgba(184, 115, 51, 0.2);
  position: absolute;
  top: 10px;
  right: 25px;
  line-height: 1;
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: var(--accent-copper);
}

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

.testimonial-text {
  font-style: italic;
  color: #ddd;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author .avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--accent-copper);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 1rem;
  font-weight: bold;
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
}

.testimonial-author h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.testimonial-author p {
  font-size: 0.85rem;
  color: #aaa;
  line-height: 1.4;
}

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
  background-color: #fff;
  color: var(--primary-charcoal);
  text-align: center;
  padding: 100px 0;
  position: relative;
  border-top: 1px solid #eee;
}

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

.cta-section h2 {
  color: var(--primary-charcoal);
  margin-bottom: 1.5rem;
}

/* =========================================
   Footer
   ========================================= */
.footer {
  background-color: var(--secondary-charcoal);
  color: var(--text-light);
  padding: 5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-copper);
}

.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: block;
  letter-spacing: 2px;
}

.footer-logo span {
  color: var(--accent-copper);
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: #a0aab2;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-copper);
  padding-left: 8px;
}

.footer-contact li {
  display: flex;
  margin-bottom: 1.2rem;
  color: #a0aab2;
}

.footer-contact i {
  color: var(--accent-copper);
  margin-right: 1.2rem;
  margin-top: 5px;
}

.footer-bottom {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #6c7a86;
  font-size: 0.95rem;
}

/* =========================================
   Internal Pages (About & Contact)
   ========================================= */
.page-header {
  padding: 200px 0 120px;
  background: linear-gradient(135deg, rgba(44, 53, 57, 0.95) 0%, rgba(31, 37, 40, 0.9) 100%), url('../images/textile-quality-inspection.jpg');
  background-position: center;
  background-size: cover;
  color: var(--text-light);
  text-align: center;
}

.page-header h1 {
  color: var(--text-light);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.page-header p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.7);
  max-width: 650px;
  margin: 0 auto;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: rgba(44, 53, 57, 0.1);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 20px 50px;
  position: relative;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  right: -8px;
  background-color: var(--accent-copper);
  top: 30px;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(184, 115, 51, 0.2);
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.right::after {
  left: -8px;
}

.timeline-content {
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.timeline-content h3 {
  margin-bottom: 15px;
  color: var(--accent-copper);
}

/* Form Styles */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contact-form {
  background: #fff;
  padding: 3.5rem;
  border-radius: 16px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 500;
  color: var(--primary-charcoal);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  transition: var(--transition);
  background: #fcfcfc;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-copper);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.error-msg {
  color: #d32f2f;
  font-size: 0.85rem;
  margin-top: 8px;
  display: none;
}

.success-msg {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  display: none;
  border: 1px solid #c8e6c9;
  margin-bottom: 20px;
}

/* =========================================
   Animations & Responsive
   ========================================= */
@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media screen and (max-width: 992px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .rd-grid, .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .rd-content h2.section-title {
    text-align: center;
  }
  .rd-content h2.section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background: var(--background-pearl);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 999;
  }
  .navbar.scrolled .nav-links {
    top: 70px;
    height: calc(100vh - 70px);
  }
  .nav-links.active {
    left: 0;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .timeline::after {
    left: 40px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 80px;
    padding-right: 15px;
  }
  .timeline-item.right {
    left: 0;
  }
  .timeline-item::after {
    left: 32px;
  }
  .contact-form {
    padding: 2rem;
  }
}
