/* ==========================================================
   MODERN SAIF TARPAL HOUSE - COMPLETE STYLESHEET
   ========================================================== */


/* ==========================================================
   GLOBAL FIX - PREVENT SCROLLBAR ISSUES
   ========================================================== */
html {
  overflow-x: hidden !important;
  width: 100vw;
  max-width: 100%;
  box-sizing: border-box;
}

body {
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* ==========================================================
   GLOBAL OVERFLOW FIX
   ========================================================== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

* {
  box-sizing: border-box;
}

/* Prevent any section from causing horizontal scroll */
section {
  max-width: 100vw;
  overflow-x: hidden;
}
/* GLOBAL RESET */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  font-family: 'Inter', 'Poppins', -apple-system, sans-serif;
  background: #fafafa;
  color: #1a1a1a;
  line-height: 1.6;
  transition: margin-left 0.3s ease;
}

body.menu-open {
  overflow: hidden;
}

/* FULL WIDTH OVERRIDES (GeneratePress) */
body,
.site,
.site-content,
.inside-article,
.container,
.grid-container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

/* ==========================================================
   HEADER STYLING - MODERN STICKY HEADER (BIGGER)
   ========================================================== */
.custom-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
  transition: padding 0.3s ease;
}

.custom-header.scrolled .header-container {
  padding: 15px 5%;
  min-height: 70px;
}

/* Logo Styling - Compact with Image Support */
.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0e4036;
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: all 0.3s ease;
}

.logo-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo a:hover .logo-icon {
  transform: rotate(10deg) scale(1.1);
}

.logo a:hover {
  color: #14594a;
}

/* Scrolled State - Slightly Smaller Logo */
.custom-header.scrolled .logo-icon {
  width: 42px;
  height: 42px;
}

.custom-header.scrolled .logo a {
  font-size: 1.45rem;
}

/* Desktop Navigation - Bigger */
.desktop-menu {
  display: flex;
}

.nav-menu .menu {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-menu .menu li {
  position: relative;
}

.nav-menu .menu li a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.3s ease;
  position: relative;
  padding: 8px 0;
  display: inline-block;
}

.nav-menu .menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0e4036, #14594a);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu .menu li a:hover {
  color: #0e4036;
}

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

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
  transform: scale(1.1);
}

.hamburger-line {
  width: 28px;
  height: 3px;
  background: #0e4036;
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: linear-gradient(135deg, #0e4036 0%, #14594a 100%);
  backdrop-filter: blur(10px);
  z-index: 999;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-menu-overlay.active {
  right: 0;
}

.mobile-nav {
  padding: 100px 40px 40px;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-list li {
  margin-bottom: 10px;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-list li {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu-overlay.active .mobile-menu-list li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-menu-list li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-overlay.active .mobile-menu-list li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-menu-list li:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-overlay.active .mobile-menu-list li:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-menu-list li:nth-child(6) { transition-delay: 0.35s; }

.mobile-menu-list li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 500;
  display: block;
  padding: 15px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mobile-menu-list li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.3s ease;
}

.mobile-menu-list li a:hover::before {
  left: 0;
}

.mobile-menu-list li a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(10px);
}

/* ==========================================================
   UNIVERSAL SECTION BASE
   ========================================================== */
main#main-content {
  padding-top: 0;
  margin-top: 0;
}

section {
  width: 100%;
  padding: 120px 5%;
  position: relative;
  overflow: hidden;
}

section h2 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  color: #0e4036;
  margin-bottom: 15px;
  letter-spacing: -1px;
  position: relative;
  display: inline-block;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #0e4036, #14594a);
  border-radius: 2px;
}

section > p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  max-width: 800px;
  margin: 30px auto 50px;
}
/* ==========================================================
   HERO SECTION - VIDEO FULL COVERAGE FIX
   ========================================================== */
#hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 140px 5% 100px;
  margin-top: 0 !important;
  overflow: hidden;
	z-index: -1 !important;
  background: linear-gradient(135deg, #0e4036 0%, #14594a 50%, #1a6e5c 100%);
}

/* Background Video - FULL SCREEN */
.hero-video {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  width: auto !important;
  height: auto !important;
  transform: translate(-50%, -50%) !important;
  object-fit: cover !important;
  z-index: -1 !important;
  pointer-events: none !important;
  opacity: 1 !important;
}

/* Green Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(14, 64, 54, 0.75) 0%, rgba(20, 89, 74, 0.75) 100%);
  z-index: 0;
  pointer-events: none;
}

.hero-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
  background-size: 100px 100px;
  opacity: 0.3;
}

/* Content */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

#hero h1 {
  font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Traditional Arabic', 'Arabic Typesetting', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  margin: 0;
  padding: 0;
  letter-spacing: 1px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  color: #fff;
  direction: rtl;
  line-height: 1.3;
}

#hero p {
  font-size: clamp(0.9rem, 2.2vw, 1.5rem);
  margin: 0;
  padding: 14px 30px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}

#hero .btn {
  background: #fff;
  color: #0e4036;
  padding: 18px 45px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

#hero .btn:hover {
  background: #f4faf8;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

/* Mobile */
@media (max-width: 768px) {
  #hero {
    padding: 100px 4% 70px;
  }
  
  .hero-content {
    gap: 16px;
  }
  
  #hero h1 {
    font-size: clamp(2.7rem, 5.5vw, 3.5rem);
		padding: 20px;
  }
  
  #hero p {
    padding: 10px 20px;
    font-size: clamp(0.75rem, 2vw, 1.1rem);
  }
}
/* ==========================================================
   ABOUT SECTION - MODERN & EYE-CATCHING
   ========================================================== */
#about {
  background: linear-gradient(135deg, #f5faf8 0%, #ffffff 100%);
  padding: 100px 5%;
  position: relative;
  overflow: hidden;
}

