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

/* =========================================
   MOHAMMED ALYAMANI WEBSITE
   Complete Responsive Design
========================================= */

/* 1. Variables */

:root {
  --navy: #101d35;
  --navy-light: #192c4b;
  --gold: #f5b82e;
  --gold-light: #ffcf65;
  --white: #ffffff;
  --light: #f5f7fa;
  --gray: #64748b;
  --dark: #172033;
  --green: #25D366;
  --shadow: 0 10px 35px rgba(16, 29, 53, 0.09);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  background: var(--white);
  color: var(--dark);
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}


/* =========================================
   2. HEADER
========================================= */

.header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 19px;
  font-weight: 900;
  white-space: nowrap;
}

.logo img {
  width: 65px;
  height: 58px;
  object-fit: contain;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar a {
  color: #e5eaf2;
  font-size: 16px;
  font-weight: 700;
  transition: 0.3s;
}

.navbar a:hover {
  color: var(--gold);
}


/* =========================================
   3. HERO SECTION
========================================= */

.hero {
  min-height: 650px;

  display: flex;
  align-items: center;

  background:
    linear-gradient(90deg,
      rgba(16, 29, 53, 0.78),
      rgba(16, 29, 53, 0.96)),
    url('../assets/images/hero.jpeg');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: var(--white);
  padding: 100px 0;
}

.hero-content {
  max-width: 760px;
  animation: heroEntrance 1s ease;
}

.hero-badge {
  display: inline-block;
  padding: 9px 22px;

  background: rgba(245, 184, 46, 0.13);
  border: 1px solid var(--gold);

  color: var(--gold);
  border-radius: 50px;

  font-size: 14px;
  font-weight: 700;
  margin-bottom: 25px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 55px);
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 20px;
}

.hero h1 span {
  display: block;
  color: var(--gold);
}

.hero p {
  color: #dbe3ef;
  font-size: 17px;
  max-width: 650px;
  margin-bottom: 35px;
  line-height: 2.1;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 800;
  transition: 0.3s;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(245, 184, 46, 0.25);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: white;
}

.btn-secondary:hover {
  background: white;
  color: var(--navy);
}


/* =========================================
   4. GENERAL SECTIONS
========================================= */

section:not(.hero) {
  padding: 90px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 50px;
}

.section-heading span {
  color: #c18b15;
  font-size: 14px;
  font-weight: 800;
}

.section-heading h2,
section h2 {
  color: var(--navy);
  font-size: 34px;
  font-weight: 900;
}

.section-heading h2 {
  margin-top: 8px;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 65px;
  height: 4px;
  background: var(--gold);
  margin: 13px auto;
  border-radius: 5px;
}

.section-heading p {
  color: var(--gray);
  font-size: 15px;
  margin-top: 15px;
}


/* =========================================
   5. SERVICES
========================================= */

.services {
  background: var(--light);
}

.camera-section {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.service-card {
  background: rgb(143, 135, 135);
  padding: 45px 35px;
  border-radius: 15px;

  text-align: center;

  border: 1px solid #e8edf3;
  box-shadow: 0 4px 15px rgba(16, 29, 53, 0.025);

  transition: 0.35s;
}

.service-card:hover {
  transform: translateY(-9px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 75px;
  height: 75px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fff8e7;
  border-radius: 20px;

  font-size: 35px;
  margin: 0 auto 20px;

  transition: 0.3s;
}

.service-card:hover .service-icon {
  background: var(--gold);
  transform: rotate(-5deg);
}

.service-card h3 {
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--gray);
  font-size: 14px;
  line-height: 2;
}


/* =========================================
   6. PORTFOLIO
========================================= */

.portfolio {
  background: var(--light);
}

.portfolio-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 12px 25px;

  border: 1px solid #dce3ed;
  background: white;

  color: var(--navy);
  border-radius: 50px;

  font-size: 14px;
  font-weight: 800;

  cursor: pointer;
  transition: 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.portfolio-item {
  position: relative;
  height: 340px;

  overflow: hidden;
  border-radius: 16px;

  background: var(--navy);
  cursor: pointer;

  animation: fadeIn 0.4s ease;
}

.portfolio-item.hidden {
  display: none;
}

.portfolio-item img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  transition: transform 0.6s;
}

.portfolio-item:hover img {
  transform: scale(1.09);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  right: 0;

  width: 100%;
  padding: 35px 25px 22px;

  background: linear-gradient(transparent,
      rgba(16, 29, 53, 0.95));

  color: white;
  transition: 0.3s;
}

.portfolio-overlay h3 {
  color: var(--gold);
  font-size: 20px;
  margin-bottom: 5px;
}

.portfolio-overlay p {
  color: #e4eaf3;
  font-size: 14px;
}


/* =========================================
   7. LIGHTBOX
========================================= */

.lightbox {
  display: none;

  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.94);

  z-index: 5000;

  justify-content: center;
  align-items: center;

  padding: 30px;
}

