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

:root {
  --primary: #00d9e4;     /* Teal from the new logo/image */
  --primary-light: rgba(0, 217, 228, 0.1);
  --secondary: #001e33;   /* Dark blue from background */
  --secondary-light: #86868b;
  --accent: #08f7ff;      /* Bright teal accent */
  --accent-hover: #00b5c0;
  --light-bg: #f5f5f7;    /* Light background */
  --dark-bg: #001e33;     /* Dark background matching image */
  --ultra-light: #fafafa;
  --medium-dark: #424245; /* Medium gray */
  --gray: #86868b;        /* Light gray */
  --white: #fff;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  --blur-effect: blur(10px);
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: cubic-bezier(0.42, 0, 0.58, 1);
  --border-radius: 10px;
  --border-radius-sm: 6px;
  --border-radius-lg: 15px;
  --shadow: 0 5px 15px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  direction: rtl;
}

body {
  font-family: 'Tajawal', sans-serif;
  line-height: 1.6;
  color: var(--secondary);
  background-color: var(--white);
  direction: rtl;
  overflow-x: hidden;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

p {
  margin-bottom: 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  color: white;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  will-change: transform, opacity;
  box-shadow: 0 5px 15px rgba(0, 217, 228, 0.2);
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 217, 228, 0.3);
  color: white;
}

.btn:active {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 217, 228, 0.3);
}

.btn-secondary {
  background: linear-gradient(45deg, var(--secondary), #003b66);
}

.btn-secondary:hover {
  box-shadow: 0 10px 20px rgba(0, 30, 51, 0.2);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: linear-gradient(45deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 10px 20px rgba(0, 217, 228, 0.2);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-rounded {
  border-radius: 50px;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: translateX(-5px);
}

.btn::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: 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary), var(--accent));
}

/* Header - tech-themed */
header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  will-change: transform, backdrop-filter;
  background: rgba(0, 30, 51, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.scrolled-header {
  padding: 0.7rem 0;
  background-color: rgba(0, 30, 51, 0.95);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 5;
}

.logo img {
  height: 50px;
  width: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(0, 217, 228, 0.8));
  background: rgba(255, 255, 255, 0.2);
  padding: 5px;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0, 217, 228, 0.3);
  animation: logo-glow 3s ease-in-out infinite;
}

.logo img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 217, 228, 0.6);
}

.logo span {
  text-shadow: 0 0 10px rgba(0, 217, 228, 0.5);
  letter-spacing: 0.5px;
}

.scrolled-header .logo img {
  height: 35px;
}

.nav-menu {
  display: flex;
  list-style: none;
  background-color: var(--dark-bg) !important;
}

.nav-menu li {
  margin-right: 1.5rem;
}

.nav-menu a {
  color: var(--white) !important;
  font-weight: 500;
  position: relative;
  opacity: 0.9 !important;
  transition: opacity 0.3s ease;
  padding: 0.8rem 1.5rem !important;
  display: block !important;
}

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

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary) !important;
  opacity: 1 !important;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a.active {
  color: var(--primary);
  opacity: 1;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--primary) !important;
  font-size: 1.8rem !important;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 100 !important;
}

/* Hero Section - enhanced with tech theme */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--dark-bg);
  position: relative;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 0 100vh;
  padding-top: 60px; /* Add padding to prevent content from being hidden under the header */
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('images/pattern.svg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to left, rgba(0, 30, 51, 0.9), rgba(0, 30, 51, 0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 550px;
  text-align: right; /* Ensure text alignment is correct for RTL */
}

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

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

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--white);
  opacity: 0.9;
}

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

.hero-image-container {
  position: absolute;
  left: 0;
  width: 40%;
  height: 100%;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 60px; /* Match hero padding-top */
  z-index: 3;
}

.hero-image {
  max-width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  filter: contrast(1.1) brightness(1.05) drop-shadow(0 0 20px rgba(0, 217, 228, 0.3));
  transform: translateX(10%); /* Shift the image slightly to the right */
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}

.hero-image-preloader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 30, 51, 0.3);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.hero-image-preloader::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 217, 228, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: loader-spin 1s ease-in-out infinite;
}

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