/* Animated background circles */
#about::before,
#about::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.05;
  animation: float 20s ease-in-out infinite;
}

#about::before {
  width: 400px;
  height: 400px;
  background: #0e4036;
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

#about::after {
  width: 300px;
  height: 300px;
  background: #14594a;
  bottom: -50px;
  left: -50px;
  animation-delay: 5s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-header h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #0e4036;
  font-weight: 800;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0e4036, #14594a);
  border-radius: 2px;
}

.section-header p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #666;
  font-weight: 300;
  margin-top: 25px;
}

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

/* About Text */
.about-text h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #0e4036;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-left: 20px;
}

.about-text h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 60%;
  background: linear-gradient(180deg, #0e4036, #14594a);
  border-radius: 3px;
}

.about-text p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

.about-text p strong {
  color: #0e4036;
  font-weight: 600;
}

/* Stats Container - MODERN DESIGN */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 50px;
}

/* Individual Stat Card - EYE-CATCHING */
.stat-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8fcfb 100%);
  padding: 35px 5px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

/* Animated gradient border effect */
.stat-item::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #0e4036, #14594a, #1a6e5c, #0e4036);
  background-size: 300% 300%;
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: gradientMove 6s ease infinite;
}

@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(14, 64, 54, 0.15);
}

/* Stat Number - ANIMATED COUNTER */
.stat-item h4 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #0e4036;
  margin: 0 0 10px;
  position: relative;
  background: linear-gradient(135deg, #0e4036 0%, #14594a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* Pulse animation for numbers */
@keyframes numberPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.stat-item.counting h4 {
  animation: numberPulse 0.5s ease-out;
}

/* Stat Label */
.stat-item p {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: #666;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Decorative icon */
.stat-item::after {
  content: '✓';
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2rem;
  color: #0e4036;
  opacity: 0.1;
  transition: all 0.4s ease;
}

.stat-item:hover::after {
  opacity: 0.2;
  transform: rotate(360deg) scale(1.2);
}

/* About Image */
.about-image {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(14, 64, 54, 0.15);
  transition: all 0.4s ease;
}

.about-image:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 80px rgba(14, 64, 54, 0.2);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

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

/* Image Badge */
.image-badge {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: rgba(14, 64, 54, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 15px 30px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.image-badge span {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Responsive - Tablet */
@media (max-width: 992px) {
  .about-content {
    gap: 50px;
  }
  
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  #about {
    padding: 80px 5%;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 35px;
  }
  
  .stat-item {
    padding: 30px 20px;
  }
  
  .image-badge {
    bottom: 20px;
    right: 20px;
    padding: 12px 25px;
  }
  
  .image-badge span {
    font-size: 1rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .section-header {
    margin-bottom: 50px;
  }
  
  .about-text h3 {
    padding-left: 15px;
  }
  
  .about-text h3::before {
    width: 4px;
  }
}
/* ==========================================================
   LEGACY SECTION - SIMPLIFIED WITH MARGINS & ROUNDED IMAGES
   ========================================================== */
#legacy {
  background: linear-gradient(135deg, #f5faf8 0%, #e8f4f0 100%);
  text-align: center;
  overflow: visible !important;
}

#legacy .legacy-content {
  max-width: 1200px;
  margin: 50px auto 0;
  background: #fff;
  padding: 60px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border-left: 6px solid #0e4036;
  position: relative;
}

/* Part 1: Legacy Text + Image */
.legacy-text-with-image {
  display: block;
  margin-bottom: 60px;
  padding-bottom: 50px;
  border-bottom: 2px solid #e8f4f0;
}

.legacy-text-left {
  text-align: left;
  margin-bottom: 30px;
}

.legacy-text-left p {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #444;
  margin: 0;
}

.legacy-image-right {
  text-align: center;
  margin-top: 30px;
}

.legacy-image-right img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}

.legacy-image-right img:hover {
  transform: scale(1.03);
}

/* Part 2: Our Founder Section */
.founder-section {
  margin-top: 50px;
}

.founder-section h3 {
  font-size: 2rem;
  color: #0e4036;
  margin-bottom: 40px;
  font-weight: 700;
  text-align: center;
  position: relative;
  display: inline-block;
}

.founder-section h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #0e4036, #14594a);
  border-radius: 2px;
}

.founder-content {
  display: block;
  margin-top: 40px;
}

.founder-image-left {
  text-align: center;
  margin-bottom: 30px;
}

.founder-image-left img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}

.founder-image-left img:hover {
  transform: scale(1.03);
}

.founder-text-right {
  text-align: left;
  margin-top: 30px;
}

.founder-text-right p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #444;
  margin: 0;
  font-style: italic;
}

/* Responsive Legacy Section */
@media (max-width: 768px) {
  #legacy .legacy-content {
    padding: 45px 35px;
  }
  
  .legacy-text-with-image {
    margin-bottom: 40px;
    padding-bottom: 40px;
  }
  
  .founder-section h3 {
    font-size: 1.7rem;
    margin-bottom: 30px;
  }
  
  .legacy-text-left,
  .founder-text-right {
    text-align: center;
  }
  
  .legacy-image-right img,
  .founder-image-left img {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  #legacy .legacy-content {
    padding: 35px 25px;
  }
  
  .legacy-text-left p,
  .founder-text-right p {
    font-size: 1rem;
  }
  
  .founder-section h3 {
    font-size: 1.5rem;
  }
  
  .legacy-image-right {
    margin-top: 20px;
  }
  
  .founder-image-left {
    margin-bottom: 20px;
  }
}
/* ==========================================================
   LEADERSHIP SECTION - STACKED CARDS ON MOBILE
   ========================================================== */