.lightbox.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;

  object-fit: contain;
  border-radius: 10px;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  left: 30px;

  background: none;
  border: none;

  color: white;
  font-size: 45px;

  cursor: pointer;
}


/* =========================================
   8. ABOUT
========================================= */

.about {
  background: white;
  text-align: center;
}

.about>.container>p {
  max-width: 800px;
  margin: 20px auto 0;

  color: var(--gray);
  font-size: 16px;
  line-height: 2.3;
}

.about-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  gap: 15px;
  margin-top: 35px;
}

.about-features div {
  background: #f5f7fa;

  padding: 14px 22px;
  border-radius: 10px;

  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}


/* =========================================
   9. CONTACT
========================================= */

.contact-section {
  background:
    linear-gradient(120deg,
      var(--navy),
      var(--navy-light));

  text-align: center;
  color: white;
}

.contact-section h2 {
  color: white;
  margin-bottom: 18px;
  font-size: 30px;
}

.contact-section h2::after {
  content: "";
  display: block;

  width: 65px;
  height: 4px;

  background: var(--gold);
  margin: 15px auto;
}

.contact-section p {
  color: #dbe3ef;
  margin-bottom: 30px;
}

.contact-main-btn {
  display: inline-block;

  background: var(--gold);
  color: var(--navy);

  padding: 14px 35px;
  border-radius: 9px;

  font-weight: 900;
  transition: 0.3s;
}

.contact-main-btn:hover {
  background: white;
  transform: translateY(-4px);
}


/* =========================================
   10. FLOATING CONTACT BUTTONS
========================================= */

.floating-contact {
  position: fixed;

  bottom: 25px;
  right: 25px;

  z-index: 2000;

  display: flex;
  gap: 12px;
}

.floating-contact a {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 12px 22px;

  border-radius: 50px;

  font-size: 14px;
  font-weight: 900;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);

  transition: 0.3s;
}

.whatsapp-btn {
  background: var(--green);
  color: white;
}

.call-btn {
  background: var(--gold);
  color: var(--navy);
}

.floating-contact a:hover {
  transform: translateY(-5px);
}


/* =========================================
   11. FOOTER
========================================= */

.footer {
  background: #0b1629;
  color: white;
  padding: 30px 0;
  text-align: center;
}

.footer p {
  color: #cbd5e1;
  font-size: 14px;
}


