/* modern-style.css - Premium Modern Design for PT. Sai Apparel */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Outfit:wght@400;600;800&display=swap');

:root {
  --primary-color: #0b1d3a; /* Deep Navy */
  --secondary-color: #1a365d; /* Lighter Navy */
  --accent-color: #00b4d8; /* Cyan/Blue Accent */
  --accent-hover: #0096c7;
  --text-dark: #2d3748;
  --text-light: #f7fafc;
  --bg-color: #f8f9fa;
  --white: #ffffff;
  
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(11, 29, 58, 0.1);
  
  --glass-dark-bg: rgba(11, 29, 58, 0.85);
  --glass-dark-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius-lg: 16px;
  --border-radius-md: 8px;
}

/* Reset & Base */
html {
  scroll-behavior: smooth;
}

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

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

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

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

ul {
  list-style: none;
}

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

/* Typography Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.text-white { color: var(--white) !important; }
.font-light { font-weight: 300; }
.font-bold { font-weight: 700; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.py-5 { padding-top: 4rem; padding-bottom: 4rem; }
.container {
  width: 92%;
  max-width: 1350px;
  margin: 0 auto;
}

/* Glassmorphism Navbar */
.modern-navbar {
  position: fixed;
  top: 0;
  left: 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);
  box-shadow: var(--glass-shadow);
  padding: 15px 0;
  transition: var(--transition-smooth);
}

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

.modern-navbar .logo img {
  height: 40px;
  transition: var(--transition-smooth);
}

.modern-nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.modern-nav-links > li {
  position: relative;
}

.modern-nav-links > li > a {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--border-radius-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modern-nav-links > li > a:hover,
.modern-nav-links > li > a.active {
  color: var(--accent-color);
  background: rgba(0, 180, 216, 0.1);
}

/* Dropdown */
.modern-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 200px;
  box-shadow: var(--glass-shadow);
  border-radius: var(--border-radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition-smooth);
  padding: 10px 0;
  border: 1px solid rgba(0,0,0,0.05);
}

.modern-nav-links li:hover > .modern-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.modern-dropdown li a {
  display: block;
  padding: 10px 20px;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.modern-dropdown li a:hover {
  background: var(--bg-color);
  color: var(--accent-color);
  padding-left: 25px;
}

/* Sub-dropdown */
.modern-sub-dropdown {
  position: absolute;
  top: 0;
  left: 100%;
  background: var(--white);
  min-width: 180px;
  box-shadow: var(--glass-shadow);
  border-radius: var(--border-radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateX(15px);
  transition: var(--transition-smooth);
  padding: 10px 0;
  border: 1px solid rgba(0,0,0,0.05);
}

.modern-dropdown li:hover > .modern-sub-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0; /* Changed since navbar is fixed */
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11, 29, 58, 0.85) 0%, rgba(26, 54, 93, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 20px;
  animation: fadeUp 1s ease-out forwards;
}

.hero-content h1 {
  font-size: 4rem;
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
}

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

.btn-primary {
  background: var(--accent-color);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 180, 216, 0.5);
}

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

.btn-outline:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* Sections */
.section {
  padding: 6rem 0;
  background: var(--white);
}

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

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

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

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}

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

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

/* Cards & Components */
.glass-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: var(--transition-smooth);
  border: 1px solid rgba(0,0,0,0.02);
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 180, 216, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-color);
  font-size: 24px;
}

.buyer-tag {
  background: var(--white);
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: var(--transition-smooth);
  display: inline-block;
  cursor: pointer;
}

.buyer-tag:hover {
  background: var(--accent-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 180, 216, 0.3);
}

/* Stats Area */
.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--border-radius-lg);
  padding: 50px 30px;
  color: var(--white);
  box-shadow: 0 15px 35px rgba(11, 29, 58, 0.2);
  transform: translateY(-50%);
  position: relative;
  z-index: 10;
  margin: 0 auto -50px auto; /* Pull up into hero slightly, or just margin */
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--accent-color);
  margin-bottom: 5px;
}

.stat-text {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Image Gallery Cards (Departments & Production) */
.gallery-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  aspect-ratio: 4/3;
  cursor: pointer;
  min-width: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.gallery-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 29, 58, 0.6);
  color: var(--white);
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-overlay i {
  font-size: 3rem;
  transform: scale(0.5);
  transition: var(--transition-smooth);
}

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

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

.gallery-card:hover .gallery-overlay i {
  transform: scale(1);
}

/* Tabs */
.tabs-wrapper {
  margin-top: 40px;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 10px 30px;
  border-radius: 30px;
  background: var(--bg-color);
  color: var(--text-dark);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition-smooth);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 5px 15px rgba(11, 29, 58, 0.2);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

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

.form-control {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--border-radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: var(--transition-smooth);
  background: var(--bg-color);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.1);
  background: var(--white);
}

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

/* Footer */
.modern-footer {
  background: var(--primary-color);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px 0;
  position: relative;
  overflow: hidden;
}

.modern-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-color), #0077b6);
}

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

.footer-logo {
  height: 50px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-widget h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

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

.contact-info-list li {
  display: flex;
  margin-bottom: 15px;
  align-items: flex-start;
}

.contact-info-list li i {
  color: var(--accent-color);
  margin-right: 15px;
  margin-top: 5px;
  font-size: 1.2rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

/* Lightbox Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 29, 58, 0.95);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 15px 50px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal.show .modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--white);
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 2001;
}

.close-modal:hover,
.close-modal:focus {
  color: var(--accent-color);
  text-decoration: none;
}

/* Menu Toggle Icon */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: var(--transition-smooth);
}
.modern-navbar[style*="glass-dark-bg"] .menu-toggle span {
  background-color: var(--white);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content h1 { font-size: 3rem; }
  .grid-2, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .stats-container { grid-template-columns: repeat(2, 1fr); margin-top: 20px; transform: none; }
  
  .menu-toggle { display: flex; }
  .modern-nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 0;
    box-shadow: var(--glass-shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s;
    gap: 15px;
    align-items: center;
  }
  .modern-nav-links.active {
    max-height: 500px;
    padding: 20px 0;
  }
  .menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  
  .modern-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 10px 0 0 0;
    display: none;
    border: none;
    text-align: center;
  }
  .modern-nav-links li:hover > .modern-dropdown { display: block; }
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
  .stats-container { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
}

/* Product Cards */
.product-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  background: var(--white);
  transition: var(--transition-smooth);
  min-width: 0;
}

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

.product-img-wrapper {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}

.product-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.product-info {
  padding: 20px;
  text-align: center;
  background: var(--white);
  position: relative;
  z-index: 2;
}

.product-info h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin: 0;
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 29, 58, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-overlay p {
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.product-card:hover .product-overlay p {
  transform: translateY(0);
}

/* About Section Enhancements */
.about-image {
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  position: relative;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent-color);
  border-radius: var(--border-radius-lg);
  z-index: -1;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.feature-list li i {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-right: 15px;
  margin-top: 3px;
}

.map-container {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  height: 100%;
  min-height: 400px;
}