#leadership {
  background: linear-gradient(135deg, #0a2f28 0%, #0e4036 50%, #14594a 100%);
  padding: 80px 5% 100px;
  position: relative;
  overflow: hidden;
}

/* Animated background pattern */
#leadership::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
  animation: pulse-pattern 15s ease-in-out infinite;
}

@keyframes pulse-pattern {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.leadership-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.leadership-header h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.leadership-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 1px;
}

/* MOBILE VIEW - STACKED CARDS - FIXED POSITIONING */
@media (max-width: 768px) {
  #leadership {
    padding: 60px 5% 120px;
  }
  
  .leadership-header {
    margin-bottom: 50px;
  }
  
  .leadership-grid {
    position: relative;
    height: 450px;
    max-width: 350px;
    margin: 0 auto;
    perspective: 1000px;
    /* Ensure container doesn't overflow */
    overflow: visible;
  }
  
  .leader-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90%;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 35px 30px;
    overflow: hidden;
    cursor: pointer;
    touch-action: manipulation;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* Stacked positioning - FIXED */
  .leader-card:nth-child(1) {
    z-index: 4;
    top: 0;
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  
  .leader-card:nth-child(2) {
    z-index: 3;
    top: 30px;
    transform: translateY(0) scale(0.95);
    opacity: 0.8;
  }
  
  .leader-card:nth-child(3) {
    z-index: 2;
    top: 60px;
    transform: translateY(0) scale(0.9);
    opacity: 0.6;
  }
  
  .leader-card:nth-child(4) {
    z-index: 1;
    top: 90px;
    transform: translateY(0) scale(0.85);
    opacity: 0.4;
  }
  
  /* Shuffle animation when card goes to back */
  .leader-card.shuffle-out {
    animation: shuffleToBack 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  
  @keyframes shuffleToBack {
    0% {
      transform: translateY(0) scale(1) rotateY(0deg);
      z-index: 10;
      opacity: 1;
    }
    50% {
      transform: translateY(-30px) scale(0.9) rotateY(15deg);
      opacity: 0.7;
    }
    100% {
      transform: translateY(90px) scale(0.85);
      opacity: 0.4;
      z-index: 1;
    }
  }
  
  /* Tap indicator */
  .leader-card::after {
    content: '👆 Tap to view next';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .leader-card:nth-child(1)::after {
    opacity: 1;
    animation: pulse-tap 2s ease-in-out infinite;
  }
  
  @keyframes pulse-tap {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
  }
}
/* DESKTOP VIEW - GRID LAYOUT */
@media (min-width: 769px) {
  .leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }
  
  .leader-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 40px 35px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
  }
  
  .leader-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.6s ease;
  }
  
  .leader-card:hover::before {
    opacity: 1;
    top: -10%;
    left: -10%;
  }
  
  .leader-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
  }
}

@media (min-width: 1200px) {
  .leadership-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
  }
}

/* COMMON CARD STYLES (BOTH MOBILE & DESKTOP) */

/* Leader Badge */
.leader-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}

.ceo-card .leader-badge {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.3));
  border-color: rgba(255, 215, 0, 0.5);
  color: #FFD700;
}

/* Leader Initial */
.leader-initial {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.ceo-card .leader-initial {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.2));
  border-color: rgba(255, 215, 0, 0.5);
  color: #FFD700;
}

/* Leader Name */
.leader-name {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 10px;
  text-align: center;
  letter-spacing: 0.5px;
}

/* Leader Role */
.leader-role {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  text-align: center;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* Decorative Element */
.leader-decoration {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30%, 30%);
}
/* ==========================================================
   GOAL SECTION - MODERN CARDS
   ========================================================== */
#goal {
  background: #ffffff;
  text-align: center;
}

.goal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.goal-card {
  background: linear-gradient(135deg, #f8fcfb 0%, #ffffff 100%);
  padding: 45px 35px;
  border-radius: 20px;
  border: 2px solid #e0ebe6;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.goal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0e4036, #14594a);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.goal-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(14, 64, 54, 0.15);
  border-color: #0e4036;
}

.goal-card:hover::before {
  transform: scaleX(1);
}

.goal-card h3 {
  font-size: 1.6rem;
  color: #0e4036;
  margin-bottom: 15px;
  font-weight: 700;
}

.goal-card p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}
/* ==========================================================
   PRODUCTS SECTION - COMPLETE
   ========================================================== */
#products {
  background: linear-gradient(135deg, #f5faf8 0%, #ffffff 100%);
  padding: 100px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#products h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #0e4036;
  font-weight: 800;
  margin-bottom: 15px;
}

#products > p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #666;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ==========================================================
   PRODUCT CATEGORY DROPDOWN - MODERN & ELEGANT
   ========================================================== */
.product-category-dropdown-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px auto 60px;
  max-width: 500px;
  padding: 0 20px;
}