/* =========================================
   12. ANIMATIONS
========================================= */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroEntrance {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================
   13. TABLET RESPONSIVE
========================================= */

@media (max-width: 900px) {

  .navbar {
    gap: 15px;
  }

  .navbar a {
    font-size: 12px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: 570px;
  }

}


/* =========================================
   14. MOBILE RESPONSIVE
========================================= */

@media (max-width: 600px) {

  .header {
    padding: 10px 0;
  }

  .header-container {
    flex-direction: column;
    gap: 12px;
  }

  .logo {
    font-size: 17px;
  }

  .logo img {
    width: 50px;
    height: 45px;
  }

  .navbar {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 17px;
  }

  .navbar a {
    font-size: 11px;
  }

  .hero {
    min-height: 520px;
    padding: 75px 0;

    background-position: center;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 14px;
  }

  .hero-badge {
    font-size: 12px;
  }

  .hero-buttons {
    gap: 10px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 13px;
  }

  section:not(.hero) {
    padding: 65px 0;
  }

  .section-heading h2 {
    font-size: 27px;
  }

  .section-heading p {
    font-size: 13px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-card {
    padding: 30px 20px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .portfolio-item {
    height: 270px;
  }

  .portfolio-overlay h3 {
    font-size: 17px;
  }

  .portfolio-tabs {
    gap: 8px;
  }

  .tab-btn {
    padding: 10px 14px;
    font-size: 11px;
  }

  .about-features {
    flex-direction: column;
  }

  .contact-section h2 {
    font-size: 23px;
  }

  .floating-contact {
    right: 12px;
    left: 12px;
    bottom: 15px;
    gap: 10px;
  }

  .floating-contact a {
    flex: 1;
    padding: 12px 8px;
    font-size: 12px;
  }

  .lightbox {
    padding: 15px;
  }

  .lightbox img {
    max-width: 100%;
  }

  .lightbox-close {
    top: 10px;
    left: 15px;
  }

}


/* =========================================
   15. SMALL MOBILE
========================================= */

@media (max-width: 360px) {

  .navbar {
    gap: 8px 12px;
  }

  .navbar a {
    font-size: 10px;
  }

  .hero h1 {
    font-size: 27px;
  }

  .floating-contact a {
    font-size: 11px;
  }

}

/* =========================================
   16. DESIGN REFINEMENTS
   تحسين الواجهة الرئيسية وتناسق التصميم
========================================= */

.header {
  padding: 10px 0;
}

.logo {
  gap: 14px;
  font-size: 20px;
}

.logo img {
  width: 76px;
  height: 68px;
}

.hero {
  min-height: 640px;
  padding: 105px 0;
  background:
    linear-gradient(90deg,
      rgba(16, 29, 53, 0.72) 0%,
      rgba(16, 29, 53, 0.58) 48%,
      rgba(16, 29, 53, 0.82) 100%),
    url('../assets/images/hero.jpeg');
  background-size: cover;
  background-position: center 48%;
}

.hero-content {
  width: 100%;
  max-width: 820px;
  margin-right: 0;
}

.hero-badge {
  margin-bottom: 20px;
  padding: 9px 20px;
}

.hero h1 {
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.42;
  margin-bottom: 22px;
  text-wrap: balance;
}

.hero h1 span {
  margin-top: 5px;
}

.hero p {
  max-width: 700px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 2;
  margin-bottom: 34px;
}

.hero-buttons {
  gap: 16px;
}

.btn {
  min-height: 54px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  text-align: center;
}

.btn-primary {
  box-shadow: 0 8px 22px rgba(245, 184, 46, 0.18);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(4px);
}

.about {
  padding-top: 65px;
  padding-bottom: 65px;
}

.about>.container>p {
  max-width: 900px;
  margin-top: 16px;
  font-size: 17px;
  line-height: 2.15;
}

.about-features {
  margin-top: 28px;
  gap: 12px;
}

.about-features div {
  padding: 13px 20px;
  border: 1px solid #edf0f5;
}

.service-card {
  background: var(--white);
}

.floating-contact {
  gap: 12px;
}

.floating-contact a {
  min-height: 54px;
  padding: 13px 25px;
  font-size: 15px;
}

@media (max-width: 900px) {
  .hero {
    min-height: 590px;
    padding: 85px 0;
    background-position: center;
  }

  .hero-content {
    max-width: 720px;
  }

  .hero h1 {
    font-size: clamp(34px, 5.2vw, 48px);
  }

  .logo img {
    width: 65px;
    height: 60px;
  }
}

@media (max-width: 600px) {
  .header-container {
    gap: 8px;
  }

  .logo {
    font-size: 17px;
    gap: 9px;
  }

  .logo img {
    width: 54px;
    height: 50px;
  }

  .hero {
    min-height: 560px;
    padding: 78px 0;
    background-position: 55% center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-badge {
    margin-bottom: 17px;
    padding: 8px 15px;
  }

  .hero h1 {
    font-size: clamp(30px, 8vw, 38px);
    line-height: 1.55;
    margin-bottom: 17px;
  }

  .hero p {
    font-size: 15px;
    line-height: 2;
    margin-bottom: 25px;
  }

  .hero-buttons {
    gap: 10px;
  }

  .btn {
    min-height: 48px;
    padding: 11px 18px;
    font-size: 13px;
  }

  .about {
    padding-top: 50px;
    padding-bottom: 55px;
  }

  .about>.container>p {
    font-size: 15px;
    line-height: 2;
  }

  .floating-contact {
    right: 12px;
    left: 12px;
    bottom: 12px;
    gap: 9px;
  }

  .floating-contact a {
    min-height: 48px;
    padding: 10px 7px;
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .floating-contact a {
    font-size: 11px;
  }
}


/* =========================================
   17. HERO FINAL ADJUSTMENT
   ضبط ارتفاع الواجهة الرئيسية ومنع تداخل المحتوى
========================================= */

.hero {
  min-height: 590px;
  padding: 65px 0;
}

.hero-content {
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.4;
  margin-bottom: 16px;
}

.hero h1 span {
  margin-top: 0;
}

.hero p {
  max-width: 820px;
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 25px;
}

.hero-buttons {
  gap: 14px;
}

.btn {
  min-height: 50px;
  padding: 12px 27px;
}

@media (min-width: 1200px) {
  .hero-content {
    max-width: 940px;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 520px;
    padding: 55px 0;
  }

  .hero h1 {
    font-size: clamp(29px, 7.5vw, 36px);
    line-height: 1.5;
  }

  .hero p {
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 22px;
  }
}


/* =========================================
   18. SECTION BACKGROUNDS & SEPARATORS
   تدرج رمادي خفيف وفواصل بين الأقسام
========================================= */

/* خلفيات بطاقات الخدمات */
.service-card {
  background: #f0f2f5;
  border-color: #e1e5eb;
}

/* خلفية متناسقة لقسمي الخدمات */
.services {
  background: #f5f6f8;
}

.camera-section {
  background: #ffffff;
}

/* فاصل واضح وهادئ بين الأقسام الرئيسية */
.services,
.camera-section,
.portfolio,
.about,
.contact-section {
  border-bottom: 1px solid #dfe3e8;
}

/* تمييز بصري خفيف بين البطاقات */
.service-card {
  box-shadow: 0 5px 18px rgba(16, 29, 53, 0.045);
}

.service-card:hover {
  background: #ffffff;
  border-color: var(--gold);
}

/* تباعد بسيط يمنح كل قسم مساحة مستقلة */
section:not(.hero) {
  position: relative;
}

@media (max-width: 600px) {
  .service-card {
    background: #f0f2f5;
  }
}