/* Font and Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* min-height: 100vh; */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  background-color: #fefef9;
  color: #111;
}


/* Overlay background */
#popupOverlay {
  display: none; /* hidden by default */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(3px);
  transition: opacity 0.3s ease;
}

/* Show when active */
#popupOverlay.active {
  display: flex;
}

/* Popup box with glass effect */
#popupBox {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: fadeIn 0.3s ease-in-out;
}

/* Heading */
#popupBox h2 {
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

/* Text */
#popupBox p {
  font-size: 1rem;
  line-height: 1.4;
  color: #f1f1f1;
}

/* Close button */
#popupBox button {
  margin-top: 1.5rem;
  padding: 10px 24px;
  border: none;
  background: #fff;
  color: #000;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#popupBox button:hover {
  background: #000;
  color: #fff;
  transform: scale(1.05);
}

/* Animation */
@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.9);}
  to {opacity: 1; transform: scale(1);}
}
/* Responsive Fixes */
@media (max-width: 768px) {
  #popupBox {
    padding: 1.5rem;
    max-width: 90%;  
    margin-right: 2rem;   /* take more width on tablets */
  }

  #popupBox h2 {
    font-size: 1.5rem;  /* slightly smaller heading */
  }

  #popupBox p {
    font-size: 0.95rem; /* reduce text size */
  }

  #popupBox button {
    width: 100%;        /* full width button on mobile */
    padding: 12px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  #popupBox {
    padding: 1rem;
    max-width: 75%;     /* almost full screen on very small devices */
  }

  #popupBox h2 {
    font-size: 1.2rem;
  }

  #popupBox p {
    font-size: 0.9rem;
  }

  #popupBox button {
    width: 100%;
    font-size: 0.95rem;
    padding: 10px;
  }
}


/* Root Theme */
:root {
  --bg: white;
  --fg: black;
  /* font-size: calc(16px + (24 - 16) * (100vw - 320px) / (1280 - 320)); */
}

/* Preloader Container */
#preloader {
  position: fixed;
  width: 100%;
  height: 100vh;
  background-color: var(--bg);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Loader Styles */
.pl,
.pl__worm {
  animation-duration: 3s;
  animation-iteration-count: infinite;
}
.pl {
  animation-name: bump;
  animation-timing-function: linear;
  width: 5em;
  height: 5em;
}
.pl__ring {
  stroke: rgba(0, 0, 0, 0.1);
}
.pl__worm {
  stroke: black;
  animation-name: worm;
  animation-timing-function: cubic-bezier(0.42, 0.17, 0.75, 0.83);
}

/* Animations */
@keyframes bump {
  from,
  42%, 46%, 51%, 55%, 59%, 63%, 67%, 71%, 74%, 78%, 81%, 85%, 88%, 92%, to {
    transform: translate(0, 0);
  }
  44% { transform: translate(1.33%, 6.75%); }
  53% { transform: translate(-16.67%, -0.54%); }
  61% { transform: translate(3.66%, -2.46%); }
  69% { transform: translate(-0.59%, 15.27%); }
  76% { transform: translate(-1.92%, -4.68%); }
  83% { transform: translate(9.38%, 0.96%); }
  90% { transform: translate(-4.55%, 1.98%); }
}

@keyframes worm {
  from { stroke-dashoffset: 10; }
  25% { stroke-dashoffset: 295; }
  to { stroke-dashoffset: 1165; }
}



/* Top Header */
.top-header {
  background-color: #000;
  color: #fff;
  padding: 8px 0;
  font-size: 14px;
}

.top-header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info {
  display: flex;
  gap: 30px;
}

.contact-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-info i {
  font-size: 12px;
}

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

.social-links a {
  color: #fff;
  text-decoration: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.social-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.social-links i {
  font-size: 14px;
}


/* Navbar Base */
header {
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  padding: 20px 5%;
  position: relative;
  z-index: 1000;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-top: -0.9rem;
  margin-bottom: -1rem;
}

.logo {
  /* font-size: 36px; */
  /* font-weight: 700; */
  color: #1c1c1c;
  line-height: 1;
  text-decoration: none;
  /* margin-top: -2rem; */
}
.logo img{
  width: 20rem;
  margin-left: -2.8rem;
}

/* .logo.gradient-text {
  background: linear-gradient(90deg, #7b5dfd, #f6416c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
} */

/* Nav Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 50px;
  white-space: nowrap;
}

.nav-links li a {
  text-decoration: none;
  color: #1c1c1c;
  font-size: 16px;
  transition: color 0.3s ease, transform 0.3s ease-in-out;
}

.nav-links li a:hover {
  color: #4caf50;
  transform: scale(1.1);
}


/* Hamburger Icon */
.hamburger {
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 5px;
  display: none;
  position: relative;
  z-index: 1002;
}

.hamburger i {
  font-size: 22px;
  color: #1c1c1c;
}

@media (max-width: 768px) {
  
  .logo img{
    width: 15rem;
    margin-left: -1rem;
    margin-top: 0.4rem;
  }
}


/* Hero Section */
.product-hero {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #000000, #1a1a1a);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 1;
  position: relative;
}

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

.product-hero .subheading {
  font-size: 20px;
  color: #ccc;
  margin-bottom: 20px;
}

.product-hero .description {
  font-size: 18px;
  line-height: 1.7;
  color: #bbb;
  margin-bottom: 30px;
}

.explore-btn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(to right,#e2efe2, #fdfdfd);
  color: #000;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.explore-btn:hover {
  background: linear-gradient(to right, #388e3c, #66bb6a);
  color: white;
}



.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  padding: 50px 20px;
  max-width: 1400px;
  margin: auto;
}

.product-card {
  background: #fff;
  border-radius: 1px;
  text-align: left;
  padding: 25px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 1);
}