.product-category-dropdown {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.category-dropdown-selected {
  background: linear-gradient(135deg, #ffffff 0%, #f8fcfb 100%);
  border: 2px solid rgba(14, 64, 54, 0.2);
  border-radius: 50px;
  padding: 16px 50px 16px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0e4036;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(14, 64, 54, 0.1);
  user-select: none;
}

.category-dropdown-selected:hover {
  border-color: #0e4036;
  box-shadow: 0 6px 20px rgba(14, 64, 54, 0.15);
  transform: translateY(-2px);
}

.category-dropdown-selected.active {
  border-color: #0e4036;
  background: linear-gradient(135deg, #0e4036 0%, #14594a 100%);
  color: #fff;
  box-shadow: 0 6px 25px rgba(14, 64, 54, 0.25);
}

.category-dropdown-arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid currentColor;
  transition: transform 0.3s ease;
  margin-left: 15px;
}

.category-dropdown-selected.active .category-dropdown-arrow {
  transform: rotate(180deg);
}

.category-dropdown-list {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(14, 64, 54, 0.15);
  border: 2px solid rgba(14, 64, 54, 0.1);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.category-dropdown-list.active {
  max-height: 400px;
  opacity: 1;
  visibility: visible;
  overflow-y: auto;
}

.category-dropdown-list::-webkit-scrollbar {
  width: 6px;
}

.category-dropdown-list::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 10px;
}

.category-dropdown-list::-webkit-scrollbar-thumb {
  background: #0e4036;
  border-radius: 10px;
}

.category-dropdown-item {
  padding: 16px 30px;
  font-size: 1rem;
  font-weight: 500;
  color: #0e4036;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(14, 64, 54, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-dropdown-item:last-child {
  border-bottom: none;
}

.category-dropdown-item:hover {
  background: linear-gradient(135deg, rgba(14, 64, 54, 0.05) 0%, rgba(14, 64, 54, 0.08) 100%);
  padding-left: 35px;
}

.category-dropdown-item.selected {
  background: linear-gradient(135deg, #0e4036 0%, #14594a 100%);
  color: #fff;
  font-weight: 600;
}

.category-dropdown-item.selected::after {
  content: '✓';
  font-size: 1.2rem;
  margin-left: 10px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-dropdown-list.active {
  animation: slideDown 0.3s ease;
}

/* ==========================================================
   PRODUCT GRID - MODERN LAYOUT
   ========================================================== */
.product-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  max-width: 1400px;
  margin: 0 auto;
}

.product-card-modern {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #f0f0f0;
  cursor: pointer;
  opacity: 1;
  transform: translateY(0);
}

.product-card-modern.hidden {
  display: none;
}

.product-card-modern:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 45px rgba(14, 64, 54, 0.12);
}

.product-image-wrapper {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #f8fcfb;
  position: relative;
}

.product-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 64, 54, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card-modern:hover .product-image-wrapper::after {
  opacity: 1;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-modern:hover .product-image-wrapper img {
  transform: scale(1.08);
}

.product-info {
  padding: 25px 20px;
  text-align: center;
}

.product-info h3 {
  color: #0e4036;
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.product-info p {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================
   LOAD MORE BUTTON
   ========================================================== */
.load-more-container {
  width: 100%;
  text-align: center;
  margin: 50px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.load-more-btn {
  background: linear-gradient(135deg, #0e4036 0%, #14594a 100%);
  color: #fff;
  padding: 16px 45px;
  border: none;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(14, 64, 54, 0.25);
}

.load-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(14, 64, 54, 0.35);
}

.load-more-btn.hidden {
  display: none;
}

/* ==========================================================
   PRODUCT POPUP MODAL
   ========================================================== */
.product-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.product-popup.active {
  opacity: 1;
  visibility: visible;
}

.product-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 64, 54, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.product-popup-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.product-popup.active .product-popup-content {
  transform: scale(1);
}

.product-popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #0e4036;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 300;
}

.product-popup-close:hover {
  background: #fff;
  transform: rotate(90deg) scale(1.1);
}

.product-popup-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-height: 90vh;
  overflow-y: auto;
}

.product-popup-image {
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.product-popup-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: 15px;
}

.product-popup-details {
  padding: 60px 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-popup-name {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #0e4036;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.product-popup-description {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: #555;
  line-height: 1.8;
  margin: 0;
}

body.product-popup-active {
  overflow: hidden;
}

/* ==========================================================
   RESPONSIVE - TABLET
   ========================================================== */
@media (max-width: 992px) {
  #products {
    padding: 80px 5%;
  }
  
  .product-grid-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .product-image-wrapper {
    height: 220px;
  }
  
  .product-info h3 {
    font-size: 1.1rem;
  }
  
  .product-info p {
    font-size: 0.85rem;
  }
}

/* ==========================================================
   RESPONSIVE - MOBILE
   ========================================================== */
@media (max-width: 768px) {
  #products {
    padding: 60px 4%;
  }
  
  .product-category-dropdown-wrapper {
    margin: 30px auto 50px;
    max-width: 100%;
  }
  
  .product-category-dropdown {
    max-width: 100%;
  }
  
  .category-dropdown-selected {
    padding: 14px 40px 14px 25px;
    font-size: 1rem;
  }
  
  .category-dropdown-item {
    padding: 14px 25px;
    font-size: 0.95rem;
  }
  
  .category-dropdown-item:hover {
    padding-left: 30px;
  }
  
  .product-grid-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .product-image-wrapper {
    height: 200px;
  }
  
  .product-card-modern {
    border-radius: 12px;
  }
  
  .product-info {
    padding: 20px 15px;
  }
  
  .product-info h3 {
    font-size: 1rem;
    margin-bottom: 6px;
  }
  
  .product-info p {
    font-size: 0.8rem;
  }
  
  .product-popup-content {
    width: 95%;
    max-height: 95vh;
  }
  
  .product-popup-inner {
    grid-template-columns: 1fr;
  }
  
  .product-popup-image {
    padding: 30px 20px 20px;
  }
  
  .product-popup-image img {
    max-height: 350px;
  }
  
  .product-popup-details {
    padding: 30px 25px;
  }
  
  .product-popup-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
  }
}

/* ==========================================================
   RESPONSIVE - SMALL MOBILE
   ========================================================== */
@media (max-width: 480px) {
  .category-dropdown-selected {
    padding: 12px 35px 12px 20px;
    font-size: 0.95rem;
  }
  
  .category-dropdown-item {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .product-grid-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .product-image-wrapper {
    height: 180px;
  }
  
  .product-info {
    padding: 15px 12px;
  }
  
  .product-info h3 {
    font-size: 0.95rem;
  }
  
  .product-info p {
    font-size: 0.75rem;
  }
  
  .product-popup-image {
    padding: 20px 15px 15px;
  }
  
  .product-popup-image img {
    max-height: 250px;
  }
  
  .product-popup-details {
    padding: 25px 20px;
  }
}
/* ==========================================================
   SERVICES SECTION - MODERN CARDS
   ========================================================== */
#services {
  background: #ffffff;
  text-align: center;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8fcfb 100%);
  padding: 50px 40px;
  border-radius: 20px;
  border: 2px solid #e8f4f0;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: '✓';
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.5rem;
  color: #0e4036;
  opacity: 0.1;
  transition: all 0.4s ease;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(14, 64, 54, 0.12);
  border-color: #0e4036;
}

.service-item:hover::before {
  opacity: 0.3;
  transform: scale(1.2) rotate(15deg);
}

.service-item h3 {
  font-size: 1.5rem;
  color: #0e4036;
  margin-bottom: 15px;
  font-weight: 700;
}

.service-item p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
  margin: 0;
}
/* ==========================================================
   PARTNERS RIBBON - BIG VERSION (2 PARTNERS)
   ========================================================== */