.hero-image.loaded + .hero-image-preloader {
  display: none;
}

/* About Section - tech-themed */
.about {
  padding: 100px 0;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 0 800px;
}

.about::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background-color: var(--light-bg);
  clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 0;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 5rem;
  position: relative;
  z-index: 1;
}

.about-content {
  flex: 1;
}

.lead-text {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-right: 1.5rem;
  border-right: 3px solid var(--primary);
}

.about-text-wrapper {
  margin-bottom: 3rem;
}

.about-img {
  flex: 1;
  position: relative;
  will-change: transform;
}

.about-img-wrapper {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-img-wrapper:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.about-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  display: block;
}

.about-img-shape {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 60%;
  height: 60%;
  background-color: var(--primary-light);
  z-index: -1;
  border-radius: var(--border-radius-lg);
}

.experience-badge {
  position: absolute;
  bottom: -30px;
  right: 30px;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 217, 228, 0.3);
  z-index: 2;
  animation: pulse-glow 2s infinite;
}

.experience-years {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.experience-text {
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.2;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  cursor: default;
  will-change: transform;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--primary-light), rgba(8, 247, 255, 0.05));
  z-index: -1;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.stat-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.stat-item:hover::before {
  transform: scaleY(1);
  opacity: 1;
}

.stat-item:hover .stat-icon {
  color: var(--primary);
  transform: translateY(-5px) rotateY(180deg);
}

.stat-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: transform 0.5s ease, color 0.3s ease;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-text {
  font-size: 1rem;
  color: var(--secondary);
  font-weight: 500;
}

/* About Values */
.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.value-item {
  text-align: center;
  padding: 2.5rem 2rem;
  background-color: var(--ultra-light);
  border-radius: var(--border-radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.value-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  background-color: white;
}

.value-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(45deg, var(--primary-light), rgba(8, 247, 255, 0.2));
  color: var(--primary);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  transition: transform 0.5s ease, background-color 0.3s ease, color 0.3s ease;
}

.value-item:hover .value-icon {
  background: linear-gradient(45deg, var(--primary), var(--accent));
  color: white;
  transform: rotateY(180deg);
}

.value-item h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.value-item p {
  color: var(--secondary-light);
  line-height: 1.7;
  margin-bottom: 0;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 217, 228, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 217, 228, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 217, 228, 0);
  }
}

@media (max-width: 992px) {
  .about-container {
    flex-direction: column-reverse;
    gap: 3rem;
  }
  
  .about-img {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .about-values {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-top: 0 !important;
    min-height: 100vh !important;
  }
  
  .hero-image-container {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: auto !important;
    padding: 2rem 0 !important;
    margin-top: 60px !important;
    left: 0 !important;
  }
  
  .hero-image {
    max-width: 85% !important;
    height: auto !important;
    opacity: 1 !important;
    display: block !important;
    margin: 0 auto !important;
    transform: none !important;
  }
  
  .hero .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 1.5rem !important;
    order: 2 !important;
  }
  
  .hero-content {
    margin: 2rem auto !important;
    text-align: center !important;
    padding: 0 !important;
  }
  
  .hero-buttons {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
  }
  
  /* Move hero bg pattern below for mobile */
  .hero-bg-pattern {
    z-index: 1;
  }
  
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-img-shape {
    display: none;
  }
  
  .experience-badge {
    bottom: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
  }
  
  .experience-years {
    font-size: 2rem;
  }
  
  .experience-text {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .about-values {
    grid-template-columns: 1fr;
  }
}

/* Services Section - tech-themed */
.services {
  padding: 100px 0;
  background-color: var(--light-bg);
  background-image: linear-gradient(to bottom, var(--light-bg) 0%, var(--ultra-light) 100%);
  position: relative;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 0 800px;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary), var(--accent));
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--accent));
}

.section-title p {
  color: var(--secondary-light);
  max-width: 700px;
  margin: 0 auto;
}

.services-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
  gap: 0.5rem;
}

.services-filter .filter-btn {
  background-color: transparent;
  color: var(--secondary);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  font-family: 'Tajawal', sans-serif;
}

