/*
Theme Name: RAFED Scrap & Recycling
Theme URI: https://rafedscrap.com
Author: RAFED Team
Author URI: https://rafedscrap.com
Description: موقع احترافي لشركة RAFED مع انيميشنات جميلة وتصميم عصري
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rafed-theme
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

:root {
  --primary: #1a9b8e;
  --secondary: #2d3e50;
  --light: #f8f9fa;
  --white: #ffffff;
  --text: #333333;
  --border: #e0e0e0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.6;
}

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

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

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

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

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

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

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

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

/* ===== HEADER ===== */
header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideInDown 0.6s ease-out;
}

.site-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
  animation: fadeInLeft 0.8s ease-out;
}

.site-branding img {
  height: 50px;
  width: auto;
  animation: float 3s ease-in-out infinite;
}

.site-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary);
  margin: 0;
}

.site-description {
  font-size: 0.8rem;
  color: var(--secondary);
  margin: 0;
}

/* ===== NAVIGATION ===== */
.main-navigation {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-navigation a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  animation: fadeInDown 0.8s ease-out;
}

.main-navigation a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.main-navigation a:hover::after {
  width: 100%;
}

/* ===== BUTTONS ===== */
.btn, button, input[type="submit"] {
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  animation: scaleIn 0.8s ease-out 0.2s both;
}

.btn:hover, button:hover, input[type="submit"]:hover {
  background: var(--secondary);
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(26, 155, 142, 0.4);
}

.btn:active, button:active {
  transform: scale(0.98);
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, rgba(26, 155, 142, 0.1) 0%, rgba(45, 62, 80, 0.1) 100%),
              url('https://images.unsplash.com/photo-1581092918056-0c4c3acd3789?w=1200&h=600&fit=crop');
  background-size: cover;
  background-position: center;
  padding: 8rem 2rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ===== SECTIONS ===== */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  animation: fadeInDown 0.8s ease-out;
}

section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
  animation: fadeInLeft 0.6s ease-out;
}

/* ===== CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: all 0.3s ease;
  animation: scaleIn 0.6s ease-out;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(26, 155, 142, 0.2);
  border-color: var(--primary);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: inherit;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 155, 142, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--secondary);
  color: var(--white);
  padding: 3rem 2rem;
  margin-top: 4rem;
  animation: slideInUp 0.8s ease-out;
}

.site-footer {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-widget h4 {
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease-out;
}

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

.footer-widget ul li {
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.6s ease-out;
}

.footer-widget a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-widget a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.site-info {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    gap: 1rem;
  }

  .main-navigation {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

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

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

  section h2 {
    font-size: 1.8rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-4 { margin-bottom: 4rem; }

.hidden {
  display: none;
}

.success {
  color: #27ae60;
  background: #d5f4e6;
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
  animation: slideInDown 0.5s ease-out;
}

.error {
  color: #e74c3c;
  background: #fadbd8;
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
  animation: slideInDown 0.5s ease-out;
}