#partners-ribbon {
  background: linear-gradient(135deg, #0a2f28 0%, #0e4036 50%, #14594a 100%);
  padding: 60px 5%;
  overflow: hidden;
  position: relative;
  margin-top: -1px;
}

/* Animated gradient overlay */
#partners-ribbon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.05) 25%, 
    rgba(255, 255, 255, 0.1) 50%, 
    rgba(255, 255, 255, 0.05) 75%, 
    transparent 100%);
  animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

/* Ribbon Container */
.ribbon-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Ribbon Title */
.ribbon-title {
  text-align: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Ribbon Track - CENTERED, NO SCROLL */
.ribbon-track {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
}

/* Partner Item - BIG VERSION */
.partner-item {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 30px 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 25px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  min-width: 400px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.partner-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Partner Logo - BIGGER */
.partner-logo {
  width: 180px;
  height: 180px;
  background: #fff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.partner-item:hover .partner-logo {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Partner Info - BIGGER TEXT */
.partner-info h4 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.partner-info p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin: 0;
  font-weight: 400;
}

/* Responsive - Tablet */
@media (max-width: 992px) {
  .ribbon-track {
    flex-direction: column;
    gap: 40px;
  }
  
  .partner-item {
    min-width: auto;
    width: 100%;
    max-width: 500px;
  }
  
  .ribbon-title {
    font-size: 1.7rem;
    margin-bottom: 35px;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  #partners-ribbon {
    padding: 50px 5%;
  }
  
  .ribbon-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }
  
  .partner-item {
    padding: 25px 30px;
    gap: 20px;
    flex-direction: column;
    text-align: center;
  }
  
  .partner-logo {
    width: 200px;
    height: 200px;
  }
  
  .partner-info h4 {
    font-size: 1.3rem;
  }
  
  .partner-info p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  #partners-ribbon {
    padding: 40px 5%;
  }
  
  .ribbon-title {
    font-size: 1.3rem;
  }
  
  .partner-item {
    padding: 20px 25px;
  }
  
  .partner-logo {
    width: 170px;
    height: 170px;
    padding: 15px;
  }
  
  .partner-info h4 {
    font-size: 1.2rem;
  }
  
  .partner-info p {
    font-size: 0.9rem;
  }
}
/* Partner Category Label */
.partner-category {
  text-align: center;
  margin-bottom: 15px;
}

.partner-category span {
  display: inline-block;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Mobile */
@media (max-width: 768px) {
  .partner-category span {
    font-size: 0.75rem;
    padding: 6px 15px;
  }
}
/* ==========================================================
   CONTACT SECTION - MODERN LAYOUT
   ========================================================== */
#contact {
  background: linear-gradient(135deg, #0e4036 0%, #14594a 100%);
  color: #fff;
  text-align: center;
}

#contact h2 {
  color: #fff;
}

#contact h2::after {
  background: #fff;
}

#contact > p {
  color: rgba(255, 255, 255, 0.9);
}

