/* Base styles and variables */
html {
  scroll-behavior: smooth;
}

:root {
  --turquoise: #20b2aa;
  --turquoise-light: #3edbcf;
  --turquoise-dark: #008b8b;
  --text-light: #ffffff;
  --text-dark: #1a1a1a;
  --bg-dark: #1a1a1a;
  --bg-light: #f4f4f4;

  /* Body Colors Variables */

  --body-blue: #021a1f;
  --body-yellow: #29240a;
  --body-turquoise: #0c3834;
  --body-pink: #1c0913;
  /* --body-pink: #4e3642; */

  /**** Social Icons CSS Style ****/

  /* Facebook gradients */
  --facebook-from: #1877f2;
  --facebook-to: #166fe5;

  /* Twitter gradients */
  --twitter-from: #1da1f2;
  --twitter-to: #19a1f5;

  /* LinkedIn gradients */
  --linkedin-from: #0a66c2;
  --linkedin-to: #0077b5;

  /* Instagram gradients */
  --instagram-from: #e4405f;
  --instagram-to: #fd1d1d;

  /* General Navbar Styles */
  --primary-color: turquoise;
  --primary-hover: #4338ca;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --bg-primary: #f9fafb;
  --bg-secondary: #ffffff;
  --transition-speed: 0.3s;

  /* Dark theme */
  --dark-bg: #4b7d88;
  --dark-text: hsl(0, 0%, 98%);
  --dark-gradient: -webkit-linear-gradient(315deg, hsl(180, 20%, 25%), hsl(180, 20%, 10%));

  /* Light theme */
  /* --light-bg: hsl(65, 91%, 54%); */
  --light-bg: #616444;
  --light-text: hsl(0, 9%, 98%);
  --light-gradient: -webkit-linear-gradient(
    135deg,
    hsl(210, 60%, 98%),
    hsl(200, 60%, 85%),
    hsl(190, 60%, 95%)
  );

  /* Turquoise theme */
  /* --turquoise-bg: hsl(177, 68%, 41%); */
  --turquoise-bg: #487d7a;
  --turquoise-text: hsl(0, 0%, 100%);
  --turquoise-gradient: -webkit-linear-gradient(
    315deg,
    hsl(177, 68%, 41%),
    hsl(195, 70%, 50%)
  );

  /* Pink theme */
  /* --pink-bg: hsl(330, 100%, 57%); */
  --pink-bg: #4e3642;
  --pink-text: hsl(0, 0%, 100%);
  --pink-gradient: -webkit-linear-gradient(315deg, hsl(330, 100%, 57%), hsl(340, 100%, 65%));

  /* Default theme (light) */
  --background: var(--light-bg);
  --foreground: var(--light-text);

  --gradient-background: var(--light-gradient);
  --navbar-background: var(--navbar-background);
  --h-color: #241a39;
}

/* Apply reset styles to common elements */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; box-sizing: border-box;
    }
    
body {
  font-weight: 300;
  font-family: 'Almarai', serif;
  font-style: normal;
  line-height: 1.6;
  color: white;
  background: var(--body-color);
  /* background: linear-gradient(270deg, #2f5f5f, #48b6b6, #7fb1b1); */
  /* background: linear-gradient(270deg, #ff7eb3, #ff758c, #ff9c8a); */
  animation: gradientBG 10s ease infinite;
}

:lang(ar) {
  font-family: 'Almarai', sans-serif;
}

/* Apply Font Awesome font to icons inside elements */
:lang(ar) i,
:lang(ar) svg {
  font-family: 'Font Awesome 5 Free', 'Font Awesome', sans-serif;
  font-weight: 900; /* For solid icons */
}

:lang(en) {
  /* font-family: 'Exo', sans-serif; */
  font-family: 'Cairo', sans-serif;
  /* font-family: 'Oswald', sans-serif; */
  /* font-family: 'Lato', sans-serif; */
  /* font-family: 'League Gothic', sans-serif; */
  /* font-optical-sizing: auto; */
  /* font-weight: <200>;
  font-style: normal;
  font-variation-settings: 'slnt' 0; */
  /* letter-spacing: 0.1em; */
}

