/* ============================================
   Egan Clothing - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
  --primary: #1a1a2e;
  --primary-light: #16213e;
  --accent: #c9a227;
  --accent-hover: #b8941f;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #888888;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #f0f0f0;
  --border: #e0e0e0;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --header-height: 80px;
  --header-height-scrolled: 60px;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

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

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
  font-weight: 700;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
}

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

.btn-secondary:hover {
  background: var(--primary);
  color: var(--bg);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.header.scrolled {
  height: 60px;
  box-shadow: 0 2px 20px var(--shadow);
}

.header .logo {
  font-size: 1.5rem;
}

.header.scrolled .logo {
  font-size: 1.2rem;
}

.header .nav a {
  font-size: 1rem;
}

.header.scrolled .nav a {
  font-size: 0.9rem;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

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

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

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../../images/hero-bg.jpg') center/cover;
  opacity: 0.1;
}

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

.hero-content {
  max-width: 100%;
}

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

.hero p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

/* Features Section */
.features {
  background: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--bg);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 4px 20px var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow-hover);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--bg);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.feature-card p {
  color: var(--text-light);
}

/* Products Section */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.product-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-hover);
}

.product-image {
  height: 250px;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.product-info p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-weight: 600;
  color: var(--accent);
}

.product-moq {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 46, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: var(--bg);
  text-align: center;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

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

.gallery-overlay h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.gallery-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.news-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  transition: var(--transition);
  display: grid;
  grid-template-columns: 350px 1fr;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--shadow-hover);
}

.news-image {
  height: 100%;
  min-height: 220px;
  background: var(--bg-dark);
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.news-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-date {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.news-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--primary);
  line-height: 1.4;
}

.news-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 15px;
  transition: var(--transition);
}

.news-read-more:hover {
  gap: 10px;
}

/* Detail Modal */
.detail-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}

.detail-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.detail-modal-content {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 1100px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.detail-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  font-size: 1.1rem;
  color: var(--text);
  transition: var(--transition);
}

.detail-modal-close:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.detail-modal-body {
  display: grid;
  grid-template-columns: 400px 1fr;
  min-height: 0;
}

.detail-modal-image {
  overflow: hidden;
  min-height: 300px;
  background: var(--bg-light);
}

.detail-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
  display: block;
}

.detail-modal-info {
  padding: 35px;
  overflow-y: auto;
  max-height: 90vh;
}

.detail-modal-info h2 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 15px;
  line-height: 1.3;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.detail-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  font-size: 0.9rem;
  background: var(--bg-light);
  padding: 6px 12px;
  border-radius: 20px;
}

.detail-meta-item i {
  color: var(--accent);
}

.detail-description {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.detail-specs {
  margin-bottom: 15px;
}

.detail-specs h4 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.detail-specs p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.detail-date {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.detail-news-content {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
  white-space: pre-line;
}

/* Markets Table */
.markets-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.markets-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
}

.markets-table thead {
  background: var(--primary);
  color: var(--bg);
}

.markets-table th {
  padding: 18px 24px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}

.markets-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
}

.markets-table tbody tr:last-child td {
  border-bottom: none;
}

.markets-table tbody tr {
  transition: var(--transition);
}

.markets-table tbody tr:hover {
  background: var(--bg-light);
}

.markets-table tbody tr td:first-child {
  font-weight: 600;
  color: var(--primary);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px var(--shadow);
}

.about-image img {
  width: 100%;
  height: auto;
}

.about-text h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.8;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.mission-vision-card {
  background: var(--bg);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px var(--shadow);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 40px 25px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 15px var(--shadow);
  transition: var(--transform);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stat-item:hover::before {
  transform: scaleX(1);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-hover);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1.2;
  margin-bottom: 8px;
}

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

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--bg);
  flex-shrink: 0;
}

.contact-details h4 {
  color: var(--primary);
  margin-bottom: 5px;
}

.contact-details p {
  color: var(--text-light);
}

.contact-form {
  background: var(--bg-light);
  padding: 40px;
  border-radius: var(--radius-lg);
}

/* Contact Info Grid (modern layout) */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.contact-info-card {
  background: var(--bg);
  padding: 35px 25px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 4px 15px var(--shadow);
  transition: var(--transition);
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-hover);
}

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

.contact-info-card h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.contact-info-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

.contact-info-card p a {
  color: var(--accent);
  transition: var(--transition);
}

.contact-info-card p a:hover {
  text-decoration: underline;
}

/* Contact Form Modern */
.contact-form-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-form-modern {
  background: var(--bg);
  padding: 50px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px var(--shadow);
}