.contact-details {
  max-width: 800px;
  margin: 0 auto 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px 50px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.contact-details p {
  font-size: 1.15rem;
  margin: 15px 0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.social-icons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.social-icons a {
  font-size: 2rem;
  text-decoration: none;
  transition: transform 0.3s ease;
  background: rgba(255, 255, 255, 0.15);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.social-icons a:hover {
  transform: translateY(-5px) scale(1.1);
  background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================
   FOOTER STYLING - MODERN MULTI-COLUMN
   ========================================================== */
.custom-footer {
  background: linear-gradient(135deg, #0a2f28 0%, #0e4036 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 60px 5% 0;
  border-top: 4px solid #14594a;
  position: relative;
  overflow: hidden;
}

.custom-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1.5" fill="white" opacity="0.05"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  padding-bottom: 50px;
  position: relative;
  z-index: 1;
}

.footer-column h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #fff, transparent);
  border-radius: 2px;
}

.footer-column h4 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-column p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

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

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

.footer-links li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding-left: 20px;
}

.footer-links li a::before {
  content: '→';
  position: absolute;
  left: 0;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-links li a:hover {
  color: #fff;
  padding-left: 25px;
}

.footer-links li a:hover::before {
  opacity: 1;
  left: 0;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* SOCIAL MEDIA ICONS - MODERN & COMPACT */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.footer-social .social-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.footer-social .social-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.footer-social .social-icon:hover::before {
  width: 100%;
  height: 100%;
}

.footer-social .social-icon svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.footer-social .social-icon:hover svg {
  transform: scale(1.1);
}

/* Facebook - Official Blue */
.footer-social .social-icon.facebook {
  background: #1877f2;
  color: #fff;
}

.footer-social .social-icon.facebook:hover {
  background: #0c63d4;
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(24, 119, 242, 0.4);
}

/* Instagram - Official Gradient */
.footer-social .social-icon.instagram {
  background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d, #f56040, #f77737, #fcaf45, #ffdc80);
  color: #fff;
}

.footer-social .social-icon.instagram:hover {
  background: linear-gradient(45deg, #405de6, #833ab4, #e1306c, #fd1d1d, #f77737);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-social {
    justify-content: center;
    gap: 15px;
  }
  
  .footer-social .social-icon {
    width: 45px;
    height: 45px;
  }
  
  .footer-social .social-icon svg {
    width: 22px;
    height: 22px;
  }
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
}
/* ==========================================================
   TESTIMONIALS SECTION - HORIZONTAL SLIDER (3 AT A TIME) - FINAL FIX
   ========================================================== */

#testimonials {
  background: linear-gradient(135deg, #f5faf8 0%, #ffffff 100%);
  padding: 100px 5%;
  position: relative;
  overflow: hidden;
}

#testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(14, 64, 54, 0.03) 2px, transparent 2px);
  background-size: 50px 50px;
  opacity: 0.5;
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Slider Wrapper */
.testimonials-slider-wrapper {
  position: relative;
  max-width: 1400px;
  margin: 50px auto 0;
  display: flex;
  align-items: center;
  gap: 30px;
}

/* Slider Container - PROPERLY SIZED */
.testimonials-slider {
  flex: 1;
  overflow: hidden;
  width: 0; /* Force flex calculation */
}

/* Slider Track */
.testimonials-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(33.333% - 17px);
  gap: 25px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Testimonial Card */
.testimonial-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  position: relative;
  box-sizing: border-box;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 15px;
  font-size: 100px;
  font-family: Georgia, serif;
  color: rgba(14, 64, 54, 0.05);
  line-height: 1;
  z-index: 0;
}

/* Star Rating */
.stars {
  color: #ffa500;
  font-size: 1.3rem;
  margin-bottom: 20px;
  letter-spacing: 3px;
  position: relative;
  z-index: 1;
}

/* Testimonial Text */
.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
  font-style: italic;
  min-height: 140px;
}

/* Author Info */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
  position: relative;
  z-index: 1;
}

.author-info h4 {
  color: #0e4036;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 5px;
}

.author-info p {
  color: #888;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}

/* Slider Arrows */
.slider-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #0e4036;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(14, 64, 54, 0.3);
  flex-shrink: 0;
  z-index: 2;
}

.slider-arrow:hover:not(:disabled) {
  background: #14594a;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(14, 64, 54, 0.4);
}

.slider-arrow:active {
  transform: scale(0.95);
}

.slider-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.slider-arrow svg {
  pointer-events: none;
}

/* Slider Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(14, 64, 54, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dot.active {
  background: #0e4036;
  width: 30px;
  border-radius: 6px;
}

/* Responsive - Tablet (2 cards) */
@media (max-width: 1024px) {
  .testimonials-track {
    grid-auto-columns: calc(50% - 12.5px);
  }
  
  .testimonial-text {
    font-size: 0.95rem;
    min-height: 120px;
  }
}

/* Responsive - Mobile (1 card) */
@media (max-width: 768px) {
  #testimonials {
    padding: 80px 5%;
  }
  
  .testimonials-slider-wrapper {
    gap: 0;
  }
  
  .slider-arrow {
    display: none;
  }
  
  .testimonials-track {
    grid-auto-columns: 100%;
  }
  
  .testimonial-card {
    padding: 35px 30px;
  }
  
  .testimonial-text {
    font-size: 1rem;
    min-height: auto;
  }
  
  .author-info h4 {
    font-size: 1.1rem;
  }
  
  .author-info p {
    font-size: 0.9rem;
  }
  
  .slider-dots {
    margin-top: 30px;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    padding: 30px 25px;
  }
  
  .stars {
    font-size: 1.2rem;
  }
  
  .testimonial-card::before {
    font-size: 80px;
  }
  
  .testimonial-text {
    font-size: 0.95rem;
  }
}
/* ==========================================================
   CONTACT SECTION - FORM ONLY (CENTERED)
   ========================================================== */
.contact-form-wrapper-centered {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 50px 60px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.contact-form-wrapper-centered h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 30px;
  font-weight: 700;
  text-align: center;
}

/* Contact Form 7 Input Styling */
.contact-form-wrapper-centered .wpcf7 label {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
  text-align: left;
}

.contact-form-wrapper-centered .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 20px;
}

