* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    overflow-x: hidden;
}

/* ==================== Global Animations ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered reveal for child elements */
.scroll-reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal-stagger.active > * {
    opacity: 1;
    transform: translateY(0);
}

/* Add delay to each child */
.scroll-reveal-stagger.active > :nth-child(1) { transition-delay: 0.1s; }
.scroll-reveal-stagger.active > :nth-child(2) { transition-delay: 0.2s; }
.scroll-reveal-stagger.active > :nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal-stagger.active > :nth-child(4) { transition-delay: 0.4s; }
.scroll-reveal-stagger.active > :nth-child(5) { transition-delay: 0.5s; }
.scroll-reveal-stagger.active > :nth-child(6) { transition-delay: 0.6s; }
.scroll-reveal-stagger.active > :nth-child(7) { transition-delay: 0.7s; }
.scroll-reveal-stagger.active > :nth-child(8) { transition-delay: 0.8s; }

/* ==================== Navigation Bar ==================== */
.navbar {
    position: fixed;
   
    left: 0;
    width: 100%;
    padding: 8px 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    background: transparent;
}

.nav-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
}

.logo {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 15px;
}

.logo-img {
    position: relative;
    height: 100px;
    color: white 100%;
    width: auto;
    display: block;
}

.nav-links {
    position: relative;
    display: flex;
    list-style: none;
    gap: 35px;
    flex-shrink: 1;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    position: relative;
    color: rgb(233, 232, 232);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    font-weight: bold;
    transition: all 0.3s ease;
    padding: 1px 10px;
    display: inline-block;
}

.nav-links a.active {
    color: #05E6FF;
    font-size: 22px;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    animation: textFlip 0.6s ease-out;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3.8px;
    background: linear-gradient(100deg, transparent, #05E6FF, transparent);
    animation: borderGlow 1.5s ease-in-out infinite;
}

@keyframes textFlip {
    from {
        transform: rotateX(90deg);
        opacity: 0;
    }
    to {
        transform: rotateX(0);
        opacity: 80%;
    }
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.4;
        filter: drop-shadow(0 0 10px rgba(5, 230, 255, 0.4));
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 30px rgba(5, 230, 255, 0.926));
    }
}

.nav-links a:hover {
    opacity: 0.8;
    color: #05E6FF;
    font-size: 22px;
    transform: translateY(-2px);
    font-weight: bold;
}

/* ==================== Hamburger Menu & Side Navigation ==================== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Side Navigation Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    backdrop-filter: blur(10px);
    border-right: 2px solid rgba(5, 230, 255, 0.2);
    z-index: 999;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding-top: 100px;
}

.sidebar.active {
    left: 0;
    
}

.sidebar-links {
    list-style: none;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    
}

.sidebar-link {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    padding: 18px 25px;
    border-left: 4px solid transparent;
}

.sidebar-link:hover {
    color: #92bff9;
    background: rgba(5, 230, 255, 0.1);
    border-left-color: #2ce0f0;
    padding-left: 35px;
}

.sidebar-link.active {
    color: #05a8ff;
    background: rgba(5, 230, 255, 0.1);
    border-left-color: #05a8ff;
}

/* Close button for sidebar */
.sidebar-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    transition: all 0.3s ease;
    z-index: 1002;
}

.sidebar-close:hover {
    color: #05E6FF;
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
        background: transparent;
        backdrop-filter: none;
    }

    .logo-img {
        height: 50px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-links a {
        font-size: 14px;
    }

    .nav-links a:hover {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 15px;
        background: transparent;
        backdrop-filter: none;
    }

    .nav-container {
        padding: 0 15px;
        background: transparent;
    }

    .logo-img {
        height: 40px;
    }

    .hamburger {
        display: flex;
    }

    .hamburger span {
        width: 24px;
        height: 2.5px;
    }

    .nav-links {
        display: none;
    }

    .nav-links a {
        font-size: 12px;
        padding: 1px 5px;
    }

    .nav-links a:hover {
        font-size: 14px;
    }

    .sidebar {
        left: -100%;
        width: 100%;
        padding-top: 80px;
        border-right: none;
    }

    .sidebar-link {
        font-size: 16px;
        padding: 16px 20px;
    }

    .sidebar-link:hover {
        padding-left: 30px;
    }
}


/* ==================== Hero Section ==================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.65) 0%, rgba(45, 90, 123, 0.55) 50%, transparent 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 0 40px;
    max-width: 900px;
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    position: relative;
    font-size: 40px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 30px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
}

.indicator-dot {
    position: relative;
    width: 12px;
    height: 12px;
    border: 2px solid white;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Statistics Section ==================== */
