/* ============================================
   Rayarab Ventures — Premium Design System
   Smooth Animations • Professional Typography • Micro-Interactions
   ============================================ */

/* --- Premium Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #046bd2;
  --primary-dark: #045cb4;
  --primary-light: #e8f2fc;
  --primary-glow: rgba(4,107,210,0.25);
  --text-dark: #1e293b;
  --text-body: #334155;
  --text-light: #64748b;
  --white: #ffffff;
  --bg-light: #F0F5FA;
  --bg-off: #f8fafc;
  --border: #e2e8f0;
  --success: #10b981;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: pageIn 0.6s ease;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Buttons with Ripple & Shine --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; font-size: 0.9rem; font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif; border-radius: 50px;
  border: none; cursor: pointer; transition: var(--transition);
  text-decoration: none; letter-spacing: 0.3px;
  position: relative; overflow: hidden; z-index: 1;
}

.btn::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; border-radius: 50%;
  background: rgba(255,255,255,0.2); transition: all 0.6s ease;
  transform: translate(-50%, -50%); z-index: -1;
}

.btn:hover::after { width: 400px; height: 400px; }

.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 4px 16px var(--primary-glow); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 28px var(--primary-glow); }

.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 28px var(--primary-glow); }

.btn-white { background: var(--white); color: var(--primary); box-shadow: var(--shadow-md); }
.btn-white:hover { background: #f0f5ff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* --- Navbar --- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent; transition: var(--transition-slow);
}
.navbar.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }

.navbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.navbar-brand img { height: 44px; width: auto; }
.navbar-brand .brand-text {
  font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 800;
  color: var(--text-dark); letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-dark), var(--primary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-menu li a {
  display: block; padding: 10px 20px; color: var(--text-body);
  font-size: 0.88rem; font-weight: 500; border-radius: 50px;
  transition: var(--transition-fast); position: relative;
}
.nav-menu li a::before {
  content: ''; position: absolute; inset: 6px; border-radius: 50px;
  background: var(--primary-light); opacity: 0; transform: scale(0.9);
  transition: var(--transition-fast); z-index: -1;
}
.nav-menu li a:hover::before,
.nav-menu li a.active::before { opacity: 1; transform: scale(1); }
.nav-menu li a:hover, .nav-menu li a.active { color: var(--primary); }

.nav-menu .dropdown { position: relative; }
.nav-menu .dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
  background: var(--white); border-radius: var(--radius-lg); padding: 8px;
  list-style: none; opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: var(--transition); border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
}
.nav-menu .dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu .dropdown-menu li a { padding: 10px 16px; font-size: 0.84rem; border-radius: var(--radius-md); }
.nav-menu .dropdown-menu li a::before { border-radius: var(--radius-md); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; z-index: 1001; }
.hamburger span { display: block; width: 26px; height: 2.5px; background: var(--text-dark); border-radius: 3px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav-cta { flex-shrink: 0; }

/* --- Page Banner --- */
.page-banner {
  padding: 130px 0 70px;
  background: linear-gradient(135deg, #0a1e3d 0%, #0d2b54 50%, #0f3460 100%);
  text-align: center; position: relative; overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(4,107,210,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(4,107,210,0.08) 0%, transparent 60%);
}
.page-banner::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.5;
}
.page-banner h1 {
  font-size: 2.6rem; font-weight: 800; color: var(--white);
  position: relative; margin-bottom: 10px; animation: fadeUp 0.7s ease;
}
.page-banner .breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  list-style: none; color: rgba(255,255,255,0.6); font-size: 0.85rem; position: relative;
  animation: fadeUp 0.7s ease 0.15s both;
}
.page-banner .breadcrumb a { color: rgba(255,255,255,0.75); transition: var(--transition-fast); }
.page-banner .breadcrumb a:hover { color: var(--white); }
.page-banner .breadcrumb .sep { color: rgba(255,255,255,0.3); font-size: 0.65rem; }