.contact-form-wrapper-centered input[type="text"],
.contact-form-wrapper-centered input[type="email"],
.contact-form-wrapper-centered input[type="tel"],
.contact-form-wrapper-centered textarea {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.contact-form-wrapper-centered input[type="text"]::placeholder,
.contact-form-wrapper-centered input[type="email"]::placeholder,
.contact-form-wrapper-centered input[type="tel"]::placeholder,
.contact-form-wrapper-centered textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form-wrapper-centered input[type="text"]:focus,
.contact-form-wrapper-centered input[type="email"]:focus,
.contact-form-wrapper-centered input[type="tel"]:focus,
.contact-form-wrapper-centered textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.contact-form-wrapper-centered textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form-wrapper-centered input[type="submit"],
.contact-form-wrapper-centered .wpcf7-submit {
  background: #fff;
  color: #0e4036;
  padding: 16px 50px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  width: 100%;
  display: block;
  margin-top: 10px;
}

.contact-form-wrapper-centered input[type="submit"]:hover,
.contact-form-wrapper-centered .wpcf7-submit:hover {
  background: #f4faf8;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.contact-form-wrapper-centered .wpcf7-not-valid-tip {
  color: #ffcccc;
  font-size: 0.85rem;
  margin-top: 5px;
  display: block;
}

.contact-form-wrapper-centered .wpcf7-response-output {
  margin-top: 20px;
  padding: 15px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  text-align: center;
}

.contact-form-wrapper-centered .wpcf7-validation-errors {
  background: rgba(255, 100, 100, 0.2);
  border-color: rgba(255, 100, 100, 0.4);
}

.contact-form-wrapper-centered .wpcf7-mail-sent-ok {
  background: rgba(100, 255, 100, 0.2);
  border-color: rgba(100, 255, 100, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-form-wrapper-centered {
    padding: 35px 30px;
  }
}

@media (max-width: 480px) {
  .contact-form-wrapper-centered h3 {
    font-size: 1.5rem;
  }
  
  .contact-form-wrapper-centered {
    padding: 30px 25px;
  }
}
/* ==========================================================
   BISMILLAH BANNER - SCROLLBAR-PROOF CENTERING
   ========================================================== */
.bismillah-top-banner {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100vw - 160px); /* Total 160px margin (80px each side) */
  max-width: calc(100vw - 160px);
  bottom: 50px;
  z-index: 999998;
  background: linear-gradient(135deg, #0a2f28 0%, #0e4036 50%, #14594a 100%);
  box-shadow: 
    15px 0 40px rgba(0, 0, 0, 0.3),
    -15px 0 40px rgba(0, 0, 0, 0.3),
    0 15px 60px rgba(0, 0, 0, 0.7),
    inset 0 0 80px rgba(0, 0, 0, 0.3);
  border-radius: 0 0 25px 25px;
  overflow: hidden !important;
  perspective: 2000px;
  box-sizing: border-box;
  
  /* Initial state */
  height: 0;
  opacity: 1;
  transform-origin: top center;
  transition: height 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.bismillah-top-banner.active {
  transform: translateX(-50%) scaleY(1);
}

.bismillah-top-banner.closing {
  transform: translateX(-50%) scaleY(0);
}

/* Top cylinder */
.bismillah-top-banner::before {
  content: '';
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  max-width: 45%;
  height: 25px;
  background: 
    radial-gradient(ellipse at center top,
      rgba(26, 90, 74, 1) 0%,
      rgba(14, 64, 54, 1) 30%,
      rgba(10, 47, 40, 1) 50%,
      rgba(14, 64, 54, 1) 70%,
      rgba(26, 90, 74, 0.8) 100%
    ),
    linear-gradient(90deg,
      rgba(26, 90, 74, 0.3) 0%,
      rgba(14, 64, 54, 1) 20%,
      rgba(10, 47, 40, 1) 40%,
      rgba(14, 64, 54, 1) 60%,
      rgba(10, 47, 40, 1) 80%,
      rgba(26, 90, 74, 0.3) 100%
    );
  background-blend-mode: overlay;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  box-shadow: 
    0 -8px 25px rgba(0, 0, 0, 0.7),
    inset 0 -8px 20px rgba(0, 0, 0, 0.8),
    inset 0 8px 20px rgba(255, 255, 255, 0.2);
  z-index: 10;
}

/* Unrolled state */
.bismillah-top-banner.active {
  height: calc(100vh - 60px);
  animation: unrollBanner 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes unrollBanner {
  0% {
    height: 0;
    transform: translateX(-50%) scaleY(0) rotateX(5deg);
  }
  30% {
    transform: translateX(-50%) scaleY(0.3) rotateX(3deg);
  }
  60% {
    transform: translateX(-50%) scaleY(0.7) rotateX(1deg);
  }
  100% {
    height: calc(100vh - 60px);
    transform: translateX(-50%) scaleY(1) rotateX(0deg);
  }
}

/* Rolling back up */
.bismillah-top-banner.closing {
  animation: rollUpBanner 1.8s cubic-bezier(0.55, 0, 0.45, 1) forwards !important;
}

@keyframes rollUpBanner {
  0% {
    height: calc(100vh - 60px);
    transform: translateX(-50%) scaleY(1) rotateX(0deg);
  }
  40% {
    transform: translateX(-50%) scaleY(0.6) rotateX(2deg);
  }
  70% {
    transform: translateX(-50%) scaleY(0.3) rotateX(4deg);
  }
  100% {
    height: 0;
    transform: translateX(-50%) scaleY(0) rotateX(5deg);
  }
}

/* Fabric texture */
.bismillah-top-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.04) 2px,
      rgba(255, 255, 255, 0.04) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.06) 2px,
      rgba(0, 0, 0, 0.06) 4px
    );
  pointer-events: none;
  border-radius: 0 0 25px 25px;
  opacity: 0.7;
  animation: fabricReveal 2s ease-out forwards;
}

@keyframes fabricReveal {
  0% { opacity: 0; }
  100% { opacity: 0.7; }
}

.bismillah-banner-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px;
  opacity: 0;
  transform: translateY(-80px) scale(0.9);
  overflow: hidden !important;
  box-sizing: border-box;
}

.bismillah-top-banner.active .bismillah-banner-container {
  animation: contentSlideIn 1.5s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards;
}

@keyframes contentSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-80px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bismillah-top-banner.closing .bismillah-banner-container {
  animation: contentSlideOut 0.8s cubic-bezier(0.55, 0, 0.45, 1) forwards !important;
}

@keyframes contentSlideOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-80px) scale(0.9);
  }
}