.stats-section {
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    bottom: 10px;
    z-index: 4;
    /* background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)); */ /* glass effect */
    backdrop-filter: blur(10px);
    border-radius: 20px;
   border:1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 10px 30px rgba(28, 26, 26, 0.4), 0 -5px 20px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}

.stat-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.4s;
}

.stat-item:hover {
    transform: translateY(-5px);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-icon {
    position: relative;
    font-size: 42px;
    margin-bottom: 15px;
    display: block;
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
}

.stat-number {
    position: relative;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    position: relative;
    font-size: 18px;
    font-weight: 400;
    opacity: 0.95;
    line-height: 1.4;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 30px;
    }

    .nav-links {
        gap: 25px;
    }

    .hero-title {
        font-size: 42px;
    }

    .stats-container {
        padding: 0 30px;
        gap: 40px;
    }

    .stat-number {
        bottom: 10px;
        font-size: 40px;
    }

    .stat-label {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .navbar {
        background: transparent;
    }

    .nav-container {
        padding: 0 20px;
        backdrop-filter: none;
    }

    .nav-links {
        gap: 12px;
        font-size: 13px;
    }

    .nav-links a:hover {
        font-size: 15px;
    }

    .logo-img {
        height: 50px;
    }

    .hero {
        min-height: 100vh;
    }

    .hero-content {
        padding: 0 20px;
        margin-bottom: 250px;
    }

    .hero-title {
        font-size: 32px;
        line-height: 1.2;
    }

    .stats-section {
        bottom: 10px;
        left: 5%;
        width: 90%;
    }

    .stats-container {
        gap: 20px;
        padding: 20px 10px;
    }

    .stat-icon {
        font-size: 36px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 14px;
    }

}

@media (max-width: 480px) {
    .navbar {
        background: transparent;
    }

    .nav-container {
        padding: 0 15px;
    }

    .logo-img {
        height: 40px;
    }

    .nav-links {
        gap: 8px;
        font-size: 11px;
    }

    .nav-links a {
        padding: 1px 5px;
        font-size: 11px;
    }

    .nav-links a:hover {
        font-size: 13px;
    }

    .hero {
        margin-top: 0vh;
        min-height: 100vh;
    }

    .hero-content {
        padding: 0 15px;
        margin-bottom: 280px;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .stats-section {
        bottom: 10px;
        left: 3%;
        width: 94%;
        padding: 15px 8px;
    }

    .stats-container {
        gap: 15px;
        padding: 10px 5px;
    }

    .stat-icon {
        font-size: 28px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }
}

/* ==================== About Page Specific Styles ==================== */
.about-wrapper {
    background: linear-gradient(180deg, #021721 50%, #021620 100%);
    padding-bottom: 40px;
}
.about-hero {
    text-align: center;
    padding: 80px 20px 40px 20px;
}
.aboutus {
    font-size: 40px;
    padding-left: 45px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    
}
.about-text{
    font-size: 18px;
    margin: 0 50px;
}
.mission-vision{
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    margin: 0 auto;
    height: fit-content;
    width: fit-content;
    font-size: 20px;
    line-height: 1.5;
}
.mission-card, .vision-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin: 20px;
    width: 100%;
    max-width: 700px;
    flex-direction: column;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mission-card:hover, .vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}
.mission-card h2, .vision-card h2 {
    margin-bottom: 20px;
    font-size: 35px;
}
.mission-card p, .vision-card p {
    font-size: 18px;
    line-height: 1.6;
    color: #e6f6f8;
}
@media (max-width: 1024px) {
    .mission-card, .vision-card {
        max-width: 600px;
        padding: 25px;
    }
    
    .mission-card h2, .vision-card h2 {
        font-size: 28px;
    }
    
    .mission-card p, .vision-card p {
        font-size: 16px;
    }
}

@media (max-width: 880px) {
    .mission-vision {
        flex-direction: column;
    }
    .mission-card, .vision-card {
        width: 90%;
        max-width: 100%;
        margin: 15px auto;
        padding: 20px;
    }
    
    .mission-card h2, .vision-card h2 {
        font-size: 24px;
    }
    
    .mission-card p, .vision-card p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .mission-vision {
        flex-direction: column;
        gap: 20px;
    }
    
    .mission-card, .vision-card {
        width: 95%;
        max-width: 100%;
        margin: 10px auto;
        padding: 15px;
    }
    
    .mission-card h2, .vision-card h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .mission-card p, .vision-card p {
        font-size: 14px;
        line-height: 1.5;
    }
}
/* ==================== End of About Page Specific Styles ==================== */


/* ==================== Decorative Cards Section ==================== */
html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: #0E4C68;
  font-family: Arial, Helvetica, sans-serif;
}

/* ============================================
   WRAPPER STYLES
   ============================================ */
.wrapper {
  width: 100%;
  height: 400px;
  position: relative;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wrapper-section {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
   background: linear-gradient(180deg, #031822 0%, #063D55 82%);
}

/* ============================================3D ROTATION STYLES============================================ */
.inner {
  --w: 100px;
  --h: 150px;
  --translateZ: calc((var(--w) + var(--h)) + 50px/* adjust for spacing between cards */);
  --rotateX: -8deg;
  --perspective: 700px;/* adjust for depth effect box size */
  position: absolute;
  width: var(--w);
  height: var(--h);
  top: 20%;
  left: calc(50% - (var(--w) / 2) - 2.5px);
  z-index: 2;
  transform-style: preserve-3d;
  transform: perspective(var(--perspective));
  animation: rotating 20s linear infinite;
}

@keyframes rotating {
  from {
    transform: perspective(var(--perspective)) rotateX(var(--rotateX)) rotateY(0);
  }
  to {
    transform: perspective(var(--perspective)) rotateX(var(--rotateX)) rotateY(1turn);
  }
}

/* ============================================3D ROTATION STYLES============================================ */

/* ============================================CARD STYLES============================================ */
.card {
  position: absolute;
  background: linear-gradient(180deg, #1AE1D6 0%, #1D5ADC 31%, #81843A 65%, #1689ED 100%);
  border-radius: 10px;
  overflow: hidden;
  inset: 0;
  transform: rotateY(calc((360deg / var(--quantity)) * var(--index))) translateZ(var(--translateZ));
  padding: 2px;
}

.card::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: #08b0f3;
  border-radius: 10px;
  z-index: -1;
}

/* ============================================IMAGE STYLES============================================ */
.img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px; /* to match the card's inner border radius */
  position: relative;
}

.img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #fff;
  border-radius: 8px;
}
/* ==================== End of Decorative Cards Section ==================== */


/* ==================== Bentonite Page Specific Styles ==================== */
/* Bentonites section */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================== HERO SECTION ========================================== */

.hero {
  background: linear-gradient(135deg, #1a4d5e 0%, #2a6d7e 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  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"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
  opacity: 0.1;
}

.hero-content {
  position: relative;
  
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.3rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================== CATEGORIES SECTION ========================================== */

.categories {
  padding: 60px 20px;
  background-color: white;
}

.categories h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #1a4d5e;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.categories h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #1a4d5e, #7fd3e6);
  border-radius: 2px;
}



/* ==========================================
   CATEGORIES SECTION
   ========================================== */

.categories {
  padding: 60px 20px;
  background: linear-gradient(180deg, #063C54 51%, #074968 100%);

}

.categories h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #e8edee;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.categories h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
 
  border-radius: 2px;
}

.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2rem;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  width: 250px;
  height: 250px;
}

.product-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-content h3 {
  font-size: 1.8rem;
  color: #fdfdfd;
  margin-bottom: 1rem;
  font-weight: 700;
}

.product-content .description {
  font-size: 1.05rem;
  color: #fdfdfd;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.features,
.applications {
  margin-bottom: 1.5rem;
}

.features h4,
.applications h4 {
  font-size: 1.1rem;
  color: #eaebec;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.features ul,
.applications ul {
  list-style: none;
  padding-left: 0;
}

.features li,
.applications li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #fdfdfd;
}

.features li::before,
.applications li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #17c36d;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Alternate layout for even items */
.product-card:nth-child(even) {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}

.product-card:nth-child(even) .product-content {
  direction: ltr;
}


@media (max-width: 768px) {
 .product-card {
    display: block;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .product-card:nth-child {
    grid-template-columns: 1fr;
    direction: ltr;

  }

  .product-image {
    margin: 0 auto 1.5rem auto;
  }
}
/* ==================== End of Bentonite Page Specific Styles ==================== */

/* Grid variant that places images diagonally like the design */
.bentonite-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "img-calcium sodium"
        "calcium sodium-img";
    gap: 36px 48px;
    align-items: center;
}

.img-calcium { grid-area: img-calcium; display:flex; justify-content:flex-start; }
.sodium-content { grid-area: sodium; }
.calcium-content { grid-area: calcium; }
.img-sodium { grid-area: sodium-img; display:flex; justify-content:flex-end;  }

.img-wrap.large { width: 220px; height: 220px; min-width: 220px; min-height: 220px; padding: 16px; }

.sodium-content, .calcium-content {
    color: #e6f6f8;
    max-width: 520px;
}

.sodium-content { text-align: left; }
.calcium-content { text-align: left; }

/* Make the diagonal layout stack on small screens */
@media (max-width: 880px) {
    .bentonite-grid2 {
        grid-template-columns: 1fr;
        grid-template-areas:
            "img-calcium"
            "sodium"
            "calcium"
            "sodium-img";
        gap: 20px;
    }

    .img-calcium, .img-sodium { justify-content: center; }
    .sodium-content, .calcium-content { text-align: center; }
}
/* ==================== End of Bentonite Page Specific Styles ==================== */


/* ============================Industries We Serve================================ */

/* ==================== Product cards (Bentonite) ==================== */
.industries-section {
    background: linear-gradient(180deg, #074968 41%, #035F89 100%);
}
.section-title{
    font-size: 2rem;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}
.industries-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.industries-grid .industry-card {
  flex: 0 1 240px;
}

.industry-card {
  width: 100%;
  max-width: 300px;
  min-width: 200px;
  height: 250px;
  background-color: #292929;
  margin: 10px;
  border-radius: 10px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.24);
  border: 2px solid transparent;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.industry-icon {
  margin: 0 auto;
  width: 100%;
  height: 80px;
  max-width: 80px;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.8s ease;
  background-position: 0px;
  background-size: 200px;
  position: relative;
  z-index: 2;
}

.industry-icon svg {
  fill: #fff;
}

.industry-title {
  width: 100%;
  margin: 0;
  margin-left: auto;
  margin-right: auto;
  padding-left: 10px;
  text-align: center;
  margin-top: 10px;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  position: relative;
  z-index: 2;
}

.industry-text {
  width: 80%;
  margin: 0 auto;
  margin-left: auto;
  margin-right: auto;
  font-size: 13px;
  text-align: center;
  margin-top: 20px;
  color: #fff;
  font-weight: 200;
  letter-spacing: 2px;
  opacity: 0;
  max-height: 0;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.industry-card:hover {
  height: 270px;
}

.industry-card:hover .industry-text {
  opacity: 1;
  max-height: 40px;
}

.industry-card:hover .industry-icon {
  background-position: -120px;
}

.industry-card:hover .industry-icon svg path {
  fill: url('#gradientColor');
}


.industry-card.ching {
  /* keep a dark fallback color for browsers without images */
  background-color: #292929;
  color: #fff;
}

.industry-card-img {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  display: block;
  z-index: 0;
  /* slightly reduce brightness as a baseline */
  filter: brightness(0.85);
}

.industry-card.ching::before {
  content: "";
  position: absolute;
  inset: 0;
  /* stronger overlay to make the image darker */
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  pointer-events: none;
  /* overlay should sit above the image but below the card content */
  z-index: 1;
}

@media (max-width: 768px) {
 .section-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding-left: 10px;

 }

  }  
  .industries-grid {
    gap: 15px;
  }

  .industry-card {
    flex: 0 1 180px;
    height: 220px;
  }

  .industry-icon {
    height: 70px;
    max-width: 70px;
  }

  .industry-title {
    font-size: 14px;
    letter-spacing: 2px;
  }

  .industry-text {
    font-size: 12px;
  }

/* ============================End of Industries We Serve================================ */


/* ==================== Products Section (Circular Grid) ==================== */
.products-section {
    background: linear-gradient(180deg, #035E89 48%, #007FBA 100%);
    color: #ffffff;
    padding: 80px 20px;
}

.products-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.products-section .section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #ffffff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px 40px;
    max-width: 1200px;
    
    margin: 0 auto;
}

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-8px);
}

.product-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(180deg, #1AE1D6 0%, #1D5ADC 31%, #81843A 65%, #1689ED 100%);
    padding: 2.5px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.product-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 30px 20px;
    }
    
    .product-circle {
        width: 140px;
        height: 140px;
    }
    
    .product-name {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .product-circle {
        width: 120px;
        height: 120px;
    }
    
    .product-name {
        font-size: 11px;
    }
}

/* ==================== End Products Section ==================== */

/* ==================== Packaging Section ==================== */
.packaging-section {
    background: linear-gradient(180deg, #007FBA 29%, #0285C1 100%);
    color: #ffffff;
    padding: 40px 20px;
}

.packaging-section .container {
    max-width: 1100px;
    margin: 0 auto;
}

.packaging-section .section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #ffffff;
}

.packaging-intro {
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    color: #e6f6f8;
    margin: 0 auto 50px;
    max-width: 900px;
}

.packaging-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.packaging-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.packaging-item:hover {
    transform: translateY(-10px);
}

.packaging-card {
    width: 220px;
    height: 220px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid transparent;
    background: linear-gradient(180deg, #1AE1D6 0%, #1D5ADC 31%, #81843A 65%, #1689ED 100%);
    padding: 1px;
    border-image-slice: 1;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.packaging-item:hover .packaging-card {
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
    transform: scale(1.05);
}

.packaging-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.packaging-label {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
}

@media (max-width: 1000px) {
    .packaging-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 40px;
    }
}

@media (max-width: 600px) {
    .packaging-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .packaging-card {
        width: 180px;
        height: 180px;
    }
    
    .packaging-intro {
        font-size: 14px;
    }
    
    .packaging-label {
        font-size: 14px;
    }
}

/* ==================== End Packaging Section ==================== */

/* ==================== Contact Us Section ==================== */

.contact-section {
    background: linear-gradient(135deg, rgba(20, 80, 120, 0.85) 0%, rgba(10, 40, 70, 0.9) 100%);
    background-size: cover;
    background-image: url('img/contactus.png');
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    margin-top: 0;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(20, 80, 120, 0.75) 0%, rgba(10, 40, 70, 0.85) 100%);
    z-index: 1;
}

.contact-container {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    width: 100%;
}

.contact-title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.contact-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

/* Address Card */
.contact-card {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
    width: 100%;
    padding-top: center;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-icon i {
    color: #1abc9c;
    filter: drop-shadow(0 0 10px rgba(26, 188, 156, 0.6));
}

.icon-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(26, 188, 156, 0.2);
    border: 2px solid rgba(26, 188, 156, 0.5);
    object-fit: contain;
    filter: brightness(1.2) drop-shadow(0 0 15px rgba(26, 188, 156, 0.7));
    box-shadow: 0 0 20px rgba(26, 188, 156, 0.4), inset 0 0 10px rgba(26, 188, 156, 0.1);
}

.card-title {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-content {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    justify-self: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    padding: 0 10px;
}

/* Two-column layout for Email and Call */
.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    align-items: stretch;
    flex-wrap: nowrap;
}

.contact-card.email-card,
.contact-card.call-card {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.social-icons-container {
    display: flex;
    gap: 13rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-item .card-title {
    font-size: 1rem;
}

/* Social Links */
.social-links {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    gap: 3rem;
    transition: all 0.3s ease;
}

.social-links:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.social-icon {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.4);
}


.social-icon.instagram:hover {
    transform: scale(1.12);
    box-shadow: 0 0 35px rgba(240, 148, 51, 0.9), inset 0 0 15px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.7);
}

.social-icon.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005a87 100%);
    box-shadow: 0 0 25px rgba(0, 119, 181, 0.6), inset 0 0 12px rgba(255, 255, 255, 0.25);
}