/* Apply Font Awesome font to icons inside elements */
:lang(en) i,
:lang(en) svg {
  font-family: 'Font Awesome 5 Free', 'Font Awesome', sans-serif;
  font-weight: 900; /* For solid icons */
}

/* Prevent access to page content */
#content {
  display: none;
}
/* Overlay style for CAPTCHA */
#captcha-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.87);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999999;
  overflow: hidden;
}
#captcha-container {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}
.g-recaptcha {
  margin-top: 10px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-align: center;
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  transition: opacity 1s ease-in-out; /* Smooth fade effect */
  opacity: 1;
  object-fit: cover;
}

.video-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background-color: var(--video-color); /* Pure pink color */
  mix-blend-mode: color; /* Blend mode to apply the color */
  opacity: 0.8; /* Adjust the opacity as needed */
  pointer-events: none; /* Ensure the overlay doesn't interfere with video controls */
  color: #99ebff;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  z-index: 1;
  /*position: relative;  Maintain proper stacking context */
}

.video-background.fade-out {
  opacity: 0; /* Fades out video */
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--navbar-background);
  color: white;
  border: 2px solid var(--border-color);
}

.btn-primary:hover {
  background: var(--background);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--background);
  transform: translateY(-2px);
}

/* Services Section */
.about {
  padding: 6rem 0;
  background: var(--body-color);
  color: var(--text-light);
  overflow: hidden;
}
.about h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.services {
  padding: 6rem 0;
  background: var(--gradient-background);
  color: var(--text-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.container-services {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
  overflow: hidden;
}

.container-services h2 {
  color: var(--h-color);
}

.services h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-desc {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 4rem;
  color: var(--text-light);
  opacity: 0.8;
}

#srv {
  color: var(--hover-color);
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1rem;
}

.service-card {
  background: var(--gradient-background);
  color: var(--foreground);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem;
  transition: transform 0.3s ease;
  color: #4b7b86;
}

.icon-flex {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.icon-flex h3 {
  flex-grow: 1; /* Allow h3 to take up available space */
  text-align: center; /* Center the text */
  margin-bottom: 0; /* Remove any default margin */
}

.service-card p {
  padding-left: 0;
  margin: -5px;
  font-size: 13px;
  transform: none;
}

.service-card h3 {
  color: var(--h-color);
  transform: none;
}

.service-card p {
  color: var(--foreground);
}
.container-about {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}
.services-grid-about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1rem;
}

.service-card-about {
  background: var(--navbar-background);
  color: var(--foreground);
  position: relative;
  left: 8px;
  padding: 1.5rem;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: solid var(--border-color);
  border-width: 1px 000;
  border-radius: 10px;
}
.service-card-about p {
  padding-left: 0;
  margin: -5px;
  font-size: 14px;
}
.service-card-about:hover {
  transform: translateY(-5px) !important;
}

/* #srv1 {
  color: #00b0f0;
  text-align: center;
  margin-top: -51px;
} */

.border-style-1 {
  border-radius: 2.2rem 0 2.2rem 0;
  border: solid var(--foreground);
  border-width: 2px;
}
.border-style {
  border-radius: 0 2.2rem 0 2.2rem;
  border: solid var(--foreground);
  border-width: 2px;
}

.service-card:hover {
  transform: translateY(-5px) !important;
}

.service-card i {
  font-size: 2.5rem;
  color: var(--video-color);
  margin-bottom: 1.5rem;
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background: var(--gradient-background);
  color: var(--foreground);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;

  border-radius: 0.5rem;
  font-family: inherit;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--turquoise);
}

/* Footer */
.footer {
  background: var(--body-color);
  color: var(--text-light);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
}

