/* ============================================================
   EyeRexUs – Global Styles (Tailwind CDN + custom overrides)
   Brand accent: #b22234  |  Navy: #0b1e3a
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --brand:       #b22234;
  --brand-dark:  #8b1a2a;
  --brand-light: #ffe5e9;
  --navy:        #0b1e3a;
  --navy-mid:    #1f2a3f;
  --navy-soft:   #3b4b62;
  --bg:          #fcfaf8;
  --card-bg:     #ffffff;
}

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

html { scroll-behavior: smooth; overflow-y: scroll; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--navy-mid);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.02em;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 3px; }

/* ── Selection ── */
::selection { background: var(--brand); color: white; }

/* ── Smooth page fade-in ── */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-enter { animation: pageFadeIn 0.5s ease forwards; }

/* ── Reveal animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(178,34,52,0.4); }
  70%  { box-shadow: 0 0 0 16px rgba(178,34,52,0); }
  100% { box-shadow: 0 0 0 0 rgba(178,34,52,0); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.reveal { opacity: 0; }
.reveal.visible { animation: fadeUp 0.7s ease forwards; }
.reveal-left.visible  { animation: fadeLeft 0.7s ease forwards; }
.reveal-right.visible { animation: fadeRight 0.7s ease forwards; }
.reveal-scale.visible { animation: scaleIn 0.6s ease forwards; }

/* stagger delays */
.delay-1 { animation-delay: 0.1s !important; }
.delay-2 { animation-delay: 0.2s !important; }
.delay-3 { animation-delay: 0.3s !important; }
.delay-4 { animation-delay: 0.4s !important; }
.delay-5 { animation-delay: 0.5s !important; }
.delay-6 { animation-delay: 0.6s !important; }

/* ── NAVBAR ── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--brand);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
#navbar.nav-hidden { transform: translateY(-100%); }
#navbar.nav-scrolled { box-shadow: 0 8px 32px rgba(0,0,0,0.25); }

.logo-img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.3);
  transition: transform 0.3s;
}
.logo-img:hover { transform: scale(1.08); }

.nav-link {
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: #ffdab9;
  transition: width 0.3s;
}
.nav-link:hover { color: white; }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: white; font-weight: 600; }
.nav-link.active::after { width: 100%; }

.nav-btn {
  background: white;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1.3rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}
.nav-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
/* Login Button */
.nav-btn-login {
  background: transparent;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.3rem;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-btn-login:hover {
  background: white;
  color: var(--brand);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* Mobile nav */
#mobileMenu {
  position: fixed;
  top: 0; right: -100%;
  width: 280px; height: 100vh;
  background: var(--brand);
  z-index: 99998;
  padding: 90px 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.3);
}
#mobileMenu.open { right: 0; }

#menuOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 99997;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#menuOverlay.open { opacity: 1; pointer-events: all; }

.mobile-link {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  display: block;
}
.mobile-link:hover { background: rgba(255,255,255,0.12); color: white; }

@keyframes mobileItemIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
#mobileMenu.open .mobile-link {
  animation: mobileItemIn 0.3s ease forwards;
  opacity: 0;
}
#mobileMenu.open .mobile-link:nth-child(1)  { animation-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2)  { animation-delay: 0.10s; }
#mobileMenu.open .mobile-link:nth-child(3)  { animation-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4)  { animation-delay: 0.20s; }
#mobileMenu.open .mobile-link:nth-child(5)  { animation-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(6)  { animation-delay: 0.30s; }
#mobileMenu.open .mobile-link:nth-child(7)  { animation-delay: 0.35s; }
#mobileMenu.open .mobile-link:nth-child(8)  { animation-delay: 0.40s; }
#mobileMenu.open .mobile-link:nth-child(9)  { animation-delay: 0.45s; }

/* ── BUTTONS ── */
.btn-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand);
  color: white;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 28px -8px rgba(178,34,52,0.45);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.btn-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.btn-brand:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -10px rgba(178,34,52,0.5); }
.btn-brand:hover::before { transform: scaleX(1); }
.btn-brand span, .btn-brand i { position: relative; z-index: 1; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--brand);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--brand);
  cursor: pointer;
  transition: all 0.3s;
}
.btn-outline:hover { background: var(--brand); color: white; transform: translateY(-2px); }

/* ── CARDS ── */
.card-premium {
  background: white;
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid rgba(178,34,52,0.08);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.card-premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 56px -20px rgba(178,34,52,0.22);
  border-color: rgba(178,34,52,0.25);
}

/* ── SECTION HEADING ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand) 0%, #e05c6e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── FOOTER ── */
.footer-main {
  background: var(--brand);
  color: rgba(255,255,255,0.9);
  padding: 5rem 0 2rem;
  border-top: 5px solid var(--brand-dark);
}
.footer-main a { color: rgba(255,218,185,0.9); text-decoration: none; transition: color 0.2s; }
.footer-main a:hover { color: white; }
.footer-divider { border-color: rgba(255,255,255,0.15); }

/* ── HERO ── */
.hero-blob {
  border-radius: 40% 60% 30% 70% / 50% 40% 60% 50%;
  overflow: hidden;
  box-shadow: 30px 30px 60px -20px rgba(0,0,0,0.25);
  animation: float 6s ease-in-out infinite;
}