/* --- Hero Section --- */
.hero {
  padding: 150px 0 90px;
  background: linear-gradient(160deg, #f0f5fa 0%, #e8f2fc 40%, #f8fafc 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -30%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(4,107,210,0.06) 0%, transparent 70%);
  border-radius: 50%; animation: heroFloat 20s ease-in-out infinite;
}
.hero::after {
  content: ''; position: absolute; bottom: -20%; left: -5%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(4,107,210,0.04) 0%, transparent 70%);
  border-radius: 50%; animation: heroFloat 25s ease-in-out infinite reverse;
}
@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }

.hero-content h1 {
  font-size: 2.8rem; font-weight: 800; color: var(--text-dark);
  line-height: 1.18; margin-bottom: 18px; letter-spacing: -0.8px;
}
.hero-content h1 span {
  background: linear-gradient(135deg, var(--primary), #0891b2);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-content p {
  font-size: 1.08rem; color: var(--text-light); margin-bottom: 30px;
  max-width: 520px; line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { display: flex; align-items: center; justify-content: center; }

.hero-image-box {
  width: 100%; max-width: 480px; aspect-ratio: 1;
  background: var(--white); border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  transition: var(--transition-slow); position: relative; overflow: hidden;
}
.hero-image-box::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(4,107,210,0.03), transparent);
}
.hero-image-box:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.hero-image-box i { font-size: 110px; color: var(--primary); opacity: 0.3; transition: var(--transition-slow); }
.hero-image-box:hover i { opacity: 0.45; transform: scale(1.05); }
.hero-image-box img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-xl); }

/* Image styling for all image containers */
.industry-image img,
.about-image-box img,
.contact-map-box img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.industry-image { overflow: hidden; }
.about-image-box { overflow: hidden; }

.hero-stats { display: flex; gap: 40px; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--border); }
.hero-stat h3 { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 2px; }
.hero-stat p { font-size: 0.84rem; color: var(--text-light); margin: 0; }

/* --- Sections --- */
.section { padding: 90px 0; position: relative; }
.section-light { background: var(--bg-light); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .label {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: var(--primary);
  margin-bottom: 10px; padding: 5px 16px; background: var(--primary-light);
  border-radius: 50px;
}
.section-header h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; }
.section-header p { color: var(--text-light); max-width: 600px; margin: 0 auto; font-size: 0.98rem; }

/* --- Features Grid --- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  text-align: center; padding: 40px 24px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--border);
  transition: var(--transition); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 3px; background: var(--primary);
  transition: var(--transition-slow); border-radius: 0 0 3px 3px;
}
.feature-card:hover::before { width: 80%; }
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card .icon {
  width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  background: var(--primary-light); color: var(--primary);
  transition: var(--transition);
}
.feature-card:hover .icon { background: var(--primary); color: var(--white); transform: scale(1.1); }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }

/* --- About --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image-box {
  width: 100%; aspect-ratio: 4/3; background: var(--bg-light);
  border-radius: var(--radius-xl); display: flex; align-items: center;
  justify-content: center; border: 1px solid var(--border);
  transition: var(--transition-slow); overflow: hidden; position: relative;
}
.about-image-box::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(4,107,210,0.04), transparent); }
.about-image-box:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.about-image-box i { font-size: 90px; color: var(--primary); opacity: 0.25; transition: var(--transition-slow); }
.about-image-box:hover i { opacity: 0.4; transform: scale(1.08); }

.about-content h2 { font-size: 2rem; font-weight: 800; margin-bottom: 18px; }
.about-content .lead { color: var(--text-light); margin-bottom: 22px; font-size: 1.04rem; }
.check-list { list-style: none; margin-bottom: 28px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px;
  font-size: 0.94rem; transition: var(--transition-fast);
}
.check-list li:hover { transform: translateX(4px); }
.check-list li i { color: var(--success); margin-top: 3px; flex-shrink: 0; font-size: 1rem; }

/* --- Industries Grid (Home cards) --- */
.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.industry-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 20px; transition: var(--transition); cursor: pointer;
  display: flex; align-items: flex-start; gap: 14px; position: relative; overflow: hidden;
}
.industry-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 0;
  background: linear-gradient(180deg, transparent, rgba(4,107,210,0.04));
  transition: var(--transition-slow);
}
.industry-card:hover::after { height: 100%; }
.industry-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.industry-card .industry-icon {
  width: 50px; height: 50px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: var(--primary-light); color: var(--primary); flex-shrink: 0;
  transition: var(--transition);
}
.industry-card:hover .industry-icon { background: var(--primary); color: var(--white); }
.industry-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.industry-card p { font-size: 0.8rem; color: var(--text-light); line-height: 1.5; }