/* Menu Toggle Button */
.menu-toggle {
  display: none; /* Hide by default */
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: white;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.flex1 {
  padding: 1rem 0;
  background: var(--navbar-background);
  color: var(--text-light);
  overflow: hidden;
}
.container1 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  /* flex-wrap: wrap; */
  /* width: 800px; Adjust container width to accommodate the boxes and gaps */
  /* max-width: 1200px;
    margin: 20px; */
  /* padding: 0 1rem; */
  /* gap: 40px; Increased gap for more space between boxes */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  overflow: hidden;
}
.box1 {
  /* width: 370px; */
  /* height: 295px; */
  /* perspective: 1200px; Adds 3D effect */
  /* background: rgba(0, 0, 0, 0.05); */
  /* padding: 9px; */
  /* border-radius: 1rem; */
  /* transition: transform 0.3s ease; */
  /* border: solid turquoise;
    border-width: 1px 000; */
  position: relative;
  width: 100%;
  height: 300px;
  perspective: 1000px;
  background-color: transparent;
  /* cursor: pointer; */
}
.inner-box1 {
  /* position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 1s;
    transform-origin: right center;
    cursor: pointer; */
  position: relative;
  width: 100%;
  height: 105%;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}
.box1:hover .inner-box1 {
  /* transform: translateX(-100%) rotateY(-180deg); Flip effect */
  transform: rotateY(180deg);
}
.face1 {
  position: absolute;
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;

  justify-content: center;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: solid var(--border-color);
  border-width: 1px 000;
}

.front1 {
  background: var(--navbar-background);
}
.front1:hover {
  cursor: pointer;
}

.front1 img {
  width: 94%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin: 3px;
}

.face1 > h1 {
  background: var(--gradient-background);
  transition: background 0.3s, transform 0.2s;
  padding: 2px 12px 2px 12px;
  margin-top: 12px;
  border-radius: 5px;
  border: solid var(--border-color);
  border-width: 1px;
}

.back1 {
  background: var(--navbar-background);
  color: white;
  transform: rotateY(180deg);

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: right;
  padding: 1.3rem;
  /* line-height: 1.8;      Improved line spacing */
  font-size: 16px; /* Consistent font size */
  direction: rtl; /* Right-to-left text flow */
  width: 100%;
}

.back1 p {
  font-size: 1.2rem; /* Slightly larger heading */
  font-weight: bold;
  color: var(--foreground);
  margin: 0 auto 1rem; /* Center horizontally and add margin below */
  text-align: center; /* Center the text within the <p> element */
}
.back1 p:hover {
  transform: scale(1.1) translateY(-10px);
  transition: all 0.3s ease-in-out;
}

/* Align the <ol> itself */
.back1 ol {
  padding: 0;
  margin: 0;
  list-style-type: decimal;
}

.back1 li {
  margin: 0;
  padding: 0;
  /* Initially no space between the number and the text */
  text-indent: -1em;
}

/* Add invisible space after the number using the ::after pseudo-element */
.li-2 li::after {
  content: '\00a0'; /* This is a non-breaking space character */
  display: inline-block;
  width: 9em; /* Adjust width to control the space */
}
[data-key='list-items-wireless'],
[data-key='list-items-fire'],
[data-key='list-items-comsys'],
[data-key='list-items-access'] {
  width: 19.5em; /* Adjust width to control the space */
}

/* Adjust the marker (list number) */
.back1 li::marker {
  color: turquoise;
  font-weight: bold; /* Optional: Make the number bold */
}

.flex1 h2 {
  color: var(--hover-color);
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);

  display: flex;
  align-items: center;

  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, background-color 0.8s ease-in-out;
}

.popup-overlay1 {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);

  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.8s ease-in-out, background-color 0.8s ease-in-out;
}

.popup-overlay.active {
  /* display: flex; */
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.5);
  /* align-items: center;
    justify-content: center; */
  visibility: visible;
}