/* ── PILL / BADGE ── */
.pill-red {
  background: rgba(178,34,52,0.08);
  border: 1px solid rgba(178,34,52,0.25);
  color: var(--brand-dark);
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s;
}
.pill-red:hover { background: var(--brand); color: white; border-color: var(--brand); }

/* ── TESTIMONIAL ── */
.testimonial-card {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(178,34,52,0.1);
  box-shadow: 0 20px 40px -20px rgba(178,34,52,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 50px -18px rgba(178,34,52,0.25);
}

/* ── CONTACT FORM ── */
.form-input {
  width: 100%;
  padding: 0.9rem 1.3rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}
.form-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(178,34,52,0.1);
}

/* ── PHILOSOPHY BLOCK ── */
.philosophy-dark {
  background: var(--navy);
  border-radius: 48px;
  padding: 3.5rem;
  color: #eae3db;
}

/* ── INDUSTRY / SERVICE CARDS ── */
.industry-card, .service-card-new {
  background: white;
  border-radius: 24px;
  padding: 1.8rem;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 16px 32px -12px rgba(0,35,70,0.1);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}
.industry-card:hover, .service-card-new:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -14px rgba(0,35,70,0.2);
  border-color: var(--brand);
}

/* ── PRODUCT CARD ── */
.product-card-new {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 36px;
  padding: 2rem 1.8rem;
  box-shadow: 0 24px 48px -18px rgba(100,20,20,0.18);
  transition: all 0.3s cubic-bezier(0.2,0,0,1);
  display: flex;
  flex-direction: column;
}
.product-card-new:hover {
  transform: translateY(-8px);
  border-color: rgba(178,52,52,0.3);
  box-shadow: 0 32px 60px -18px rgba(178,52,52,0.28);
}

/* ── ANIMATED GRADIENT HERO BG ── */
.hero-gradient-bg {
  background: linear-gradient(135deg, #f6f2ed 0%, #fdf0f2 50%, #f6f2ed 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

/* ── COUNTER ANIMATION ── */
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}

/* ── TYPING CURSOR ── */
.typing-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--brand);
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── PARTICLE DOT ── */
.dot-accent {
  width: 8px; height: 8px;
  background: var(--brand);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-ring 2s infinite;
}

/* ── ABOUT PAGE ── */
.about-badge {
  background: #ffe9ec;
  color: var(--brand);
  border: 1px solid rgba(178,34,52,0.2);
  border-radius: 40px;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ── POLICY / TERMS ── */
.policy-section-block {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  border-left: 5px solid var(--brand);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
}

/* ── RESPONSIVE HELPERS ── */
@media (max-width: 768px) {
  .philosophy-dark { border-radius: 28px; padding: 2rem; }
  .hero-blob { animation: none; }
}

/* ── GLOW EFFECT ── */
.glow-brand {
  box-shadow: 0 0 30px rgba(178,34,52,0.3), 0 0 60px rgba(178,34,52,0.1);
}

/* ── HORIZONTAL SCROLL SNAP ── */
.snap-x-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}
.snap-x-scroll::-webkit-scrollbar { height: 4px; }
.snap-x-scroll > * { scroll-snap-align: start; flex-shrink: 0; }

/* ── CAREERS ── */
.position-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(178,34,52,0.06);
  border: 1px solid rgba(178,34,52,0.2);
  color: var(--navy-mid);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s;
}
.position-tag:hover { background: var(--brand); color: white; border-color: var(--brand); }
.position-tag i { color: var(--brand); transition: color 0.25s; }
.position-tag:hover i { color: white; }

/* ── SUBSIDIARIES ── */
.sub-card {
  background: white;
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid rgba(178,34,52,0.08);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}
.sub-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 56px -20px rgba(178,34,52,0.22);
  border-color: rgba(178,34,52,0.3);
}

/* ── CONTACT PAGE ── */
.contact-info-card {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(178,34,52,0.12);
}

/* ── LOADING SPINNER ── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── BACK TO TOP ── */
#backToTop {
  position: fixed;
  bottom: 1rem; right: 1rem;
  width: 40px; height: 40px;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(178,34,52,0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9990;
}
@media (min-width: 768px) {
  #backToTop {
    bottom: 2rem; right: 2rem;
    width: 48px; height: 48px;
    font-size: 1.2rem;
  }
}
#backToTop.visible { opacity: 1; transform: translateY(0); }
#backToTop:hover { background: var(--brand-dark); transform: translateY(-3px); }





/* ── GOOGLE STYLE SEARCH RESULT ── */
.search-card {
  background: white;
  padding: 20px;
  border-radius: 16px;
  transition: 0.3s;
}

.search-card:hover {
  background: #f9fafb;
}

.search-title {
  color: #1a0dab;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
}

.search-title:hover {
  text-decoration: underline;
}

.search-desc {
  color: #4b5563;
  font-size: 14px;
  margin-top: 5px;
  line-height: 1.5;
}

/* Horizontal links like Google */
.search-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.search-links span {
  color: #1a0dab;
  font-size: 14px;
  cursor: pointer;
}

.search-links span:hover {
  text-decoration: underline;
}

