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

:root {
  /* Brand Colors */
  --primary-navy: #0A192F;
  --secondary-navy: #112240;
  --accent-gold: #D4AF37;
  --background-ivory: #FFFFF0;
  --text-dark: #232323;
  --text-light: #F8F9FA;
  
  /* Utilities */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(10, 25, 47, 0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background-ivory);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%230a192f' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-navy);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

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

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--accent-gold);
}

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

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

.navbar.scrolled {
  box-shadow: var(--glass-shadow);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  letter-spacing: 1px;
}

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

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

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary-navy);
  color: var(--background-ivory);
}

.btn-primary:hover {
  background-color: var(--secondary-navy);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(10, 25, 47, 0.2);
}

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

.btn-outline:hover {
  background-color: var(--primary-navy);
  color: var(--background-ivory);
  transform: translateY(-2px);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.75)), url('../images/cotton-fabric-rolls.jpg') center/cover;
}

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

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

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

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  animation: fadeUp 1s ease 0.3s forwards;
  opacity: 0;
  transform: translateY(30px);
}

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

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

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

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

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  transition: var(--transition);
  text-align: center;
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(10, 25, 47, 0.15);
}

.card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-navy);
  color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
}

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

.glass-card p {
  color: #555;
  font-size: 0.95rem;
}

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

.product-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  background: #fff;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-10px);
}

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

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

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.product-info p {
  font-size: 0.95rem;
  color: #555;
}

/* =========================================
   R&D Section
   ========================================= */
.rd-section {
  background-color: var(--primary-navy);
  color: var(--text-light);
}

.rd-section .section-title {
  color: var(--text-light);
}

.rd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.rd-image {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.rd-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

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

.rd-content-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.rd-content-list .icon {
  color: var(--accent-gold);
  margin-right: 1rem;
  font-size: 1.2rem;
  margin-top: 3px;
}

.rd-content-list h4 {
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

/* =========================================
   Testimonials
   ========================================= */
.testimonial-section {
  background: var(--background-ivory);
}

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

.testimonial-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.03);
  transition: var(--transition);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: rgba(212, 175, 55, 0.15);
  position: absolute;
  top: 10px;
  right: 20px;
  line-height: 1;
}

.testimonial-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.stars {
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  color: #555;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

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

.testimonial-author .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-navy);
  color: var(--accent-gold);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 1rem;
  font-weight: bold;
}

.testimonial-author h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

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

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
  background: linear-gradient(45deg, var(--primary-navy), var(--secondary-navy));
  padding: 80px 0;
  text-align: center;
  color: var(--text-light);
}

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

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

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

.footer-col h4 {
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  position: relative;
}

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

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}

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

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

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

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

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

.footer-contact i {
  color: var(--accent-gold);
  margin-right: 1rem;
  margin-top: 4px;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #888;
  font-size: 0.9rem;
}

/* =========================================
   Internal Pages (About & Contact)
   ========================================= */
.page-header {
  padding: 180px 0 100px;
  background-color: var(--primary-navy);
  color: var(--text-light);
  text-align: center;
  background-image: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9)), url('../images/handloom-weaving.jpg');
  background-position: center;
  background-size: cover;
}

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

.page-header p {
  font-size: 1.2rem;
  color: #ccc;
  max-width: 600px;
  margin: 0 auto;
}

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

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: var(--accent-gold);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--background-ivory);
  border: 4px solid var(--accent-gold);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

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

.timeline-content {
  padding: 20px 30px;
  background: var(--glass-bg);
  border-radius: 6px;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
}

.timeline-content h3 {
  margin-bottom: 10px;
}

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

.contact-form {
  background: var(--glass-bg);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 2px rgba(10, 25, 47, 0.1);
}

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

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

.success-msg {
  background: #d4edda;
  color: #155724;
  padding: 20px;
  border-radius: 4px;
  text-align: center;
  display: none;
  border: 1px solid #c3e6cb;
}

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

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

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

@media screen and (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
  .rd-grid, .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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