/* Gulf Scrap Landing Page Styles */

:root {
  --primary-green: #2E7D32;
  --light-green: #81C784;
  --lighter-green: #E8F5E8;
  --accent-orange: #FF9800;
  --bg-white: #FFFFFF;
  --surface-gray: #F5F5F5;
  --text-primary: #424242;
  --text-secondary: #757575;
  --success: #388E3C;
  --shadow: rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

/* Arabic RTL Support */
body[dir="rtl"] {
  direction: rtl;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px var(--shadow);
  z-index: 1000;
  animation: slideDown 0.5s ease-out;
}

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

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-container img {
  height: 50px;
  width: auto;
  animation: fadeIn 0.8s ease-out;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-green);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-orange);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-green);
}

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

.lang-switch {
  padding: 0.5rem 1rem;
  background-color: var(--lighter-green);
  color: var(--primary-green);
  border: none;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-switch:hover {
  background-color: var(--primary-green);
  color: white;
  transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 28px;
  height: 3px;
  background-color: var(--primary-green);
  border-radius: 3px;
  transition: all 0.3s ease;
}

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

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

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--lighter-green) 0%, var(--bg-white) 100%);
  padding: 100px 5% 50px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: var(--light-green);
  opacity: 0.1;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: var(--accent-orange);
  opacity: 0.1;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1400px;
  align-items: center;
  z-index: 1;
}

.hero-text {
  animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-text h1 {
  font-size: 3rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero-text .highlight {
  color: var(--accent-orange);
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--success) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
  background: var(--primary-green);
  color: white;
  transform: translateY(-3px);
}

.hero-image {
  animation: fadeInRight 0.8s ease-out;
  position: relative;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  filter: drop-shadow(0 10px 30px var(--shadow));
  animation: bounce 3s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Features Section */
.features {
  padding: 80px 5%;
  background: var(--bg-white);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
  font-weight: 800;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 4rem;
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 5px 20px var(--shadow);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(46, 125, 50, 0.2);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  color: var(--primary-green);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* App Store Badges Section */
.download-section {
  padding: 80px 5%;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--success) 100%);
  text-align: center;
  color: white;
}

.download-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.download-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.app-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.app-badge {
  height: 60px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.app-badge:hover {
  transform: scale(1.05);
}

/* Footer */
footer {
  background: var(--text-primary);
  color: white;
  padding: 3rem 5%;
  text-align: center;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--light-green);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Legal Pages */
.legal-page {
  padding: 120px 5% 80px;
  max-width: 900px;
  margin: 0 auto;
}

.legal-page h1 {
  color: var(--primary-green);
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.legal-page .last-updated {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-style: italic;
}

.legal-page h2 {
  color: var(--primary-green);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.legal-page h3 {
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.legal-page p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.legal-page ul, .legal-page ol {
  margin-bottom: 1rem;
  margin-left: 2rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.legal-page li {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 968px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    gap: 0;
    padding: 2rem 0;
    transition: left 0.3s ease;
    box-shadow: 0 5px 20px var(--shadow);
    overflow-y: auto;
  }

  body[dir="rtl"] .nav-links {
    left: auto;
    right: -100%;
    transition: right 0.3s ease;
  }

  .nav-links.active {
    left: 0;
  }

  body[dir="rtl"] .nav-links.active {
    right: 0;
    left: auto;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--surface-gray);
  }

  .nav-links a {
    display: block;
    padding: 0.5rem 2rem;
    font-size: 1.1rem;
  }

  .nav-links a::after {
    display: none;
  }

  .lang-switch {
    width: 80%;
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 3%;
  }

  .logo-container img {
    height: 40px;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .hero {
    padding: 100px 3% 50px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .cta-buttons {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-width: 300px;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .features {
    padding: 50px 3%;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .download-section {
    padding: 50px 3%;
  }

  .download-section h2 {
    font-size: 2rem;
  }

  .download-section p {
    font-size: 1rem;
  }

  .app-badge {
    height: 50px;
  }

  footer {
    padding: 2rem 3%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .legal-page {
    padding: 100px 3% 50px;
  }

  .legal-page h1 {
    font-size: 2rem;
  }

  .legal-page h2 {
    font-size: 1.5rem;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Accessibility */
.btn:focus, a:focus {
  outline: 3px solid var(--accent-orange);
  outline-offset: 2px;
}