.popup-content {
  background: url('/img/bg1.png') center center/cover no-repeat; /* Adds a background image */
  padding: 1.5rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 800px;
  max-height: 60%;
  transform: scale(0.7) translateY(20px);
  opacity: 0;

  display: flex;
  flex-direction: column;
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* .popup-content1 {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
    text-align: center;
    transform: scale(0.85) translateY(-20px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
  } */
.popup-content1 h2 {
  margin-bottom: 20px;
  color: #333;
}

.popup-content1 p {
  color: #555;
  margin-bottom: 15px;
}
.popup-overlay.active .popup-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.close-popup {
  position: absolute;
  top: 0rem;
  right: 0.3rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 0.5rem;
  line-height: 1;
  transition: color 0.3s ease;
}

.close-popup:hover {
  color: turquoise;
  transform: scale(1.1);
}
.popup-title {
  color: var(--turquoise);
  text-align: right;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  padding-right: 1rem;
}
.popup-text {
  flex: 1;
  overflow-y: auto;
  padding-right: 1rem;
  text-align: right;
  /* direction: rtl; */
  color: #000000;
  line-height: 1.6;
  font-size: 18px;
  list-style-type: decimal; /* Numbering style */
}
.popup-content h2 {
  color: #333;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  padding-right: 1rem;
}

.popup-text li {
  margin-bottom: 0.4rem;
  font-weight: bold;
  color: #03b4b4;
  padding: 7px 1px 7px 7px;
  margin-left: 25px;
}
.popup-content h2 {
  color: chocolate;
}
.popup-content span {
  color: #34a9f7;
  font-weight: bold;
}
.popup-text li::before {
  /* content: '•'; */
  color: var(--turquoise);
  position: absolute;
  right: 0;
  font-weight: bold;
}
.popup-text ul li {
  list-style: disc;
  list-style-position: inside; /* Ensures the dots are inside the list */
  padding: 0;
  margin: 0;
  color: #34a9f7;
}

/* .popup-text ul {
  list-style-type: disc; 
  margin-left: 20px; 
  margin-right: 0; 
  padding-left: 20px;
} */

.popup-text li {
  text-align: left; /* Default alignment for LTR */
}

.popup-text[dir='rtl'] li {
  text-align: right; /* Right alignment for RTL */
}
.popup-text[dir='rtl'] ol li {
  margin: 20px;
}
.popup-text[dir='ltr'] li {
  text-align: left; /* Right alignment for RTL */
}
.popup-text[dir='ltr'] ol li {
  margin: 1rem;
}
.popup-text[dir='ltr'] {
  text-align: left; /* Right alignment for RTL */
  padding: 10px;
}

.read-more-btn {
  font-family: 'Almarai', serif;
  display: block;
  margin: 20px auto;
  padding: 8px 20px;
  font-size: 1rem;
  font-weight: bold;
  color: var(--foreground);
  background: var(--gradient-background);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.read-more-btn:hover {
  background-color: #66b8cc;
  transform: translateY(-3px);
}
/* Floating Alert Style */
.mobile-alert {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 15px;
  font-size: 16px;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

/* Show alert with smooth fade-in effect */
.mobile-alert.show {
  opacity: 1;
}

.navbar-contents {
  background: var(--navbar-background);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(0px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  color: white;
  padding: 0rem 1rem 0rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 4px;
  width: 98%;
  z-index: 1000;
  transition: all 0.45s ease-in-out;
  border: solid var(--border-color);
  border-width: 1px 000;
  border-radius: 10px;
  margin: 10px 10px 0 12px;
  opacity: 1;
}

.navbar-contents.scrolled {
  margin: 0; /* Reset margins if needed */
  padding: 3px 0.7rem 0;
  background-color: var(--navbar-background);
  width: 70%;
  margin: 0 auto;
  border-radius: 10px;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 10px;
  border: solid var(--border-color);
  border-width: 1px 000;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Desktop Navigation Links */
.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-direction: row;
}

.navbar-links.hide-items .nav-link:nth-child(3),
.navbar-links.hide-items .nav-link:nth-child(6) {
  display: none;
}

.social-icons.hide-items {
  display: none;
}
.nav-link {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
  width: -moz-fit-content;
  width: fit-content;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  position: relative;
}
.nav-link-mob {
  color: var(--hover-color);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
  width: -moz-fit-content;
  width: fit-content;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  position: relative;
}

.nav-link:hover {
  color: var(--hover-color);
}
.nav-link-mob:hover {
  color: var(--hover-color);
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
  margin-bottom: 0.3rem;
}
.nav-link-mob:hover::after {
  transform: translateX(-50%) scaleX(1);
  margin-bottom: 0.3rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: calc(100% - 1.5rem); /* Subtract horizontal padding */
  height: 2px;
  background-color: var(--hover-color);
  transform: translateX(-50%) scaleX(0);
  transition: transform var(--transition-speed);
}
.nav-link-mob::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: calc(100% - 1.5rem); /* Subtract horizontal padding */
  height: 2px;
  background-color: var(--hover-color);
  transform: translateX(-50%) scaleX(0);
  transition: transform var(--transition-speed);
}

/**** Social Icons CSS Style ****/

.logo-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 4px 0 4px 0;
}

.social-icon {
  position: relative;
  padding: 0.5rem;
  display: inline-flex;
  align-items: center;

  justify-content: center;
  text-decoration: none;
}

.icon-bg {
  position: absolute;
  inset: 0;
  margin: -0.25rem;
  background: transparent;
  border-radius: 9999px;
  transform: scale(0.9);
  transition: all 0.3s;
  opacity: 0;
}

.icon {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  color: #e5e7eb;
  transition: transform 0.3s;
}

.underline {
  position: absolute;
  bottom: -0.1rem;
  left: 0;
  width: 100%;
  height: 0.125rem;
  transform: scaleX(0);
  transition: transform 0.3s;
}

/* Facebook */
.icon-bg[data-gradient='facebook'] {
  background: linear-gradient(135deg, transparent, transparent);
}

.social-icon:hover .icon-bg[data-gradient='facebook'] {
  background: linear-gradient(135deg, var(--facebook-from), var(--facebook-to));
  opacity: 0.15;
  transform: scale(0.8);
}

.underline[data-gradient='facebook'] {
  background: linear-gradient(to right, var(--facebook-from), var(--facebook-to));
}

/* Twitter */
.icon-bg[data-gradient='twitter'] {
  background: linear-gradient(135deg, transparent, transparent);
}

.social-icon:hover .icon-bg[data-gradient='twitter'] {
  background: linear-gradient(135deg, var(--twitter-from), var(--twitter-to));
  opacity: 0.15;
  transform: scale(0.8);
}

.underline[data-gradient='twitter'] {
  background: linear-gradient(to right, var(--twitter-from), var(--twitter-to));
}

/* LinkedIn */
.icon-bg[data-gradient='linkedin'] {
  background: linear-gradient(135deg, transparent, transparent);
}

.social-icon:hover .icon-bg[data-gradient='linkedin'] {
  background: linear-gradient(135deg, var(--linkedin-from), var(--linkedin-to));
  opacity: 0.15;
  transform: scale(0.8);
}

.underline[data-gradient='linkedin'] {
  background: linear-gradient(to right, var(--linkedin-from), var(--linkedin-to));
}

/* Instagram */
.icon-bg[data-gradient='instagram'] {
  background: linear-gradient(135deg, transparent, transparent);
}

.social-icon:hover .icon-bg[data-gradient='instagram'] {
  background: linear-gradient(135deg, var(--instagram-from), var(--instagram-to));
  opacity: 0.15;
  transform: scale(0.8);
}

.underline[data-gradient='instagram'] {
  background: linear-gradient(to right, var(--instagram-from), var(--instagram-to));
}

/* Hover effects */
.social-icon:hover .icon {
  transform: scale(1.05);
}

.social-icon:hover .underline {
  transform: scaleX(0.8);
}

/**** Avatar CSS Style ****/

@keyframes float {
  0% {
    box-shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.6);
    transform: translatey(0px);
  }
  50% {
    box-shadow: 0 25px 15px 0px rgba(0, 0, 0, 0.2);
    transform: translatey(-20px);
  }
  100% {
    box-shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.6);
    transform: translatey(0px);
  }
}

.container-logo {
  width: 100%;
  height: 100%;
  padding-top: 63px;

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;
}

.avatar-logo {
  border-radius: 60%;
  padding: 20px 10px 10px 10px;
  width: 150px;
  height: 159px;
  /* box-sizing: border-box; */
  border: 0px #03b4b4 solid;
  /* border-radius: 50%; */
  overflow: hidden;
  /* box-shadow: 0 5px 15px 0px rgba(0,0,0,0.6); */
  transform: translatey(0px);
  animation: float 3s ease-in-out infinite;
  img {
    width: 100%;
    height: auto;
  }
}

/** Snowflake Fall**/

/* Snowflakes container */
.snowflakes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: white;
  font-size: 1rem;
  opacity: 0.8;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100vh);
  }
}