.services-filter .filter-btn.active,
.services-filter .filter-btn:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(0, 217, 228, 0.25);
}

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

.service-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  will-change: transform, box-shadow;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  transition: height 0.3s ease;
  z-index: 1;
}

.service-card:hover::before {
  height: 100%;
}

.service-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-img img {
  transform: scale(1.05);
}

.service-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--accent);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 1;
  box-shadow: 0 2px 10px rgba(0, 217, 228, 0.3);
}

.service-content {
  padding: 1.8rem;
}

.service-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--secondary);
  transition: color 0.3s ease;
}

.service-card:hover .service-content h3 {
  color: var(--primary);
}

.service-content p {
  color: var(--secondary-light);
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--primary);
  transition: all 0.3s ease;
}

.btn-sm i {
  transition: transform 0.3s ease;
}

.btn-sm:hover {
  color: var(--accent);
}

.btn-sm:hover i {
  transform: translateX(-5px);
}

/* Portfolio Section - tech-themed */
.portfolio {
  padding: 100px 0;
  background-color: var(--white);
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 0 1000px;
}

.portfolio::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
}

.portfolio-filter-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
  position: relative;
  max-width: 100%;
}

.portfolio-filter {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--ultra-light);
  padding: 0.6rem;
  border-radius: 50px;
  box-shadow: var(--shadow);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  max-width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.portfolio-filter::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.portfolio-filter .filter-btn {
  background-color: transparent;
  color: var(--secondary);
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  font-family: 'Tajawal', sans-serif;
  white-space: nowrap;
}

.portfolio-filter .filter-btn.active,
.portfolio-filter .filter-btn:hover {
  background: linear-gradient(45deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 5px 15px rgba(0, 217, 228, 0.2);
}

/* Tech-themed grid layout */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-item {
  transition: all 0.4s ease;
  opacity: 1;
  transform: translateY(0);
  height: auto;
  position: relative;
}

.portfolio-item.hidden {
  display: none;
  opacity: 0;
  visibility: hidden;
}

.portfolio-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: white;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.portfolio-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
  z-index: 1;
}

.portfolio-card:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.portfolio-img {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 75%; /* 4:3 aspect ratio */
  overflow: hidden;
}

.portfolio-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 30, 51, 0.9) 0%, rgba(0, 30, 51, 0) 60%);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 2rem;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-content {
  color: white;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 100%;
}

.portfolio-card:hover .portfolio-content {
  transform: translateY(0);
}

.portfolio-category {
  display: inline-block;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.portfolio-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

.portfolio-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  color: white;
  border-radius: 50%;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.portfolio-link:hover {
  transform: translateY(-5px) rotate(45deg);
  box-shadow: 0 5px 15px rgba(0, 217, 228, 0.2);
}

.portfolio-cta {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .portfolio-filter {
    padding: 0.5rem;
    width: 100%;
    justify-content: flex-start;
  }
  
  .portfolio-filter .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* Testimonials Section - tech-themed */
.testimonials {
  padding: 100px 0;
  background-color: var(--dark-bg);
  position: relative;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 0 700px;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('images/pattern.svg');
  background-size: cover;
  opacity: 0.05;
  z-index: 1;
}

.testimonials .section-title h2,
.testimonials .section-title p {
  color: var(--white);
}

.testimonials .section-title h2::after {
  background: linear-gradient(to right, var(--primary), var(--accent));
}

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  background-color: rgba(255, 255, 255, 0.05);
}

.testimonial-card::before {
  content: '\201D';
  font-size: 8rem;
  position: absolute;
  top: -30px;
  left: 20px;
  color: rgba(0, 217, 228, 0.1);
  font-family: sans-serif;
  line-height: 1;
}

.testimonial-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 3px solid var(--primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.testimonial-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
  flex: 1;
}

.testimonial-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.testimonial-position {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.testimonial-rating {
  color: #FFD700;
  font-size: 1rem;
  margin-top: auto;
}

.review-prompt {
  background-color: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 2;
}

.review-prompt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--accent));
}

.review-prompt i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: block;
}

.review-prompt h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.review-prompt p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.review-prompt .btn {
  min-width: 150px;
}

