
/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');

/* Main Color */
:root {
  --main-color: #005862;
  --dark-color: #00444d;
  --light-color: #f8f9fa;
  --accent-color: #ff6b35;
  --bg-color: #ffffff;
  --card-bg: #ffffff;
  --text-color: #333333;
  --text-muted: #6c757d;
  --border-color: #dee2e6;
}

[data-theme="dark"] {
  --bg-color: #121212;
  --card-bg: #1e1e1e;
  --text-color: #ffffff;
  --text-muted: #b0b0b0;
  --border-color: #333333;
}


body {
  font-family: "Cairo", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Global Styles */
.bg-primary {
  background-color: var(--main-color) !important;
}

.text-primary {
  color: var(--main-color) !important;
}

.btn-primary {
  background-color: var(--main-color);
  border-color: var(--main-color);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--dark-color);
  border-color: var(--dark-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 88, 98, 0.3);
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--main-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-active .loading-screen {
  opacity: 1;
  visibility: visible;
}

.loading-complete .loading-screen {
  opacity: 0;
  visibility: hidden;
}

.spinner-3d {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin3d 1s linear infinite;
}

@keyframes spin3d {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Custom Cursor */
.custom-cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: all 0.1s ease;
  mix-blend-mode: difference;
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9998;
  transition: all 0.3s ease;
}

/* Particles Background */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

@keyframes floatReverse {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes floatSlow {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.fadeInUp {
  animation: fadeInUp 0.8s ease-out;
}

.floating {
  animation: float 4s ease-in-out infinite;
}

.floating-2 {
  animation: floatReverse 5s ease-in-out infinite;
}

.floating-3 {
  animation: floatSlow 6s ease-in-out infinite;
}

.pulse {
  animation: pulse 2s infinite;
}

.gradient-text {
  background: linear-gradient(45deg, #005862, #ff6b35, #00c9ff);
  background-size: 200% 200%;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease infinite;
}

/* Glassmorphism Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Morphing Effect */
.morph-card {
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 15px;
}

.morph-card::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;
}

.morph-card:hover::before {
  left: 100%;
}

/* Neon Border Effect */
.neon-border {
  position: relative;
}

.neon-border::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid var(--main-color);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 0 15px var(--main-color);
}

.neon-border:hover::after {
  opacity: 1;
}

/* Gradient Background */
.bg-gradient {
  background: linear-gradient(135deg, var(--main-color) 0%, var(--dark-color) 100%);
  position: relative;
  overflow: hidden;
}

.bg-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 20%),
              radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 20%),
              radial-gradient(circle at 40% 80%, rgba(255,255,255,0.1) 0%, transparent 20%);
}

/* Top Bar */
.top-bar {
  font-size: 0.9rem;
  background: linear-gradient(to right, var(--dark-color), var(--main-color));
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(0, 88, 98, 0.9) 0%, rgba(0, 68, 77, 0.9) 100%), url('../images/hero-bg.webp') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.hero h1 {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  animation: fadeInUp 1s ease-out;
}

.hero .lead {
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero .btn {
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* Service Cards */
.service-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 15px;
  overflow: hidden;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background-color: var(--card-bg);
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--main-color), var(--dark-color));
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Product Cards */
.product-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 15px;
  overflow: hidden;
  border: none;
  background-color: var(--card-bg);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.product-card img {
  transition: transform 0.5s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

/* Team Cards */
.team-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 15px;
  overflow: hidden;
  background-color: var(--card-bg);
}

.team-card:hover {
  transform: translateY(-10px) rotate(2deg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.team-card img {
  border: 5px solid var(--main-color);
  transition: all 0.3s ease;
}

.team-card:hover img {
  border-color: var(--accent-color);
  transform: scale(1.05);
}

/* Stats Section */
.stat-item {
  transition: all 0.3s ease;
  padding: 20px;
  border-radius: 15px;
  background-color: var(--card-bg);
  color: var(--main-color);
}

.stat-item:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.1);
  color: var(--main-color);
}

/* Contact Section */
.contact-item {
  transition: all 0.3s ease;
  border-radius: 10px;
  padding: 15px;
  background-color: var(--card-bg);
}

.contact-item:hover {
  transform: translateX(10px);
  background: rgba(0, 88, 98, 0.05);
}

.icon-box {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--main-color), var(--dark-color));
}

.contact-item:hover .icon-box {
  transform: rotate(10deg) scale(1.1);
}
.contact-item .mail{
  color: var(--main-color)!important;
  text-decoration: none;
}
/* Mobile Apps Section */
.app-screens {
  position: relative;
  perspective: 1000px;
}

.app-screen-1 {
  position: relative;
  z-index: 3;
  width: 200px;
  margin: 0 auto;
}

.app-screen-2 {
  position: absolute;
  top: 50px;
  left: 0;
  z-index: 2;
  width: 180px;
  opacity: 0.9;
}

.app-screen-3 {
  position: absolute;
  top: 50px;
  right: 0;
  z-index: 1;
  width: 180px;
  opacity: 0.9;
}

.app-buttons .btn {
  transition: all 0.3s ease;
  border-radius: 15px;
}

.app-buttons .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.feature-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.feature-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Brands Slider */
.brand-item {
  padding: 20px;
  transition: all 0.3s ease;
  filter: grayscale(100%);
  background-color: var(--card-bg);
}

.brand-item:hover {
  transform: scale(1.2);
  filter: grayscale(0%);
  z-index: 10;
}

.carousel-control-prev,
.carousel-control-next {
  background: rgba(0, 88, 98, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(0, 88, 98, 0.6);
  transform: translateY(-50%) scale(1.1);
}

/* Certifications Section */
.certification-icon {
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--main-color), var(--dark-color));
}

.certification-icon:hover {
  transform: scale(1.1) rotate(10deg);
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, var(--main-color) 0%, var(--dark-color) 100%);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* FAQ Section */
.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--main-color), var(--dark-color));
  color: white;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 88, 98, 0.25);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--dark-color) 0%, #002226 100%);
  position: relative;
  overflow: hidden;
  background-color: var(--bg-color);
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-color), var(--main-color), var(--accent-color));
  animation: gradientBG 3s ease infinite;
  background-size: 200% 200%;
}

/* Back to Top Button */
#backToTop {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background: linear-gradient(135deg, var(--main-color), var(--dark-color));
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

#backToTop:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Theme Toggle */
#themeToggle {
  transition: all 0.3s ease;
}

#themeToggle:hover {
  transform: rotate(30deg);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero {
    height: auto;
    padding: 100px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .app-screens {
    margin-top: 50px;
  }
  
  .app-screen-1,
  .app-screen-2,
  .app-screen-3 {
    width: 150px !important;
  }
  
  .floating,
  .floating-2,
  .floating-3 {
    animation: none !important;
  }
  
  .app-buttons .btn {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .custom-cursor,
  .cursor-follower {
    display: none;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Navbar active link */
.navbar-nav .nav-link.active {
  color: #fff !important;
  font-weight: 500;
  position: relative;
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 3px;
  background: var(--accent-color);
  border-radius: 3px;
}


.input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating) {
    border-top-left-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
}

.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    border-top-right-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    border-top-left-radius: 4px !important;
    border-bottom-left-radius: 4px !important;
}
.spinner-border {
  width: 1rem;
  height: 1rem;
  border-width: 0.2em;
}