.product-card img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  margin: 0 auto 20px;
}

.product-card h3 {
  font-size: 22px;
  font-weight: 400;
  color: #111;
  margin-bottom: 12px;
  text-align: center;
}

.product-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.5;
  flex-grow: 1;
}

.learn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  border: 2px solid #000;
  color: #000;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.learn-btn span {
  margin-left: 8px;
  transition: transform 0.2s;
}

.learn-btn:hover {
  background: #1e9c10;
  color: #fff;
  border-color: #1e9c10;
}

.learn-btn:hover span {
  transform: translateX(4px);
}


/* Categories Section */
.product-categories {
  text-align: center;
  padding: 60px 20px;
  background: #f0f0f0;
}

.product-categories h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-categories p {
  color: #666;
  margin-bottom: 40px;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.category-card {
  background: #fff;
  padding: 25px 35px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: 0.3s;
}

.category-card i {
  font-size: 22px;
  color: #000;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}


/* product filter section  */
.product-filter {
  padding: 40px 20px 0;
  background-color: #fefef9;
  max-width: 1200px;
  margin: auto;
}

.filter-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.filter-container input,
.filter-container select {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1.5px solid #ccc;
  font-size: 16px;
  width: 260px;
  transition: 0.3s ease;
}

.filter-container input:focus,
.filter-container select:focus {
  outline: none;
  border-color: #1e9c10;
  box-shadow: 0 0 0 2px rgba(30, 156, 16, 0.2);
}

@media (max-width: 600px) {
  .filter-container {
    flex-direction: column;
    gap: 15px;
    /* max-width: 50%; */
  }

  .filter-container input,
  .filter-container select {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }
}




/* Responsive Media Queries */
@media (max-width: 1024px) {
  .top-header-content {
    padding: 0 3%;
  }

  .contact-info {
    gap: 20px;
  }

  .contact-info span:first-child {
    display: none; /* Hide phone number on mobile */
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    background-color: white;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    display: none;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .product-hero h1 {
    font-size: 32px;
  }

  .product-hero p {
    font-size: 16px;
  }

  .product-grid {
    padding: 30px 15px;
    gap: 20px;
  }

  .product-card {
    padding: 15px;
  }

  .product-card img {
    height: 240px;
    width: 100%;
  }
.learn-btn {
  padding: 8px 16px;
  font-size: 14px;
  width: 50%;
  display: block;          /* makes it act like a block element */
  margin: 0 auto;          /* centers it horizontally */
  text-align: center;      /* centers text inside button */
}

  .product-categories h2 {
    font-size: 26px;
  }

  .product-categories p {
    font-size: 15px;
  }

  .category-grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .category-card {
    width: 90%;
    justify-content: center;
    font-size: 16px;
    padding: 20px;
  }
}

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

  .product-hero p {
    font-size: 14px;
  }

  .product-card img {
    height: 120px;
  }

  .product-card h3 {
    font-size: 16px;
  }

  .product-card p {
    font-size: 13px;
  }

  .learn-btn {
    font-size: 13px;
    padding: 8px 14px;
  }

  .category-card i {
    font-size: 20px;
  }

  .category-card {
    font-size: 15px;
    padding: 18px;
  }
}


/* Footer styles */
.farhanpharma-footer {
  background: linear-gradient(to right, #0c0c0c, #1e1e1e);
  color: #e4e4e4;
  padding: 50px 20px 20px;
  font-family: 'Manrope', sans-serif;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.footer-about h2 {
  font-size: 26px;
  font-weight: 700;
  color: white;
}

.footer-about h2 span {
  color: whitesmoke;
}

.footer-about p {
  margin: 15px 0;
  line-height: 1.6;
  color: #bbb;
}

.footer-address i {
  color: whitesmoke;
  margin-right: 8px;
}

.footer-links h3,
.footer-social h3 {
  color: white;
  margin-bottom: 12px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  text-decoration: none;
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: burlywood;
  translate: scale(1.2);
  transition: all 0.3s ease-in-out;
}

.footer-social .social-icons a {
  margin-right: 15px;
  color: #ccc;
  font-size: 18px;
  transition: color 0.3s ease;
}

.footer-social .social-icons a:hover {
  color: burlywood;
  translate: scale(1.2);
  transition: all 0.3s ease-in-out;
}

.footer-social .dev-credit {
  margin-top: 15px;
  font-size: 14px;
  color: #aaa;
}

.footer-social .dev-credit span {
  color: whitesmoke;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 15px;
  border-top: 1px solid #333;
  font-size: 14px;
  color: #888;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-about,
  .footer-links,
  .footer-social {
    margin-bottom: 30px;
  }

  .footer-social .social-icons a {
    margin: 0 10px;
  }
}

/* Sexy Black Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(145deg, #444, #666);
  border-radius: 10px;
  border: 2px solid #000;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(145deg, #666, #888);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #555 #000;
}