@media (max-width: 992px) {
  .testimonials-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .testimonials-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .testimonial-img {
    width: 60px;
    height: 60px;
  }
}

/* Contact Section - optimized */
.contact {
  padding: 100px 0;
  background-color: white;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 0 700px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: var(--light-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.contact-card:hover {
  background-color: var(--primary);
  transform: translateY(-5px);
}

.contact-card:hover .contact-icon,
.contact-card:hover .contact-text h4,
.contact-card:hover .contact-text a {
  color: white;
}

.contact-icon {
  font-size: 1.8rem;
  color: var(--primary);
  transition: color 0.3s ease;
}

.contact-text h4 {
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.contact-text a {
  color: var(--secondary-light);
  transition: color 0.3s ease;
}

.contact-form {
  background-color: var(--light-bg);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius-sm);
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 130, 233, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Newsletter - optimized */
.newsletter {
  padding: 80px 0;
  background-color: var(--primary);
  color: white;
  position: relative;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 0 300px;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('images/pattern.svg');
  background-size: cover;
  opacity: 0.1;
  z-index: 1;
}

.newsletter-container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.newsletter h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

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

.newsletter-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.newsletter-form input {
  flex: 1;
  border: none;
  padding: 1.2rem 2rem;
  font-size: 1rem;
  font-family: 'Tajawal', sans-serif;
}

.newsletter-form input:focus {
  outline: none;
}

.newsletter-form button {
  background-color: white;
  color: var(--primary);
  border: none;
  padding: 0 2rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
}

.newsletter-form button:hover {
  background-color: var(--accent);
  color: white;
}

/* Footer - tech-themed */
footer {
  background-color: var(--secondary);
  color: white;
  padding: 80px 0 0;
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('images/pattern.svg');
  background-size: cover;
  opacity: 0.05;
  z-index: 1;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.footer-col {
  margin-bottom: 2rem;
}

.footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
  color: var(--white);
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--accent));
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  display: inline-block;
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
  opacity: 0.8;
}

.social-link:hover {
  background-color: var(--primary);
  transform: translateY(-5px);
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.6);
}

/* Scroll to top - optimized */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  will-change: transform, opacity;
}

.scroll-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: var(--accent);
}

/* Animations - optimized */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  animation: fadeIn 1s ease forwards;
  will-change: opacity, transform;
}

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

.shake-animation {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
  will-change: transform;
}

@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}

/* Notification - optimized */
.notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-dark);
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999;
  border-right: 4px solid var(--primary);
  max-width: 350px;
  will-change: transform, opacity;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styles - optimized */