/* --- Industry Rows (Products page) --- */
.industry-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
  margin-bottom: 70px; padding-bottom: 50px; border-bottom: 1px solid var(--border);
}
.industry-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.industry-row .industry-image {
  width: 100%; aspect-ratio: 1; background: var(--bg-light);
  border-radius: var(--radius-xl); display: flex; align-items: center;
  justify-content: center; border: 1px solid var(--border);
  transition: var(--transition-slow); overflow: hidden; position: relative;
}
.industry-row .industry-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(4,107,210,0.04), transparent); }
.industry-row .industry-image:hover { transform: scale(1.02); box-shadow: var(--shadow-xl); }
.industry-row .industry-image i { font-size: 100px; color: var(--primary); opacity: 0.28; transition: var(--transition-slow); }
.industry-row .industry-image:hover i { opacity: 0.45; transform: scale(1.06); }

.industry-row h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.4px; }
.industry-row p { color: var(--text-body); font-size: 0.95rem; line-height: 1.8; }

/* --- Stats --- */
.stats-section {
  background: linear-gradient(135deg, var(--primary), #0451a0);
  padding: 60px 0; position: relative; overflow: hidden;
}
.stats-section::before {
  content: ''; position: absolute; top: -40%; right: -15%; width: 400px; height: 400px;
  background: rgba(255,255,255,0.04); border-radius: 50%;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; position: relative; }
.stat-item h3 {
  font-size: 2.6rem; font-weight: 800; color: var(--white);
  margin-bottom: 4px; letter-spacing: -1px;
}
.stat-item p { font-size: 0.9rem; color: rgba(255,255,255,0.7); font-weight: 500; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info h2 { font-size: 2rem; font-weight: 800; margin-bottom: 14px; }
.contact-info .lead { color: var(--text-light); margin-bottom: 32px; }

.contact-card {
  display: flex; align-items: flex-start; gap: 18px; padding: 24px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  margin-bottom: 16px; transition: var(--transition); position: relative; overflow: hidden;
}
.contact-card::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 0; background: var(--primary); border-radius: 0 3px 3px 0;
  transition: var(--transition-slow);
}
.contact-card:hover::before { height: 70%; }
.contact-card:hover { box-shadow: var(--shadow-md); border-color: transparent; transform: translateX(4px); }
.contact-card .contact-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; font-size: 21px;
  flex-shrink: 0; background: var(--primary-light); color: var(--primary);
  transition: var(--transition);
}
.contact-card:hover .contact-icon { background: var(--primary); color: var(--white); }
.contact-card h4 { font-size: 0.98rem; font-weight: 700; margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }

.contact-map-box {
  width: 100%; aspect-ratio: 4/3; background: var(--bg-light);
  border-radius: var(--radius-xl); border: 1px solid var(--border);
  transition: var(--transition-slow); overflow: hidden;
}
.contact-map-box:hover { box-shadow: var(--shadow-lg); }
.contact-map-box i { font-size: 64px; color: var(--primary); opacity: 0.25; }
.contact-map-box p { color: var(--text-light); font-size: 0.9rem; }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), #0451a0);
  padding: 70px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -30%; left: -10%; width: 400px; height: 400px;
  background: rgba(255,255,255,0.05); border-radius: 50%;
}
.cta-banner h2 { color: var(--white); font-size: 2rem; font-weight: 800; margin-bottom: 12px; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 28px; font-size: 0.98rem; position: relative; }

/* --- Footer --- */
.footer { background: var(--text-dark); color: rgba(255,255,255,0.6); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.86rem; line-height: 1.8; margin-bottom: 14px; }
.footer h4 { color: var(--white); font-size: 0.98rem; font-weight: 700; margin-bottom: 18px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links li a {
  color: rgba(255,255,255,0.5); font-size: 0.86rem;
  transition: var(--transition-fast); position: relative;
}
.footer-links li a:hover { color: var(--white); padding-left: 6px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.06); display: flex;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45); font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: white; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 20px 0; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.3); }

