/* ==========================================
   PACHORI INDUSTRIES - CORPORATE WEBSITE
   Inspired by Hindustan Unilever Design
   ========================================== */

/* ========== ROOT VARIABLES ========== */
:root {
  --primary-blue: #0a4c8a;
  --accent-turquoise: #0099cc;
  --light-blue: #e8f4f8;
  --dark-navy: #003d66;
  --soft-gray: #f5f7fa;
  --medium-gray: #6c757d;
  --text-dark: #2c3e50;
  --white: #ffffff;
  --gradient-blue: linear-gradient(135deg, #0a4c8a 0%, #0099cc 100%);
  --gradient-light: linear-gradient(135deg, #e8f4f8 0%, #ffffff 100%);
}

/* ========== GLOBAL STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Roboto', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Merriweather Sans', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 5px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 35px;
  align-items: center;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-blue);
  transition: all 0.3s ease;
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  min-height: 600px;
  background: var(--gradient-blue);
  color: white;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><circle cx="100" cy="100" r="3" fill="rgba(255,255,255,0.3)"/><circle cx="300" cy="200" r="2" fill="rgba(255,255,255,0.2)"/><circle cx="500" cy="150" r="4" fill="rgba(255,255,255,0.25)"/><circle cx="700" cy="250" r="3" fill="rgba(255,255,255,0.3)"/><circle cx="900" cy="100" r="2" fill="rgba(255,255,255,0.2)"/><circle cx="1100" cy="200" r="3" fill="rgba(255,255,255,0.25)"/></svg>');
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  animation: fadeInUp 1s ease;
}

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

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.95;
}

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

.btn {
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  font-size: 16px;
}

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

.btn-primary:hover {
  background: var(--light-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

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

/* ========== SECTIONS ========== */
section {
  padding: 80px 0;
}

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

.section-title h2 {
  font-size: 42px;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.section-title p {
  font-size: 18px;
  color: var(--medium-gray);
  max-width: 700px;
  margin: 0 auto;
}

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

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

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

.about-text h3 {
  font-size: 32px;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 15px;
  color: var(--medium-gray);
  font-size: 16px;
}

/* ========== MANUFACTURING SECTION ========== */
.manufacturing {
  background: var(--soft-gray);
}

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

.manufacturing-card {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

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

.manufacturing-icon {
  font-size: 48px;
  color: var(--accent-turquoise);
  margin-bottom: 20px;
}

.manufacturing-card h3 {
  font-size: 24px;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.manufacturing-card p {
  color: var(--medium-gray);
}

/* ========== BRANDS SECTION ========== */
.brand-showcase {
  background: var(--gradient-blue);
  color: white;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.brand-showcase::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: -100px;
  right: -100px;
}

.brand-logo {
  font-size: 72px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.brand-tagline {
  font-size: 24px;
  margin-bottom: 40px;
  opacity: 0.95;
}

/* ========== PRODUCT CARDS ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

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

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

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-info {
  padding: 25px;
}

.product-info h3 {
  font-size: 22px;
  color: var(--primary-blue);
  margin-bottom: 12px;
}

.product-info p {
  color: var(--medium-gray);
  margin-bottom: 20px;
  font-size: 15px;
}

/* ========== CERTIFICATIONS ========== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.cert-badge {
  text-align: center;
  padding: 30px;
  transition: all 0.3s ease;
}

.cert-badge img {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  filter: none; /* no grayscale */
  opacity: 1;   /* full opacity */
  transition: none; /* no hover transitions */
}

.cert-badge:hover img {
  filter: none;
  opacity: 1;
  transform: none; /* disable hover animation */
}

.cert-badge h4 {
  color: var(--primary-blue);
  font-size: 18px;
}

/* ========== CONTACT POPUP ========== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.popup-overlay.active {
  display: flex;
}

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

.popup-content {
  background: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: slideUp 0.4s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  color: var(--medium-gray);
  cursor: pointer;
  transition: all 0.3s ease;
}

.popup-close:hover {
  color: var(--primary-blue);
  transform: rotate(90deg);
}

.popup-content h3 {
  color: var(--primary-blue);
  font-size: 28px;
  margin-bottom: 15px;
}

.popup-content p {
  color: var(--medium-gray);
  margin-bottom: 25px;
  font-size: 16px;
}

.popup-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.popup-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--medium-gray);
  font-size: 14px;
}

/* ========== CONTACT FORM ========== */
.contact-section {
  background: var(--soft-gray);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
}

.contact-info {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-info h3 {
  color: var(--primary-blue);
  font-size: 28px;
  margin-bottom: 30px;
}

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

.contact-icon {
  color: var(--accent-turquoise);
  font-size: 24px;
  margin-top: 3px;
}

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

.contact-details p {
  color: var(--medium-gray);
  font-size: 15px;
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-turquoise);
}

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

.form-success {
  background: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  display: none;
}

.form-success.active {
  display: block;
}

/* ========== MAP ========== */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ========== CAREERS ========== */
.careers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.career-card {
  background: white;
  padding: 35px;
  border-radius: 12px;
  border-left: 4px solid var(--accent-turquoise);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.career-card:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.career-card h3 {
  color: var(--primary-blue);
  font-size: 24px;
  margin-bottom: 15px;
}

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

.career-meta span {
  color: var(--medium-gray);
  font-size: 14px;
}

.career-card p {
  color: var(--medium-gray);
  margin-bottom: 20px;
}

/* ========== FOOTER ========== */
footer {
  background: var(--dark-navy);
  color: white;
  padding: 60px 0 30px;
}

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

.footer-section h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: white;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  margin-bottom: 10px;
  display: block;
}

.footer-section a:hover {
  color: var(--accent-turquoise);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

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

.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: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent-turquoise);
  transform: translateY(-3px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background: white;
    width: 100%;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }

  .nav-links.active {
    left: 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

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

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

  .section-title h2 {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .brand-logo {
    font-size: 48px;
  }

  .brand-tagline {
    font-size: 18px;
  }

  .popup-content {
    padding: 30px 25px;
  }
}

/* ========== UTILITIES ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

.bg-light {
  background: var(--soft-gray);
}

.bg-white {
  background: var(--white);
}

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

/* Leadership Team overrides */
#team .product-image {
  height: 320px; /* keep all cards uniform */
  overflow: hidden; /* crop excess height from bottom when needed */
}
#team .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* maintain width and fill container */
  object-position: top center; /* anchor to top so heads aren't cropped */
}

/* Fine-tune focal point per team member to keep faces centered */
#team .product-image img[src*="Pranav_Pachori_CEO"] {
  object-position: center 15%; /* shift focus slightly downward so head isn't cut */
}
#team .product-image img[src*="daksh_pachori_finance_head"] {
  object-position: center 45%;
}