@media (max-width: 992px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .about-container {
    flex-direction: column;
    gap: 3rem;
  }
  
  .about-image {
    margin: 0 auto;
    max-width: 500px;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  header {
    padding: 1rem 0;
  }
  
  .menu-btn {
    display: block !important;
    color: var(--primary) !important;
    font-size: 1.8rem !important;
    z-index: 100 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
  }
  
  .nav-menu {
    position: fixed !important;
    top: 70px !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    background-color: var(--dark-bg) !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 2rem 0 !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    clip-path: circle(0px at 90% 10%) !important;
    transition: clip-path 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6) !important;
    opacity: 1 !important;
    z-index: 99 !important;
  }
  
  .nav-menu.active {
    clip-path: circle(1500px at 90% 10%) !important;
    opacity: 1 !important;
  }
  
  .nav-menu li {
    margin: 1rem 0 !important;
    width: 100% !important;
    text-align: center !important;
  }
  
  .nav-menu li a {
    color: var(--white) !important;
    font-size: 1.2rem !important;
    display: block !important;
    padding: 0.8rem 0 !important;
  }
  
  .hero {
    height: auto;
    padding: 150px 0 100px;
  }
  
  .hero-content {
    text-align: center;
    max-width: 100%;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image {
    display: none;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .services-grid,
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .testimonial-item {
    padding: 2rem;
  }
  
  .newsletter-form {
    flex-direction: column;
    border-radius: var(--border-radius);
  }
  
  .newsletter-form input {
    padding: 1rem;
    text-align: center;
  }
  
  .newsletter-form button {
    width: 100%;
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}

/* Print styles for better print layout */
@media print {
  header, footer, .scroll-to-top, .newsletter {
    display: none;
  }
  
  body {
    color: black;
    background: white;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  
  a {
    color: blue;
    text-decoration: underline;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  img {
    max-width: 500px;
  }
  
  p, h2, h3 {
    orphans: 3;
    widows: 3;
  }
}

/* Additional performance optimizations */
.hardware-accelerated {
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

[data-lazy-load] {
  content-visibility: auto;
}

/* Add prefers-reduced-motion media query for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

.view-all-services {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

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

.btn-primary:hover {
  background-color: var(--accent);
}

/* Circuit Animation Styles */
.circuit-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
}

.circuit-node {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  opacity: 0.7;
  animation: pulse-node 4s ease-in-out infinite;
  transform: translate(-50%, -50%);
}

.circuit-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  opacity: 0.3;
  transform-origin: left center;
  animation: glow-line 6s ease-in-out infinite;
}

@keyframes pulse-node {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 0 rgba(0, 217, 228, 0.3);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    box-shadow: 0 0 10px 2px rgba(0, 217, 228, 0.5);
  }
}

@keyframes glow-line {
  0%, 100% {
    opacity: 0.2;
    box-shadow: none;
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 8px rgba(0, 217, 228, 0.6);
  }
}

/* Logo animation for better visibility */
@keyframes logo-glow {
  0% {
    filter: drop-shadow(0 0 5px rgba(0, 217, 228, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(0, 217, 228, 0.8));
  }
  100% {
    filter: drop-shadow(0 0 5px rgba(0, 217, 228, 0.3));
  }
}

.hero-light-effect {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 217, 228, 0.2) 0%, rgba(0, 217, 228, 0) 70%);
  pointer-events: none;
  z-index: 2;
  opacity: 0.5;
  will-change: transform, left, top;
  filter: blur(20px);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

.hero .container {
  position: relative;
  z-index: 5;
  margin-left: 0;
  margin-right: 0;
  width: 60%;
  margin-left: auto; /* Push container to the right */
}

@media (max-width: 1200px) {
  .hero-image-container {
    width: 35%;
  }
  
  .hero .container {
    width: 65%;
  }
}

@media (max-width: 992px) {
  .hero-image-container {
    width: 30%;
  }
  
  .hero .container {
    width: 70%;
  }
  
  .hero-content {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    padding: 100px 0 50px;
    align-items: center;
  }
  
  .hero-content {
    margin-right: 0;
    text-align: center;
    margin: 0 auto;
    padding-top: 2rem;
    max-width: 100%;
  }
  
  .hero-image-container {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: auto !important;
    padding: 2rem 0 !important;
    margin-top: 60px !important;
    left: 0 !important;
  }
  
  .hero-image {
    max-width: 85% !important;
    height: auto !important;
    opacity: 1 !important;
    display: block !important;
    margin: 0 auto !important;
    transform: none !important;
  }
  
  .hero .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 1.5rem !important;
    order: 2 !important;
  }
  
  .hero-content {
    margin: 2rem auto !important;
    text-align: center !important;
    padding: 0 !important;
  }
  
  .hero-buttons {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
  }
}

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

/* Mobile fixes to ensure hero image displays correctly */
@media screen and (max-width: 480px) {
  .hero-image-container {
    width: 90% !important;
    margin: 80px auto 20px !important;
  }
  
  .hero-image {
    width: 100% !important;
    max-width: 300px !important;
  }
  
  .hero h1 {
    font-size: 2.5rem !important;
  }
  
  .hero p {
    font-size: 1rem !important;
  }
  
  .hero-buttons .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* Services section text visibility fixes */
#services h2,
#services p,
#services .service-card h3,
#services .service-card p {
  color: var(--secondary) !important;
}

.service-content h3 {
  color: var(--secondary) !important;
  font-weight: 700 !important;
}

.service-content p {
  color: var(--secondary-light) !important;
}

/* Fix for any potential menu color issues */
.nav-menu.active {
  background-color: rgba(0, 30, 51, 0.95) !important;
}

.nav-menu li a {
  color: white !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}