.social-icon.linkedin:hover {
    transform: scale(1.12);
    box-shadow: 0 0 35px rgba(0, 119, 181, 0.9), inset 0 0 15px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.7);
}

.social-icon-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}
.social-wrapper {
display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.social-item .card-icon{
    margin-bottom: 1rem;
}
.instagram-icon {
    background-image: url(img/instagram.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0;
}

/* Contact Section Responsive Design */
@media (max-width: 768px) {
    .contact-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .contact-row {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .card-content {
        font-size: 0.95rem;
        word-break: break-word;
    }

    .social-links {
        gap: 2rem;
    }

    .contact-card {
        padding: 1.5rem;
    }
}
@media (max-width: 768px) {
    .contact-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .social-icons-container {
        gap: 8rem;
    }
}
@media (max-width: 480px) {
    .contact-section {
        padding: 2rem 1rem;
        min-height: auto;
    }
.social-icons-container{
    flex-direction: column;
    gap: 2rem;
}
    .contact-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .contact-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card-icon {
        font-size: 2rem;
    }

    .card-title {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .card-content {
        font-size: 0.85rem;
        line-height: 1.3;
        word-break: break-word;
        padding: 0 5px;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .social-links {
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .contact-card {
        padding: 1.2rem;
    }
}



/* ==================== End Contact Us Section ==================== */