/* ============================================
   ANIMATION SYSTEM — Multiple Types
   ============================================ */

/* Fade Up (default) */
[data-aos] { opacity: 0; transform: translateY(36px); transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }

/* Fade Right */
[data-aos="fade-right"] { transform: translateX(-40px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }

/* Fade Left */
[data-aos="fade-left"] { transform: translateX(40px); }
[data-aos="fade-left"].aos-animate { transform: translateX(0); }

/* Zoom In */
[data-aos="zoom-in"] { transform: scale(0.88); }
[data-aos="zoom-in"].aos-animate { transform: scale(1); }

/* Zoom Out */
[data-aos="zoom-out"] { transform: scale(1.12); }
[data-aos="zoom-out"].aos-animate { transform: scale(1); }

/* Fade only (no movement) */
[data-aos="fade"] { transform: none; }
[data-aos="fade"].aos-animate { transform: none; }

/* Stagger children */
[data-aos="stagger-children"] > * { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos="stagger-children"].aos-animate > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
[data-aos="stagger-children"].aos-animate > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
[data-aos="stagger-children"].aos-animate > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
[data-aos="stagger-children"].aos-animate > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
[data-aos="stagger-children"].aos-animate > *:nth-child(5) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
[data-aos="stagger-children"].aos-animate > *:nth-child(6) { transition-delay: 0.55s; opacity: 1; transform: translateY(0); }
[data-aos="stagger-children"].aos-animate > *:nth-child(7) { transition-delay: 0.60s; opacity: 1; transform: translateY(0); }
[data-aos="stagger-children"].aos-animate > *:nth-child(8) { transition-delay: 0.65s; opacity: 1; transform: translateY(0); }

/* Keyframe Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Pulse animation for icons */
.industry-card:hover .industry-icon,
.feature-card:hover .icon,
.contact-card:hover .contact-icon {
  animation: pulse 0.6s ease;
}

/* Smooth page load stagger for hero */
.hero-content > *:nth-child(1) { animation: fadeUp 0.6s ease both; }
.hero-content > *:nth-child(2) { animation: fadeUp 0.6s ease 0.1s both; }
.hero-content > *:nth-child(3) { animation: fadeUp 0.6s ease 0.2s both; }
.hero-content > *:nth-child(4) { animation: fadeUp 0.6s ease 0.3s both; }
.hero-content > *:nth-child(5) { animation: fadeUp 0.6s ease 0.4s both; }

/* ============================================
   RESPONSIVE — Mobile First Enhancements
   ============================================ */

/* --- Tablet (≤992px) --- */
@media (max-width: 992px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-row { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .container { gap: 40px; }
  .hero-content h1 { font-size: 2.3rem; }
  .hero-image-box { max-width: 380px; }
  .about-grid { gap: 40px; }
  .contact-grid { gap: 30px; }
}

/* --- Small Tablet & Large Phone (≤768px) --- */
@media (max-width: 768px) {
  /* Mobile nav */
  .nav-menu {
    position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
    background: var(--white); flex-direction: column; padding: 90px 24px 24px;
    transition: var(--transition-slow); border-left: 1px solid var(--border);
    box-shadow: var(--shadow-xl); gap: 2px; overflow-y: auto;
    -webkit-overflow-scrolling: touch; z-index: 999;
  }
  .nav-menu.active { right: 0; }

  /* Overlay behind mobile menu */
  .nav-menu.active::before {
    content: ''; position: fixed; inset: 0; background: rgba(0,0,0,0.4);
    z-index: -1; pointer-events: none;
  }
  .nav-menu .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: none; box-shadow: none; padding-left: 16px; display: none;
    background: var(--bg-off); border-radius: var(--radius-md);
  }
  .nav-menu .dropdown.active .dropdown-menu { display: block; }
  .nav-menu li a {
    padding: 12px 18px; font-size: 0.92rem;
    -webkit-tap-highlight-color: transparent;
  }

  .hamburger {
    display: flex; -webkit-tap-highlight-color: transparent;
    padding: 12px;
  }
  .nav-cta { display: none; }

  /* Stacked layouts */
  .hero .container,
  .about-grid,
  .contact-grid,
  .product-detail-grid { grid-template-columns: 1fr; }

  /* Hero */
  .hero { padding: 120px 0 50px; text-align: center; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { max-width: 100%; font-size: 0.95rem; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; flex-wrap: wrap; gap: 24px; }
  .hero-stat h3 { font-size: 1.6rem; }
  .hero-visual { display: none; }

  /* Sections */
  .section { padding: 60px 0; }
  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: 1.7rem; }
  .section-header .label { font-size: 0.72rem; }

  /* Page banner */
  .page-banner { padding: 110px 0 50px; }
  .page-banner h1 { font-size: 1.8rem; }

  /* Grids */
  .features-grid { gap: 14px; }
  .feature-card { padding: 28px 16px; }
  .feature-card h3 { font-size: 0.95rem; }
  .feature-card .icon { width: 50px; height: 50px; font-size: 22px; }

  .industries-grid { grid-template-columns: 1fr; gap: 12px; }
  .industry-card { padding: 22px 16px; }
  .industry-card .industry-icon { width: 44px; height: 44px; font-size: 20px; }

  /* Industry rows */
  .industry-row {
    grid-template-columns: 1fr; gap: 24px;
    margin-bottom: 40px; padding-bottom: 30px;
  }
  .industry-row h2 { font-size: 1.3rem; }
  .industry-row p { font-size: 0.9rem; }
  .industry-row .industry-image { aspect-ratio: 4/3; }

  /* Stats */
  .stats-section { padding: 40px 0; }
  .stat-item h3 { font-size: 2rem; }

  /* CTA */
  .cta-banner { padding: 50px 0; }
  .cta-banner h2 { font-size: 1.5rem; }
  .cta-banner p { font-size: 0.9rem; }

  /* Footer */
  .footer { padding: 40px 0 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer h4 { font-size: 0.9rem; margin-bottom: 12px; }
  .footer-links li a { font-size: 0.82rem; }

  /* Contact */
  .contact-card { padding: 18px; }
  .contact-card .contact-icon { width: 44px; height: 44px; font-size: 18px; }
  .contact-map-box { aspect-ratio: 16/9; min-height: 200px; }

  /* Buttons */
  .btn { padding: 12px 24px; font-size: 0.85rem; }

  /* Navbar */
  .navbar .container { min-height: 64px; }
  .navbar-brand img { height: 36px; }
}

/* --- Small Phone (≤480px) --- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero-content h1 { font-size: 1.7rem; }
  .hero-content p { font-size: 0.9rem; }
  .hero-buttons { flex-direction: column; align-items: center; width: 100%; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 16px; }
  .hero-stat h3 { font-size: 1.4rem; }

  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat-item h3 { font-size: 1.8rem; }

  .section-header h2 { font-size: 1.5rem; }
  .page-banner h1 { font-size: 1.6rem; }

  .btn { width: 100%; justify-content: center; padding: 14px 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { font-size: 0.75rem; }

  /* Touch-friendly tap targets */
  .nav-menu li a { padding: 14px 18px; min-height: 48px; display: flex; align-items: center; }
  .footer-links li a { padding: 6px 0; display: block; min-height: 36px; }

  .contact-card { flex-direction: column; gap: 12px; }
  .about-content h2 { font-size: 1.5rem; }
  .contact-info h2 { font-size: 1.5rem; }

  /* Product detail on mobile */
  .industry-row .industry-image { aspect-ratio: 3/2; }
  .industry-row h2 { font-size: 1.2rem; }
}

/* --- Ensure images are responsive --- */
img { max-width: 100%; height: auto; display: block; }

/* --- Prevent horizontal overflow --- */
body { overflow-x: hidden; }

/* --- Smooth tap highlights --- */
a, button, .btn, .industry-card, .feature-card, .contact-card {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