.contact-form-modern .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form-modern .form-group {
  margin-bottom: 25px;
}

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

.contact-form-modern .form-group input,
.contact-form-modern .form-group select,
.contact-form-modern .form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg);
}

.contact-form-modern .form-group input:focus,
.contact-form-modern .form-group select:focus,
.contact-form-modern .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

.contact-form-modern .form-group input::placeholder,
.contact-form-modern .form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

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

/* Footer */
.footer {
  background: var(--primary);
  color: var(--bg);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.footer-brand h3 span {
  color: var(--accent);
}

.footer-brand p {
  opacity: 0.8;
  line-height: 1.8;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--accent);
}

.footer-links a {
  display: block;
  margin-bottom: 10px;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  color: var(--bg);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--bg);
  padding: 150px 0 80px;
  text-align: center;
}

.page-banner h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.page-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Private Label Page */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 20px var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow-hover);
}

.service-number {
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.service-card p {
  color: var(--text-light);
}

.process-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 50px;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
}

.process-step {
  text-align: center;
  position: relative;
  flex: 1;
}

.process-step .step-icon {
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.5rem;
  color: var(--bg);
  position: relative;
  z-index: 1;
}

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

.process-step p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 25px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: var(--bg);
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--accent);
}

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.cert-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 35px 25px;
  text-align: center;
  box-shadow: 0 4px 15px var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-hover);
  border-color: var(--accent);
}

.cert-card-badge {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  padding: 10px;
}

.cert-card-badge img {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
}

.cert-card-icon-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--accent);
}

.cert-card h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.cert-card p {
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.6;
}

.cert-item {
  text-align: center;
  padding: 20px;
}

.cert-icon {
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 2rem;
  color: var(--bg);
}

.cert-item span {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float.hidden {
  display: none;
}

/* WhatsApp Popup Dialog */
.whatsapp-popup {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 320px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s ease;
  overflow: hidden;
}

.whatsapp-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.whatsapp-popup-header {
  background: #25d366;
  color: white;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.1rem;
}

.whatsapp-popup-header i {
  font-size: 1.5rem;
}

.whatsapp-popup-close {
  margin-left: auto;
  background: none;
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.whatsapp-popup-close:hover {
  opacity: 1;
}

.whatsapp-popup-body {
  padding: 20px;
}

.whatsapp-popup-message {
  background: var(--bg-light);
  padding: 15px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  position: relative;
}

.whatsapp-popup-message::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--bg-light);
}

.whatsapp-popup-message p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.whatsapp-popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: #25d366;
  color: white;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.whatsapp-popup-btn:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-popup-btn i {
  font-size: 1.3rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .products-grid,
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .news-card { grid-template-columns: 1fr; }
  .detail-modal-body { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; }
  .contact-content { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-vision-grid { grid-template-columns: 1fr; }
  .process-timeline { flex-direction: column; }
  .process-step { max-width: 100%; }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 20px var(--shadow);
  }

  .nav.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .features-grid,
  .products-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .news-image {
    height: 200px;
    min-height: auto;
  }

  .detail-modal-body {
    grid-template-columns: 1fr;
  }

  .detail-modal-image img {
    min-height: 200px;
  }

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

  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form-modern {
    padding: 30px 20px;
  }

  .contact-form-modern .form-row {
    grid-template-columns: 1fr;
  }

  .markets-table th,
  .markets-table td {
    padding: 12px 14px;
    font-size: 0.85rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .process-timeline {
    flex-direction: column;
    gap: 30px;
  }

  .process-timeline::before {
    display: none;
  }

  .section-padding { padding: 50px 0; }
  .section-title { margin-bottom: 30px; }
  .section-title h2 { font-size: 2rem; }
  .page-banner h1 { font-size: 2rem; }
  .page-banner { padding: 100px 0 60px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; text-align: center; }
  .feature-card { padding: 25px 20px; }
  .news-content { padding: 20px; }
  .detail-modal-info { padding: 20px; max-height: none; }
  .detail-modal-info h2 { font-size: 1.3rem; }
  .stat-item { padding: 25px 15px; }
  .stat-number { font-size: 2rem; }
  .about-text h2 { font-size: 1.6rem; }
  .contact-form-modern { padding: 30px 20px; }
  .footer { padding: 40px 0 15px; }
  .footer-grid { margin-bottom: 30px; }
  .service-card { padding: 25px 20px; }
  .cert-card { padding: 25px 15px; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .features-grid,
  .products-grid,
  .gallery-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .section-padding { padding: 40px 0; }
  .contact-form-modern { padding: 20px 15px; }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Loading State */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border);
  border-radius: 50%;
  border-top-color: var(--accent);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
