/*
Theme Name: Amr ElGohary - Digital Solutions (Master Edition)
Theme URI: https://amrelgohary.com
Author: Amr ElGohary
Description: The ultimate pixel-perfect theme for Amr ElGohary Digital Solutions.
Version: 4.0.0
Text Domain: amr-elgohary
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&display=swap');

:root {
  --primary-blue: #002d5a;
  --light-blue: #007bff;
  --gradient-blue: linear-gradient(135deg, #002d5a 0%, #007bff 100%);
  --secondary-gold: #d4af37;
  --accent-yellow: #ffcc00;
  --dark-navy: #000c1a;
  --white: #ffffff;
  --bg-gray: #f4f7fa;
  --text-dark: #001f3f;
  --text-muted: #6c757d;
}

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

body {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  text-align: right;
  background-color: #fff;
  color: var(--text-dark);
  overflow-x: hidden;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Top Bar --- */
.top-bar {
  background-color: var(--dark-navy);
  color: #fff;
  padding: 12px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}
.top-bar .content { display: flex; justify-content: space-between; align-items: center; }
.top-bar .socials a { color: #fff; margin-left: 15px; font-size: 16px; text-decoration: none; transition: 0.3s; }
.top-bar .socials a:hover { color: var(--secondary-gold); }
.top-bar .info { display: flex; gap: 25px; align-items: center; }
.top-bar .info a { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.top-bar .lang { color: var(--secondary-gold); font-weight: 800; border-right: 1px solid #444; padding-right: 15px; margin-right: 15px; }

/* --- Navbar --- */
header {
  background-color: var(--primary-blue);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.navbar { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 75px; filter: drop-shadow(0 0 5px rgba(255,255,255,0.2)); }

nav ul { display: flex; list-style: none; gap: 30px; }
nav a { color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; transition: 0.3s; position: relative; }
nav a::after { content: ''; position: absolute; bottom: -5px; right: 0; width: 0; height: 2px; background: var(--secondary-gold); transition: 0.3s; }
nav a:hover::after, nav a.active::after { width: 100%; }
nav a:hover, nav a.active { color: var(--secondary-gold); }

.btn-quote { background-color: var(--accent-yellow); color: #000; padding: 12px 25px; border-radius: 5px; font-weight: 900; font-size: 15px; border: none; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 10px rgba(255, 204, 0, 0.3); }
.btn-quote:hover { background-color: #fff; transform: translateY(-2px); }

/* --- Hero Section --- */
.hero {
  background: var(--primary-blue) url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
  padding: 80px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 70% 50%, rgba(0, 123, 255, 0.2) 0%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; position: relative; z-index: 2; }
.hero-text p.sub { color: var(--accent-yellow); font-weight: 800; font-size: 15px; margin-bottom: 15px; letter-spacing: 1px; text-transform: uppercase; }
.hero-text h1 { font-size: 56px; line-height: 1.2; margin-bottom: 25px; font-weight: 900; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.hero-text h1 span { color: var(--accent-yellow); }
.hero-text p.desc { font-size: 20px; opacity: 0.9; margin-bottom: 45px; line-height: 1.8; max-width: 600px; }
.hero-btns { display: flex; gap: 20px; }
.btn-start { background-color: var(--accent-yellow); color: #000; padding: 18px 40px; border-radius: 5px; font-weight: 900; text-decoration: none; display: flex; align-items: center; gap: 12px; transition: 0.3s; box-shadow: 0 5px 15px rgba(255, 204, 0, 0.4); }
.btn-contact { border: 2px solid #fff; color: #fff; padding: 18px 40px; border-radius: 5px; font-weight: 900; text-decoration: none; transition: 0.3s; background: rgba(255,255,255,0.05); }
.btn-start:hover { background-color: #fff; transform: translateY(-3px); }
.btn-contact:hover { background: #fff; color: var(--primary-blue); }

.hero-img { position: relative; }
.hero-img img { width: 100%; border-radius: 20px; border: 5px solid rgba(255,255,255,0.1); box-shadow: 0 30px 60px rgba(0,0,0,0.6); position: relative; z-index: 2; }
.hero-img .floating-logo { position: absolute; top: -50px; right: -50px; width: 250px; opacity: 0.1; z-index: 1; }

/* --- Stats Bar --- */
.stats-bar {
  background-color: var(--dark-navy);
  padding: 35px 0;
  border-bottom: 5px solid var(--accent-yellow);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-box { text-align: center; color: #fff; border-left: 1px solid rgba(255,255,255,0.1); }
.stat-box:last-child { border-left: none; }
.stat-box h2 { color: var(--accent-yellow); font-size: 42px; font-weight: 900; margin-bottom: 8px; }
.stat-box p { font-size: 16px; font-weight: 700; opacity: 0.8; }

/* --- Services Section --- */
.services { padding: 120px 0; background-color: #fff; }
.section-title { text-align: center; margin-bottom: 80px; }
.section-title h2 { font-size: 42px; color: var(--primary-blue); font-weight: 900; position: relative; display: inline-block; padding-bottom: 25px; }
.section-title h2::after { content: ''; position: absolute; bottom: 0; left: 20%; width: 60%; height: 5px; background: var(--accent-yellow); border-radius: 10px; }
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 25px; }
.service-item { 
  background: #fff; border: 1px solid #f0f0f0; padding: 45px 25px; border-radius: 20px; text-align: center; 
  transition: all 0.4s; box-shadow: 0 10px 30px rgba(0,0,0,0.03); position: relative; overflow: hidden;
}
.service-item::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--gradient-blue); opacity: 0; transition: 0.3s; }
.service-item:hover { transform: translateY(-15px); border-color: var(--light-blue); box-shadow: 0 20px 45px rgba(0,0,0,0.1); }
.service-item:hover::before { opacity: 1; }
.service-icon { font-size: 50px; margin-bottom: 25px; color: var(--light-blue); }
.service-item h4 { font-size: 19px; font-weight: 900; margin-bottom: 15px; color: var(--primary-blue); }
.service-item p { font-size: 14px; color: #666; line-height: 1.8; }

/* --- Why Us Section --- */
.why-us { padding: 120px 0; background-color: var(--primary-blue); color: #fff; position: relative; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.why-text h2 { font-size: 46px; margin-bottom: 40px; font-weight: 900; }
.why-list { list-style: none; }
.why-list li { margin-bottom: 30px; font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 25px; }
.why-list li::before { content: '✔'; color: var(--accent-yellow); font-size: 32px; font-weight: 900; }
.why-img img { width: 100%; border-radius: 25px; border: 8px solid rgba(255, 204, 0, 0.3); box-shadow: 0 30px 70px rgba(0,0,0,0.5); }

/* --- Portfolio Section --- */
.portfolio { padding: 120px 0; background-color: var(--bg-gray); }
.port-tabs { display: flex; justify-content: center; gap: 15px; margin-bottom: 60px; flex-wrap: wrap; }
.tab-btn { padding: 14px 35px; border-radius: 40px; background: #fff; border: 1px solid #eee; cursor: pointer; font-weight: 800; font-size: 16px; transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.tab-btn.active { background: var(--accent-yellow); border-color: var(--accent-yellow); color: #000; }
.port-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 25px; }
.port-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.08); transition: 0.4s; }
.port-card:hover { transform: translateY(-10px); }
.port-card img { width: 100%; height: 240px; object-fit: cover; }
.port-desc { padding: 25px; text-align: center; }
.port-desc h5 { font-size: 19px; font-weight: 900; margin-bottom: 10px; color: var(--primary-blue); }
.port-desc p { font-size: 14px; color: var(--light-blue); font-weight: 700; }

/* --- Pricing Section --- */
.pricing { padding: 120px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.price-box { border: 1px solid #eee; padding: 60px 30px; border-radius: 25px; text-align: center; transition: 0.4s; position: relative; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.02); }
.price-box.popular { border: 4px solid var(--accent-yellow); box-shadow: 0 25px 50px rgba(255, 204, 0, 0.2); transform: scale(1.1); z-index: 10; }
.badge-pop { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); background: var(--accent-yellow); color: #000; padding: 10px 30px; border-radius: 30px; font-size: 14px; font-weight: 900; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.price-box h4 { font-size: 28px; font-weight: 900; margin-bottom: 20px; color: var(--primary-blue); }
.price-box .cost { font-size: 54px; font-weight: 900; color: var(--primary-blue); margin-bottom: 30px; }
.price-box .cost small { font-size: 20px; font-weight: 800; color: var(--light-blue); }
.price-box ul { list-style: none; text-align: right; margin-bottom: 40px; }
.price-box li { padding: 15px 0; border-bottom: 1px solid #f0f0f0; font-size: 16px; color: #444; font-weight: 600; }
.btn-order { background: var(--accent-yellow); color: #000; padding: 18px 0; width: 100%; display: block; border-radius: 10px; font-weight: 900; text-decoration: none; transition: 0.3s; font-size: 18px; }
.btn-order:hover { background: var(--primary-blue); color: #fff; }

/* --- Contact Section --- */
.contact { background-color: var(--primary-blue); color: #fff; padding: 120px 0; position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.8fr 1fr; gap: 60px; align-items: start; }
.contact-info h3 { font-size: 36px; font-weight: 900; margin-bottom: 30px; }
.contact-info p { margin-bottom: 25px; font-size: 18px; display: flex; align-items: center; gap: 15px; font-weight: 700; }
.contact-form { background: rgba(255,255,255,0.1); padding: 50px; border-radius: 25px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); backdrop-filter: blur(10px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 25px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 18px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); color: #fff; font-family: 'Cairo', sans-serif; font-size: 16px; }
.btn-send { width: 100%; padding: 20px; background: var(--accent-yellow); border: none; border-radius: 10px; font-weight: 900; font-size: 20px; cursor: pointer; margin-top: 20px; transition: 0.3s; box-shadow: 0 10px 20px rgba(255, 204, 0, 0.3); }
.btn-send:hover { background: #fff; color: var(--primary-blue); transform: scale(1.02); }
.contact-logo { text-align: center; }
.contact-logo img { height: 120px; margin-bottom: 25px; }
.contact-logo p { opacity: 0.8; font-size: 16px; line-height: 2; font-weight: 700; }

/* --- Footer --- */
footer { background-color: var(--dark-navy); color: #fff; padding: 100px 0 40px; border-top: 6px solid var(--accent-yellow); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 60px; margin-bottom: 60px; }
.footer-col h4 { color: var(--accent-yellow); margin-bottom: 35px; font-size: 22px; font-weight: 900; text-transform: uppercase; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 18px; font-size: 16px; opacity: 0.9; font-weight: 700; }
.footer-col a { color: #fff; text-decoration: none; transition: 0.3s; display: inline-block; }
.footer-col a:hover { color: var(--accent-yellow); transform: translateX(-10px); }
.footer-col.news input { width: 100%; padding: 18px; border-radius: 10px; border: none; margin-bottom: 20px; background: #111; color: #fff; font-weight: 600; }
.footer-col.news button { width: 100%; padding: 18px; background: var(--accent-yellow); border: none; border-radius: 10px; font-weight: 900; cursor: pointer; font-size: 18px; }

@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .port-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero-grid, .why-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-text h1 { font-size: 42px; }
}