/* Bottom cylinder */
.bismillah-banner-container::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 60%;
  height: 22px;
  background: 
    radial-gradient(ellipse at center bottom,
      rgba(26, 90, 74, 1) 0%,
      rgba(14, 64, 54, 1) 30%,
      rgba(10, 47, 40, 1) 50%,
      rgba(14, 64, 54, 1) 70%,
      rgba(26, 90, 74, 0.7) 100%
    ),
    linear-gradient(90deg,
      rgba(26, 90, 74, 0.3) 0%,
      rgba(14, 64, 54, 0.9) 20%,
      rgba(10, 47, 40, 0.9) 40%,
      rgba(14, 64, 54, 0.9) 60%,
      rgba(10, 47, 40, 0.9) 80%,
      rgba(26, 90, 74, 0.3) 100%
    );
  background-blend-mode: overlay;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.6),
    inset 0 -6px 15px rgba(0, 0, 0, 0.7),
    inset 0 6px 15px rgba(255, 255, 255, 0.15);
  z-index: 25;
  opacity: 0;
  animation: bottomRollReveal 1.5s ease-out 1.5s forwards;
}

@keyframes bottomRollReveal {
  0% {
    opacity: 0;
    transform: translateX(-50%) scaleX(0.5);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }
}

.bismillah-top-banner.closing .bismillah-banner-container::after {
  animation: bottomRollHide 0.8s ease-out forwards !important;
}

@keyframes bottomRollHide {
  0% {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scaleX(0.5);
  }
}

.bismillah-banner-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  z-index: 30;
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.bismillah-top-banner.active .bismillah-banner-close {
  animation: closeButtonAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 2s forwards;
}

@keyframes closeButtonAppear {
  0% {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

.bismillah-banner-close:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  transform: rotate(90deg) scale(1.15);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
}

.bismillah-banner-content {
  width: 100%;
  max-width: 700px;
  text-align: center;
  overflow: hidden !important;
  padding: 0;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Arabic Text */
.bismillah-banner-arabic {
  font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Traditional Arabic', 'Arabic Typesetting', serif;
  font-size: clamp(1.4rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #d4af37;
  background: linear-gradient(135deg, #f4e4a6 0%, #d4af37 50%, #b8941f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.6;
  margin: 0 auto 30px auto;
  padding: 0 20px;
  direction: rtl;
  text-shadow: 0 6px 25px rgba(212, 175, 55, 0.6);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
  width: auto;
  max-width: 90%;
  display: inline-block;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(30px);
}

.bismillah-top-banner.active .bismillah-banner-arabic {
  animation: textFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) 1.5s forwards;
}

@keyframes textFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Urdu Translation */
.bismillah-banner-urdu {
  font-family: 'Scheherazade New', 'Amiri', 'Noto Naskh Arabic', 'Lateef', 'Traditional Arabic', serif;
  font-size: clamp(0.9rem, 2.4vw, 1.6rem);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 2.2;
  margin: 0 auto;
  padding: 0 20px;
  direction: rtl;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
  width: auto;
  max-width: 90%;
  display: inline-block;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(30px);
}

.bismillah-top-banner.active .bismillah-banner-urdu {
  animation: textFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) 1.8s forwards;
}

/* Tablet */
@media (max-width: 992px) {
  .bismillah-top-banner {
    width: calc(100vw - 120px);
    max-width: calc(100vw - 120px);
  }
  
  .bismillah-banner-container {
    padding: 80px;
  }
  
  .bismillah-banner-arabic {
    font-size: clamp(1.3rem, 3.8vw, 3.2rem);
  }
  
  .bismillah-banner-urdu {
    font-size: clamp(0.85rem, 2.2vw, 1.5rem);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .bismillah-top-banner {
    width: calc(100vw - 80px);
    max-width: calc(100vw - 80px);
  }
  
  .bismillah-banner-container {
    padding: 70px;
  }
  
  .bismillah-banner-arabic {
    font-size: clamp(1.2rem, 3.5vw, 2.8rem);
    margin-bottom: 25px;
  }
  
  .bismillah-banner-urdu {
    font-size: clamp(0.8rem, 2vw, 1.3rem);
  }
  
  .bismillah-banner-close {
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .bismillah-top-banner {
    width: calc(100vw - 60px);
    max-width: calc(100vw - 60px);
  }
  
  .bismillah-banner-container {
    padding: 60px;
  }
  
  .bismillah-banner-arabic {
    font-size: clamp(1.1rem, 3.2vw, 2.5rem);
    margin-bottom: 22px;
  }
  
  .bismillah-banner-urdu {
    font-size: clamp(0.75rem, 1.8vw, 1.1rem);
  }
  
  .bismillah-banner-close {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 28px;
  }
}

/* Dark overlay */
body.banner-active::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 999997;
  opacity: 0;
  transition: opacity 1.5s ease-out;
  pointer-events: none;
}

body.banner-active.banner-visible::before {
  opacity: 1;
}

/* Prevent scroll */
body.banner-active {
  overflow: hidden !important;
}
/* ==========================================================
   RESPONSIVE DESIGN
   ========================================================== */
@media (max-width: 992px) {
  .desktop-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 18px 5%;
  }
  
  .logo a {
    font-size: 1.3rem;
  }
  
  .logo-icon {
    font-size: 1.6rem;
  }
  
  section {
    padding: 80px 5%;
  }
  
  #about .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  #about {
    text-align: center;
  }
  
  #about h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  #about p {
    text-align: center;
  }
  
  .goal-cards,
  .product-grid,
  .service-list {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  #legacy .legacy-content {
    padding: 40px 30px;
  }
  
  .contact-form-wrapper-centered {
    padding: 35px 30px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  #hero h1 {
    font-size: 2.5rem;
  }
  
  #hero p {
    font-size: 0.9rem;
    letter-spacing: 2px;
    padding: 12px 20px;
  }
  
  section h2 {
    font-size: 2rem;
  }
  
  .product-card img {
    height: 200px;
  }
  
  #about img {
    height: 300px;
  }
  
  .mobile-menu-overlay {
    max-width: 100%;
  }
  
  .contact-form-wrapper-centered h3 {
    font-size: 1.5rem;
  }
  
  .contact-form-wrapper-centered {
    padding: 30px 25px;
  }
}