/*** Language Switch Button ***/

.lang-switch-btn {
  background: var(--gradient-background);
  color: var(--foreground);
  padding: 0 0.3rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s;
  font-weight: bold;
  border: solid turquoise 1px;
  overflow: hidden;
}

.lang-switch-btn-mob {
  background: var(--gradient-background);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s;
  font-weight: bold;
  border: 1px solid var(--border-color);
}

.lang-switch-btn:hover {
  background: var(--gradient-background);
  box-shadow: 0 5px 15px rgba(253, 253, 253, 0.2);
}
.lang-switch-btn-mob:hover {
  background: var(--gradient-background);
  box-shadow: 0 5px 15px rgba(253, 253, 253, 0.2);
}

.lang-text {
  font-size: 0.8rem;
  color: var(--foreground);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  align-items: center;

  justify-content: center;
  padding: 0.5rem;
  border: none;
  border-radius: 0.375rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-speed);
}

.hamburger-menu {
  width: 24px;
  height: 24px;
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 2px 0;
  color: var(--foreground);
}

.line {
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}

.mobile-menu-btn[aria-expanded='true'] .line-1 {
  transform: translateY(8px) rotate(45deg);
}
.mobile-menu-btn[aria-expanded='true'] .line-2 {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn[aria-expanded='true'] .line-3 {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu-btn:hover .line-2:not(.active) {
  transform: scaleX(0.75);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  position: absolute;
  top: 60px;
  right: 1rem;
  background-color: #444;
  padding: 1rem;
  border-radius: 8px;
  z-index: 1000;
  width: calc(100% - 2rem);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav .nav-link .nav-link-mob {
  color: white;
  text-decoration: none;
  font-size: 1rem;
}

.mobile-nav .lang-switch-btn {
  margin-top: 1rem;

  justify-content: center;
}

.mobile-nav .nav-link:hover .nav-link-mob:hover {
  color: #20b2aa;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }
  .logo-section > .social-icons {
    display: none;
  }
  :lang(en) .mobile-menu-btn {
    position: absolute;
    left: 22.5rem;
  }
  :lang(en) .box.scrolled {
    position: absolute;
    left: 11.2rem;
  }
  :lang(en) .theme-switcher-mob.scrolled {
    position: absolute;
    left: 57px;
  }
  .mobile-menu-btn {
    position: relative;
    display: block;
    left: 14px;
    background: var(--gradient-background);
  }
  .theme-switcher {
    margin-right: 100px;
    display: none !important;
  }
  .navbar-contents {
    left: -5px;
    border-width: 2px 000;
  }
  .navbar-contents.scrolled {
    padding: 3px 0.7rem 0;
    background-color: rgba(34, 34, 34, 0.8);
    width: 90%;
    margin: 0 auto;
    border-radius: 10px;
    transform: translateX(-50%);
    margin-top: 10px;
    border: solid var(--border-color);
    border-width: 2px 000;
  }
  .mobile-menu-btn.scrolled {
    position: absolute;
    left: 7px;
  }
  .theme-switcher-mob.scrolled {
    position: absolute;
    left: 3.5rem;
    left: 3.8rem;
  }
  .navbar-container.scrolled {
    margin: 18px;
  }

  .box.scrolled {
    position: absolute;
    right: 10px;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .services-grid {
    grid-template-columns: 1fr;
    overflow: hidden;
  }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--body-color);
    padding: 1rem;
  }
  .triangle-indicator {
    display: none;
  }
}

@media (min-width: 768px) {
  .theme-switcher-mob {
    display: none;
  }
  :lang(en).theme-switcher {
    position: absolute;
    left: 50%;
  }
}

.social-icons {
  display: flex;

  flex-direction: row-reverse;
  align-items: center;
  gap: 0.2rem;
}

.social-icon {
  position: relative;
  padding: 0.5rem;
  display: inline-flex;
  align-items: center;

  justify-content: center;
  text-decoration: none;
}

.icon-bg {
  position: absolute;
  inset: 0;
  margin: -0.25rem;
  background: transparent;
  border-radius: 9999px;
  transform: scale(0.9);
  transition: all 0.3s;
  opacity: 0;
}

.icon {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  color: #e5e7eb;
  transition: transform 0.3s;
}

.underline {
  position: absolute;
  bottom: -0.1rem;
  left: 0;
  width: 100%;
  height: 0.125rem;
  transform: scaleX(0);
  transition: transform 0.3s;
}

/* Facebook */
.icon-bg[data-gradient='facebook'] {
  background: linear-gradient(135deg, transparent, transparent);
}

.social-icon:hover .icon-bg[data-gradient='facebook'] {
  background: linear-gradient(135deg, var(--facebook-from), var(--facebook-to));
  opacity: 0.15;
  transform: scale(0.8);
}

.underline[data-gradient='facebook'] {
  background: linear-gradient(to right, var(--facebook-from), var(--facebook-to));
}

/* Twitter */
.icon-bg[data-gradient='twitter'] {
  background: linear-gradient(135deg, transparent, transparent);
}

.social-icon:hover .icon-bg[data-gradient='twitter'] {
  background: linear-gradient(135deg, var(--twitter-from), var(--twitter-to));
  opacity: 0.15;
  transform: scale(0.8);
}

.underline[data-gradient='twitter'] {
  background: linear-gradient(to right, var(--twitter-from), var(--twitter-to));
}

/* LinkedIn */
.icon-bg[data-gradient='linkedin'] {
  background: linear-gradient(135deg, transparent, transparent);
}

.social-icon:hover .icon-bg[data-gradient='linkedin'] {
  background: linear-gradient(135deg, var(--linkedin-from), var(--linkedin-to));
  opacity: 0.15;
  transform: scale(0.8);
}

.underline[data-gradient='linkedin'] {
  background: linear-gradient(to right, var(--linkedin-from), var(--linkedin-to));
}

/* Instagram */
.icon-bg[data-gradient='instagram'] {
  background: linear-gradient(135deg, transparent, transparent);
}

.social-icon:hover .icon-bg[data-gradient='instagram'] {
  background: linear-gradient(135deg, var(--instagram-from), var(--instagram-to));
  opacity: 0.15;
  transform: scale(0.8);
}

.underline[data-gradient='instagram'] {
  background: linear-gradient(to right, var(--instagram-from), var(--instagram-to));
}

/* Hover effects */
.social-icon:hover .icon {
  transform: scale(1.05);
}

.social-icon:hover .underline {
  transform: scaleX(0.8);
}

/**** Avatar CSS Style ****/

@keyframes float {
  0% {
    box-shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.6);
    transform: translatey(0px);
  }
  50% {
    box-shadow: 0 25px 15px 0px rgba(0, 0, 0, 0.2);
    transform: translatey(-20px);
  }
  100% {
    box-shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.6);
    transform: translatey(0px);
  }
}

.avatar-logo {
  border-radius: 60%;
  padding: 20px 10px 10px 10px;
  width: 150px;
  height: 159px;
  /* box-sizing: border-box; */
  border: 0px #03b4b4 solid;
  /* border-radius: 50%; */
  overflow: hidden;
  /* box-shadow: 0 5px 15px 0px rgba(0,0,0,0.6); */
  transform: translatey(0px);
  animation: float 3s ease-in-out infinite;
  img {
    width: 100%;
    height: auto;
  }
}

/** Snowflake Fall**/

/* Snowflakes container */
.snowflakes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: white;
  font-size: 1rem;
  opacity: 0.8;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100vh);
  }
}
