/* =========================================
   CSS Variables & Reset
   ========================================= */
:root {
  --primary-color: #de9433; /* Golden orange from logo */
  --primary-dark: #b87825;
  --text-color: #525252; /* Dark grey from logo */
  --text-light: #7a7a7a;
  --bg-color: #fdf8eb; /* Cream background */
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: "Cairo", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.text-center {
  text-align: center;
}
.bg-light {
  background-color: var(--white);
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-color);
}

h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 1.5rem;
}

.section-header {
  margin-bottom: 3rem;
}

.divider {
  height: 4px;
  width: 60px;
  background-color: var(--primary-color);
  margin: 0 auto;
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1.1rem 3rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.25rem;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(222, 148, 51, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* =========================================
   Floating CTA
   ========================================= */
.floating-cta {
  position: fixed;
  bottom: 24px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2.4rem;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: var(--white);
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  z-index: 1000;
  box-shadow:
    0 4px 20px rgba(222, 148, 51, 0.35),
    0 0 0 0 rgba(222, 148, 51, 0);
  /* start off-screen and invisible */
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 80px) scale(0.8);
  /* silky smooth GPU-accelerated transition */
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease;
  will-change: transform, opacity;
}

.floating-cta.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  animation: floatingPulse 3s ease-in-out 1s infinite;
}

.floating-cta:hover {
  transform: translate(-50%, -3px) scale(1.04);
  box-shadow:
    0 8px 30px rgba(222, 148, 51, 0.5),
    0 0 0 4px rgba(222, 148, 51, 0.15);
  animation: none;
}

.floating-cta:active {
  transform: translate(-50%, 0) scale(0.97);
  transition-duration: 0.1s;
}

.floating-cta-text {
  white-space: nowrap;
}

.floating-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.floating-cta:hover .floating-cta-icon {
  transform: rotate(-12deg) scale(1.1);
}

@keyframes floatingPulse {
  0%,
  100% {
    box-shadow:
      0 4px 20px rgba(222, 148, 51, 0.35),
      0 0 0 0 rgba(222, 148, 51, 0);
  }
  50% {
    box-shadow:
      0 4px 20px rgba(222, 148, 51, 0.35),
      0 0 0 8px rgba(222, 148, 51, 0.08);
  }
}

/* =========================================
   Navbar
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  font-size: 1.1rem;
}

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  transition: var(--transition);
}

.logo-img {
  height: 80px;
  width: auto;
  display: block;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url("hero_bg.jpg") 20% center/cover no-repeat;
  color: var(--white);
  padding-top: 100px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(82, 82, 82, 0.8), rgba(82, 82, 82, 0.6));
  backdrop-filter: blur(5px);
}

.hero-logo {
  max-width: 280px;
  height: auto;
  margin: 0 auto 2rem;
  display: block;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.2));
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #f1f1f1;
}

/* =========================================
   Certificates Section
   ========================================= */
.certificates-section {
  padding: 3rem 0;
  background-color: var(--primary-color);
  color: var(--white);
  margin-top: -5px;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.certificate-card h3 {
  color: var(--white);
  font-size: 1.2rem;
}

.certificate-card p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* =========================================
   About Section
   ========================================= */
.about-section {
  padding: 5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.about-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* =========================================
   Services Section
   ========================================= */
.services-section {
  padding: 5rem 0;
}

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

.service-card {
  background-color: var(--bg-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(222, 148, 51, 0.1);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* =========================================
   Portfolio Section
   ========================================= */
.portfolio-section {
  padding: 5rem 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 1rem;
  background: linear-gradient(transparent, rgba(82, 82, 82, 0.9));
  color: var(--white);
  transform: translateY(100%);
  transition: var(--transition);
}

.portfolio-overlay h3 {
  color: var(--white);
  margin: 0;
}

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

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

/* =========================================
   Footer
   ========================================= */
.footer {
  background-color: var(--text-color);
  color: var(--white);
  padding: 4rem 0 2rem;
}

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

.footer h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.footer-logo {
  height: 120px;
  width: auto;
  margin-bottom: 1rem;
  display: block;
}

.footer-contact li,
.footer-links li {
  margin-bottom: 1rem;
  color: #d1d1d1;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--primary-color);
}

.contact-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(222, 148, 51, 0.3);
  transition: var(--transition);
  margin-top: 0.5rem;
  position: relative;
  overflow: hidden;
}

.contact-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.contact-highlight:hover::before {
  left: 100%;
}

.contact-highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(222, 148, 51, 0.4);
}

.contact-highlight .phone-icon {
  animation: ring 2s infinite ease-in-out;
}

.contact-highlight:hover .map-icon {
  animation: bounce 0.5s ease;
}

.contact-highlight:hover .email-icon {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

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

@keyframes ring {
  0% {
    transform: rotate(0);
  }
  10% {
    transform: rotate(15deg);
  }
  20% {
    transform: rotate(-10deg);
  }
  30% {
    transform: rotate(5deg);
  }
  40% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(0);
  }
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  color: #a1a1a1;
  font-size: 0.9rem;
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 768px) {
  .nav-container {
    height: 70px;
  }

  .logo-img {
    height: 55px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #f0f0f0;
    flex-direction: column;
    padding: 0;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 1.2rem;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: flex;
  }

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

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