/* Rotagri Plast — version HTML statique */
:root {
  --brand-50: #f0fdf4;
  --brand-100: #dcfce7;
  --brand-200: #bbf7d0;
  --brand-500: #22c55e;
  --brand-600: #16a34a;
  --brand-700: #15803d;
  --slate-50: #f8fafc;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-arabic: "Noto Sans Arabic", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--slate-50);
  color: var(--slate-800);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

html[lang="ar"] body {
  font-family: var(--font-arabic);
}

.arabic {
  font-family: var(--font-arabic);
}

/* Background */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom right, var(--slate-50), #fff, var(--brand-50));
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
}

.orb-a {
  width: 24rem;
  height: 24rem;
  top: 10%;
  left: -8%;
  background: rgb(187 247 208 / 0.4);
  animation: float-a 18s ease-in-out infinite;
}

.orb-b {
  width: 20rem;
  height: 20rem;
  bottom: 10%;
  right: -6%;
  background: rgb(191 219 254 / 0.3);
  animation: float-b 24s ease-in-out infinite;
}

@keyframes float-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}

@keyframes float-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-25px, 25px); }
}

/* Layout */
.container {
  width: min(100% - 3rem, 72rem);
  margin-inline: auto;
}

.site {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

/* Header */
.header {
  padding: 2rem 1.5rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  height: clamp(4rem, 10vw, 5.5rem);
  width: auto;
  object-fit: contain;
}

.lang-select-wrap {
  position: relative;
}

.lang-select {
  appearance: none;
  cursor: pointer;
  border: 1px solid rgb(226 232 240 / 0.8);
  background: rgb(255 255 255 / 0.9);
  border-radius: 0.75rem;
  padding: 0.625rem 2rem 0.625rem 2.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.06);
}

.lang-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--slate-400);
  pointer-events: none;
}

/* Hero */
.hero {
  padding: 3rem 1.5rem 5rem;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--brand-200);
  background: var(--brand-50);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-700);
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brand-600);
  animation: ping 1.5s ease infinite;
}

@keyframes ping {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  margin-top: 2rem;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--slate-900);
  text-wrap: balance;
}

.hero p {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
  color: var(--slate-600);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  background: var(--brand-600);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 15px -3px rgb(22 163 74 / 0.25);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn:hover {
  background: var(--brand-700);
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgb(22 163 74 / 0.3);
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
}

.section-title {
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
}

.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--slate-900);
  text-wrap: balance;
}

.section-title p {
  margin-top: 1rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--slate-600);
}

/* Cards */
.cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(226 232 240 / 0.8);
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.8);
  padding: 2rem;
  backdrop-filter: blur(4px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-200);
  box-shadow: 0 10px 25px rgb(220 252 231 / 0.5);
}

.card-icon {
  display: inline-flex;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: var(--brand-50);
  color: var(--brand-600);
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--slate-900);
}

.card p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--slate-600);
}

/* Contact */
.contact-box {
  max-width: 48rem;
  margin-inline: auto;
  border: 1px solid rgb(226 232 240 / 0.8);
  border-radius: 1.5rem;
  background: rgb(255 255 255 / 0.7);
  padding: 2.5rem 2rem;
  text-align: center;
  backdrop-filter: blur(4px);
}

@media (min-width: 640px) {
  .contact-box { padding: 3.5rem; }
}

.contact-email {
  display: block;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--slate-500);
  text-decoration: none;
}

.contact-email:hover {
  color: var(--brand-600);
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid rgb(226 232 240 / 0.8);
  background: rgb(255 255 255 / 0.5);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--slate-500);
}

/* Welcome overlay */
.welcome {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(165deg, #f8fafc 0%, #f0fdf4 45%, #fff 100%);
  transition: opacity 0.6s;
}

.welcome.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.welcome-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 40vh;
  padding: 2rem;
}

.welcome-hero-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 56rem;
  min-height: 8rem;
  overflow: hidden;
}

.welcome-hero-word {
  font-weight: 700;
  text-align: center;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #0f172a, #15803d, #0f172a);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

.welcome-brand {
  margin-top: 2.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--slate-400);
}

.welcome-progress-wrap {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 12rem;
  height: 4px;
  border-radius: 9999px;
  background: rgb(226 232 240 / 0.8);
  overflow: hidden;
}

.welcome-progress {
  height: 100%;
  width: 0;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--brand-500), var(--brand-600));
  transition: width 0.4s ease;
}

/* Marquee */
.marquee-zone {
  position: relative;
  z-index: 2;
  padding: 1rem 0;
  overflow: hidden;
}

.marquee-zone.faded {
  opacity: 0.65;
}

.marquee-row {
  display: flex;
  gap: 3rem;
  width: max-content;
  white-space: nowrap;
  animation: marquee-ltr 28s linear infinite;
}

.marquee-row.reverse {
  animation-name: marquee-rtl;
}

.marquee-item {
  font-weight: 700;
  color: rgb(21 128 61 / 0.4);
  flex-shrink: 0;
}

@keyframes marquee-ltr {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@keyframes marquee-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Welcome slides */
.slide-from-right {
  animation: slide-from-right 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.slide-from-left {
  animation: slide-from-left 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.slide-to-left {
  animation: slide-to-left 0.34s ease forwards;
}

.slide-to-right {
  animation: slide-to-right 0.34s ease forwards;
}

@keyframes slide-from-right {
  from { opacity: 0; transform: translateX(55%) scale(0.92); filter: blur(10px); }
  to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

@keyframes slide-from-left {
  from { opacity: 0; transform: translateX(-55%) scale(0.92); filter: blur(10px); }
  to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

@keyframes slide-to-left {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-55%) scale(0.95); filter: blur(8px); }
}

@keyframes slide-to-right {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(55%) scale(0.95); filter: blur(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .orb-a, .orb-b, .marquee-row, .badge-dot,
  .slide-from-right, .slide-from-left, .slide-to-left, .slide-to-right {
    animation: none;
  }
}
