/*
  MR.ROBOT Modern Redesign
  Stunning, attractive and modern split-screen layout.
*/

/* --- Custom Hebrew Font --- */
@font-face {
  font-family: 'AssistantHebrew';
  src: url('../assistant-2sdczgjynijsi6h75xkzamw5o7w.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0590-05FF, U+FB1D-FB4F, U+0000-007F, U+0020-007E;
}

/* --- Variables & Theme --- */
:root {
  --primary-color: #ff3b3b;
  /* Vibrant Red */
  --primary-glow: rgba(255, 59, 59, 0.5);
  --text-color: #e0e0e0;
  --bg-overlay: rgba(0, 0, 0, 0.85);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --input-bg: rgb(36 34 34 / 50%);
  ;
  --font-main: 'Open Sans', sans-serif;
  --font-display: 'Rajdhani', sans-serif;
  /* Futuristic/Tech look */
  --transition-speed: 0.3s;
}

/* Hebrew font override */
html[lang="he"] {
  --font-main: 'AssistantHebrew', 'Open Sans', sans-serif;
  --font-display: 'AssistantHebrew', 'Rajdhani', sans-serif;
}

body.light-theme {
  --primary-color: #d32f2f;
  --primary-glow: rgba(211, 47, 47, 0.3);
  --text-color: #1a1a1a;
  --bg-overlay: rgba(240, 240, 240, 0.9);
  --glass-bg: rgba(0, 0, 0, 0.05);
  --glass-border: rgba(0, 0, 0, 0.1);
  --input-bg: rgba(255, 255, 255, 0.6);
}

/* --- Resets & Base --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background: url('../images/black_painted_planks_diff_512.jpg') repeat;
  background-attachment: fixed;
  /* Creates a nice parallax-like feel */
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: color var(--transition-speed);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d32f2f;
}

/* --- Layout --- */
.split-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Overlay to darken/tint background image */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-overlay);
  z-index: -1;
  pointer-events: none;
  transition: background var(--transition-speed);
}

.content-pane,
.form-pane {
  padding: 2rem;
  width: 100%;
}

/* --- Large Screen Split Layout --- */
@media (min-width: 1024px) {
  .split-layout {
    flex-direction: row;
    height: 100vh;
    /* Full viewport height */
    overflow: hidden;
    /* Prevent body scroll */
  }

  .content-pane {
    flex: 1;
    /* Takes remaining space */
    overflow-y: auto;
    /* Internally scrollable */
    padding: 4rem 6rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .form-pane {
    flex: 0 0 450px;
    /* Fixed width for form */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    /* Slight darken on right side */
    backdrop-filter: blur(10px);
    /* Glassmorphism */
    border-left: 1px solid var(--glass-border);
    overflow-y: auto;
    position: relative;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  }
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  gap: 15px;
}

.toggle-btn {
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--primary-color);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 15px rgba(255, 59, 59, 0.3);
  margin-left: 10px;
}

.toggle-btn:hover {
  background: var(--primary-color);
  color: #fff;
  transform: scale(1.15) rotate(15deg);
  box-shadow: 0 0 25px var(--primary-glow), 0 0 10px #fff;
  border-color: #fff;
}

/* --- Language Dropdown --- */
.language-dropdown {
  position: relative;
  display: inline-block;
  margin-left: 10px;
  /* Maintain spacing */
}

/* Ensure the button inside doesn't double margin if it handles it */
.language-dropdown .toggle-btn {
  margin-left: 0;
}

.language-options {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 15px;
  pointer-events: none;
  /* Initially non-interactive */
}

.lang-option {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--primary-color);
  color: #fff;
  width: 40px;
  height: 40px;
  padding: 0;
  /* Reset padding from btn/general */
  border-radius: 50%;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);

  /* Hidden state for animation */
  opacity: 0;
  transform: translateY(-20px);
}

.lang-option:hover {
  background: var(--primary-color);
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Reveal options on hover or active class */
.language-dropdown:hover .language-options,
.language-dropdown.active .language-options {
  pointer-events: auto;
}

.language-dropdown:hover .lang-option,
.language-dropdown.active .lang-option {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay for slide-down effect */
.lang-option:nth-child(1) {
  transition-delay: 0.1s;
}

.lang-option:nth-child(2) {
  transition-delay: 0.2s;
}

.lang-option:nth-child(3) {
  transition-delay: 0.3s;
}

/* --- Typography --- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
}

body.light-theme h1,
body.light-theme h2,
body.light-theme h3 {
  color: #000;
}

h1 {
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  background: linear-gradient(to right, #fff, var(--text-color));
  -webkit-background-clip: text;
  background-clip: text;
}

body.light-theme h1 {
  background: linear-gradient(to right, #000, #333);
  -webkit-background-clip: text;
  background-clip: text;
  text-fill-color: transparent;
  /* Standard property is -webkit-text-fill-color */
  -webkit-text-fill-color: transparent;
}


h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 5px;
}

/* --- Hero Section --- */
.hero-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Centered in content pane */
  text-align: center;
  /*  margin-bottom: 4rem;/***/
}

#heroTitle {
  color: var(--primary-color);
  /* Override basic h1 gradient for the main title to be red/brand color */
  background: none;
  -webkit-text-fill-color: initial;
  text-shadow: 0 0 20px var(--primary-glow);
}

#heroSubtitle {
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.hero-robot {
  width: 300px;
  max-width: 80%;
  margin-top: 1rem;
  filter: drop-shadow(0 0 15px var(--primary-glow));
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 35px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.4s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

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

.btn-block {
  width: 100%;
  display: block;
  margin-top: 1rem;
}

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

.feature {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature:hover i {
  transform: scale(1.2) rotate(5deg);
}

.feature h3 {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* (Footer styles are defined in the FOOTER STYLES section below) */

/* --- Form Styles --- */
.form-wrapper {
  background: var(--glass-bg);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  width: 100%;
}

@media (min-width: 1024px) {

  /* On large screens, the form wrapper can be transparent since the pane itself has the bg */
  .form-wrapper {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
  }
}

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

/* Floating Labels */
.floating-label input,
.floating-label textarea {
  width: 100%;
  padding: 12px 15px;
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text-color);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  font-family: var(--font-main);
}

.floating-label input:focus,
.floating-label textarea:focus,
.floating-label input:not(:placeholder-shown),
.floating-label textarea:not(:placeholder-shown) {
  border-color: var(--primary-color);
  background: rgb(43 13 13 / 50%);
  box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.1);
}

body.light-theme .floating-label input:focus {
  background: #fff;
}


.floating-label label {
  position: absolute;
  inset-inline-start: 15px;
  top: 14px;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  transition: 0.3s ease all;
  background: transparent;
  padding: 0 5px;
}

body.light-theme .floating-label label {
  color: rgba(0, 0, 0, 0.5);
}

.floating-label input:focus~label,
.floating-label input:not(:placeholder-shown)~label,
.floating-label textarea:focus~label,
.floating-label textarea:not(:placeholder-shown)~label {
  top: -10px;
  font-size: 0.8rem;
  color: var(--primary-color);
  background: var(--background-color);
  /* Mask the line */
  /* Since we have an image background, we can't easily mask line with simple color. 
     Instead, let's just move it up and give it a small pill background or text shadow */
  background: #222;
  border-radius: 4px;
}

body.light-theme .floating-label input:focus~label,
body.light-theme .floating-label input:not(:placeholder-shown)~label {
  background: #fff;
}

.static-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
}

.select-wrapper select {
  width: 100%;
  padding: 12px;
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.select-wrapper select option {
  background: #222;
  color: #fff;
}

body.light-theme .select-wrapper select option {
  background: #fff;
  color: #000;
}


/* --- Animations --- */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.float-anim {
  animation: float 4s ease-in-out infinite;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}

.fade-in-up:nth-child(1) {
  animation-delay: 0.1s;
}

.fade-in-up:nth-child(2) {
  animation-delay: 0.2s;
}

.fade-in-up:nth-child(3) {
  animation-delay: 0.3s;
}

.fade-in-up:nth-child(4) {
  animation-delay: 0.4s;
}

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

/* Success/Error messages */
.form-response.success {
  color: #4ade80;
  text-align: center;
  margin-top: 1rem;
  padding: 10px;
  background: rgba(74, 222, 128, 0.1);
  border-radius: 6px;
}

.form-response.error {
  color: #f87171;
  text-align: center;
  margin-top: 1rem;
  padding: 10px;
  background: rgba(248, 113, 113, 0.1);
  border-radius: 6px;
}

/* --- Page Loader --- */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#loader-wrapper.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Scanner Line Effect */
.scanner-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  box-shadow: 0 0 15px var(--primary-color);
  animation: scan 3s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes scan {
  0% {
    top: 0%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

.loader-content {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* Rotating Circles */
.loader-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
}

.loader-circle.outer {
  width: 120px;
  height: 120px;
  border-top-color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  box-shadow: 0 0 15px var(--primary-glow);
  animation: spin 2s linear infinite;
}

.loader-circle.inner {
  width: 80px;
  height: 80px;
  border-left-color: #fff;
  border-right-color: #fff;
  animation: spin-reverse 1.5s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}

/* Text */
.loader-text {
  margin-top: 260px;
  /* Push below the circles */
  font-family: var(--font-display);
  color: var(--primary-color);
  font-size: 1.5rem;
  letter-spacing: 4px;
  font-weight: 700;
  animation: pulse-text 1.5s ease-in-out infinite alternate;
}

.loader-subtext {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 5px;
  letter-spacing: 2px;
}

@keyframes pulse-text {
  from {
    text-shadow: 0 0 5px var(--primary-glow);
    opacity: 0.8;
  }

  to {
    text-shadow: 0 0 20px var(--primary-color), 0 0 10px #fff;
    opacity: 1;
  }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  h1 {
    font-size: 3.5rem;
  }

  .site-header {
    top: 15px;
    right: 15px;
  }

  .toggle-btn {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 13vw;
    /* Responsive font size based on viewport width */
    margin-top: 1rem;
  }

  .site-header {
    top: 10px;
    right: 10px;
    gap: 8px;
  }

  .toggle-btn {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
    margin-left: 5px;
  }

  /* Ensure hero content doesn't overlap with fixed header */
  .hero-section {
    padding-top: 70px;
    /* Space for header */
    align-items: flex-start;
    /* Align top */
    min-height: 50vh;
  }

  .hero-content {
    width: 100%;
    padding: 0 10px;
  }

  .hero-robot {
    width: 180px;
    margin-top: 2rem;
  }

  .lang-option {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }
}

/* ============================================
   NEW NAVIGATION BAR STYLES
   ============================================ */

/* Main Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  gap: 1rem;
}

/* Brand/Logo */
.nav-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 2px;
  text-shadow: 0 0 20px var(--primary-glow);
  transition: all 0.3s ease;
}

.nav-brand:hover .brand-text {
  text-shadow: 0 0 30px var(--primary-color), 0 0 50px var(--primary-glow);
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  color: var(--text-color);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 59, 59, 0.1);
}

.nav-link:hover::before {
  width: 80%;
}

.nav-link.active {
  color: var(--primary-color);
  background: rgba(255, 59, 59, 0.15);
}

.nav-link.active::before {
  width: 80%;
}

.nav-link i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.nav-link:hover i {
  transform: scale(1.2);
}

/* CTA Navigation Link (Get Quote) */
.nav-link.cta-link {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 0 15px var(--primary-glow);
  border: none;
}

.nav-link.cta-link::before {
  display: none;
}

.nav-link.cta-link:hover {
  background: #fff;
  color: var(--primary-color);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.nav-link.cta-link.active {
  background: #fff;
  color: var(--primary-color);
}

/* Navigation Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-controls .toggle-btn {
  width: 42px;
  height: 42px;
  margin-left: 0;
}

.nav-controls .language-dropdown {
  margin-left: 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Main Content Area */
.main-content {
  padding-top: 70px;
  min-height: calc(100vh - 70px);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* Page Hero */
.page-hero {
  padding: 4rem 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 59, 59, 0.05) 0%, transparent 100%);
}

.page-title {
  font-size: 3rem;
  color: var(--primary-color);
  background: none;
  -webkit-text-fill-color: initial;
  text-shadow: 0 0 30px var(--primary-glow);
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Hero Section Updates */
.hero-section {
  padding-top: 2rem;
  min-height: calc(100vh - 70px);
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 6rem;
  color: var(--primary-color);
  text-shadow: 0 0 30px var(--primary-glow);
  margin-bottom: 1rem;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    text-shadow: 0 0 30px var(--primary-glow);
  }

  50% {
    text-shadow: 0 0 50px var(--primary-color), 0 0 80px var(--primary-glow);
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  margin-top: 2rem;
  border-radius: 50px;
}

.hero-cta i {
  font-size: 1.2rem;
}

.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 20px var(--primary-glow);
  }

  50% {
    box-shadow: 0 0 40px var(--primary-color), 0 0 60px var(--primary-glow);
  }
}

/* Feature Icon Wrapper */
.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 59, 59, 0.1);
  border: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.feature:hover .feature-icon-wrapper {
  background: var(--primary-color);
  box-shadow: 0 0 20px var(--primary-glow);
}

.feature:hover .feature-icon-wrapper i {
  color: #fff;
}

/* Intro Section */
.intro-section {
  padding: 4rem 0;
  text-align: center;
}

.intro-text {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Features Section */
.features-section {
  padding: 4rem 0;
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

.contact-section {
  padding: 4rem 0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  position: relative;
}

.info-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: var(--primary-color);
  transform: translateX(10px);
}

.info-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 59, 59, 0.1);
  border: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.info-icon i {
  color: var(--primary-color);
  font-size: 1.3rem;
}

.info-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.info-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
}

.info-link:hover {
  text-decoration: underline;
}

.info-text {
  opacity: 0.8;
}

.contact-robot {
  width: 150px;
  position: absolute;
  bottom: -250px;
  right: 200px;
  opacity: 0.8;
}

.contact-form-wrapper {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
}

.contact-form-wrapper h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: none;
  display: block;
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.site-footer {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
  border-top: none;
  padding: 0 0 1.5rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.footer-glow-line {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
  opacity: 0.6;
  margin-bottom: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr 2.6fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

/* Brand Column */
.footer-col.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-logo-link {
  text-decoration: none;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 2px;
  display: inline-block;
  text-shadow: 0 0 20px var(--primary-glow);
}

.footer-tagline {
  opacity: 0.65;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-phone:hover {
  color: var(--primary-color);
  opacity: 1;
  text-shadow: 0 0 8px var(--primary-glow);
}

.footer-phone i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

/* Column Headings */
.footer-heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-color);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-color);
  box-shadow: 0 0 8px var(--primary-glow);
}

/* Navigation Links */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-link {
  color: var(--text-color);
  text-decoration: none;
  opacity: 0.7;
  font-size: 0.88rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-link i {
  font-size: 0.65rem;
  opacity: 0.4;
  transition: all 0.3s ease;
  color: var(--primary-color);
}

.footer-link:hover {
  color: var(--primary-color);
  opacity: 1;
  padding-inline-start: 4px;
}

.footer-link:hover i {
  opacity: 1;
}

/* Services Grid */
.footer-services-wrap {
  min-width: 0;
}

.footer-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 2rem;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  opacity: 0.5;
  font-size: 0.85rem;
}

/* Robot Image */
.footer-robot {
  position: absolute;
  bottom: 60px;
  right: 5%;
  width: 80px;
  /*  opacity: 0.12;/***/
  pointer-events: none;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info {
    order: 2;
  }

  .contact-form-wrapper {
    order: 1;
  }

  .contact-robot {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-services-wrap {
    grid-column: 1 / -1;
  }

  .footer-robot {
    display: none;
  }
}

@media (max-width: 768px) {

  /* Mobile Navigation */
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--glass-border);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    width: 100%;
    justify-content: center;
    padding: 1rem;
  }

  .main-nav {
    padding: 0.75rem 1rem;
  }

  .brand-text {
    font-size: 1.4rem;
  }

  .nav-controls .toggle-btn {
    width: 38px;
    height: 38px;
  }

  /* Hero */
  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-cta {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  /* Page Hero */
  .page-title {
    font-size: 2.2rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Footer mobile */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-col.footer-brand {
    align-items: center;
  }

  .footer-heading::after {
    inset-inline-start: 50%;
    transform: translateX(-50%);
  }

  [dir="rtl"] .footer-heading::after {
    transform: translateX(50%);
  }

  .footer-nav {
    align-items: center;
  }

  .footer-services-wrap {
    grid-column: auto;
  }

  .footer-services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 1.5rem;
    text-align: start;
  }

  .footer-link:hover {
    padding-inline-start: 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-robot {
    width: 200px;
  }

  .container {
    padding: 0 1rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .footer-services-grid {
    grid-template-columns: 1fr;
  }

  .footer-services-grid .footer-nav {
    align-items: center;
  }
}

/* ============================================
   LIGHT THEME OVERRIDES
   ============================================ */

body.light-theme .site-header {
  background: rgba(255, 255, 255, 0.9);
}

body.light-theme .nav-link {
  color: #333;
}

body.light-theme .nav-link:hover {
  color: #000;
  background: rgba(211, 47, 47, 0.1);
}

body.light-theme .nav-link.active {
  color: var(--primary-color);
}

body.light-theme .nav-links {
  background: rgba(255, 255, 255, 0.98);
}

body.light-theme .hamburger-line {
  background: var(--primary-color);
}

body.light-theme .site-footer {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.06) 100%);
}

body.light-theme .toggle-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
}

body.light-theme .lang-option {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
}

/* ============================================
   PORTFOLIO SECTION STYLES
   ============================================ */

.portfolio-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

/* Subtle animated background gradient */
.portfolio-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 59, 59, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(255, 59, 59, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

/* ============================================
   PORTFOLIO CARD - CUTTING EDGE EFFECTS
   ============================================ */

.portfolio-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  isolation: isolate;
}

/* Animated glow effect element */
.portfolio-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg,
      transparent 0deg,
      var(--primary-color) 60deg,
      transparent 120deg);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  animation: rotateGlow 3s linear infinite paused;
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.portfolio-card:hover .portfolio-card-glow {
  opacity: 0.15;
  animation-play-state: running;
}

/* Card hover state */
.portfolio-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--primary-color);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(255, 59, 59, 0.2),
    inset 0 0 30px rgba(255, 59, 59, 0.05);
}

/* ============================================
   PORTFOLIO CARD IMAGE
   ============================================ */

.portfolio-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.portfolio-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
  filter: grayscale(20%) brightness(0.9);
}

.portfolio-card:hover .portfolio-card-image img {
  transform: scale(1.1);
  filter: grayscale(0%) brightness(1);
}

/* Image overlay with gradient */
.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      transparent 0%,
      transparent 40%,
      rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-card-overlay {
  opacity: 1;
  background: linear-gradient(180deg,
      rgba(255, 59, 59, 0.1) 0%,
      rgba(0, 0, 0, 0.7) 50%,
      rgba(0, 0, 0, 0.9) 100%);
}

/* View button */
.portfolio-card-view {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.portfolio-card:hover .portfolio-card-view {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-card-view:hover {
  background: #fff;
  color: var(--primary-color);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

.portfolio-card-view i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-card-view i {
  animation: pulseIcon 1s ease-in-out infinite;
}

@keyframes pulseIcon {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

/* ============================================
   PORTFOLIO CARD CONTENT
   ============================================ */

.portfolio-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg,
      var(--glass-bg) 0%,
      rgba(0, 0, 0, 0.3) 100%);
}

.portfolio-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  transition: color 0.3s ease;
  line-height: 1.3;
}

.portfolio-card:hover .portfolio-card-title {
  color: var(--primary-color);
  text-shadow: 0 0 20px var(--primary-glow);
}

.portfolio-card-desc {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.7;
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-card-desc {
  opacity: 0.9;
}

/* ============================================
   PORTFOLIO RESPONSIVE DESIGN
   ============================================ */

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

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

@media (max-width: 768px) {
  .portfolio-section {
    padding: 4rem 0;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portfolio-card-image {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 480px) {
  .portfolio-card-content {
    padding: 1.25rem;
  }

  .portfolio-card-title {
    font-size: 1.1rem;
  }
}

/* ============================================
   LIGHT THEME PORTFOLIO OVERRIDES
   ============================================ */

body.light-theme .portfolio-card {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body.light-theme .portfolio-card:hover {
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 30px rgba(211, 47, 47, 0.15);
}

body.light-theme .portfolio-card-title {
  color: #1a1a1a;
}

body.light-theme .portfolio-card:hover .portfolio-card-title {
  color: var(--primary-color);
}

body.light-theme .portfolio-card-content {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.95) 100%);
}

/* ============================================
   PORTFOLIO DETAIL PAGE STYLES
   ============================================ */

.portfolio-detail-hero {
  padding: 4rem 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 59, 59, 0.08) 0%, transparent 100%);
  position: relative;
}

.portfolio-detail-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.portfolio-detail-title {
  font-size: 3.5rem;
  font-family: var(--font-display);
  color: var(--primary-color);
  text-shadow: 0 0 40px var(--primary-glow);
  margin-bottom: 1rem;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    text-shadow: 0 0 40px var(--primary-glow);
  }

  50% {
    text-shadow: 0 0 60px var(--primary-glow), 0 0 80px var(--primary-glow);
  }
}

.portfolio-detail-short-desc {
  font-size: 1.3rem;
  opacity: 0.85;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.portfolio-demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 20px var(--primary-glow);
  position: relative;
  overflow: hidden;
}

.portfolio-demo-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.5s;
}

.portfolio-demo-btn:hover::before {
  left: 100%;
}

.portfolio-demo-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px var(--primary-color), 0 0 50px var(--primary-glow);
}

.portfolio-demo-btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

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

/* Content Section */
.portfolio-content-section {
  padding: 4rem 0;
}

.portfolio-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.portfolio-page-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 3rem;
  margin-bottom: 4rem;
  line-height: 1.8;
  font-size: 1.05rem;
}

.portfolio-page-content h1,
.portfolio-page-content h2,
.portfolio-page-content h3 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
}

.portfolio-page-content h1:first-child,
.portfolio-page-content h2:first-child,
.portfolio-page-content h3:first-child {
  margin-top: 0;
}

.portfolio-page-content p {
  margin-bottom: 1.5rem;
}

.portfolio-page-content ul,
.portfolio-page-content ol {
  margin-bottom: 1.5rem;
  padding-inline-start: 2rem;
}

.portfolio-page-content li {
  margin-bottom: 0.5rem;
}

.portfolio-page-content a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px dashed var(--primary-color);
  transition: all 0.3s ease;
}

.portfolio-page-content a:hover {
  border-bottom-style: solid;
  text-shadow: 0 0 10px var(--primary-glow);
}

.portfolio-page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.portfolio-page-content code {
  background: rgba(255, 59, 59, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.portfolio-page-content pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.portfolio-page-content pre code {
  background: transparent;
  padding: 0;
}

/* Gallery Section */
.portfolio-gallery-section {
  margin-top: 4rem;
}

.portfolio-gallery-title {
  text-align: center;
  margin-bottom: 2rem;
}

.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--primary-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--primary-glow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: brightness(0.85);
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(1);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 20px var(--primary-glow);
}

.gallery-item:hover .gallery-item-icon {
  transform: scale(1);
}

/* Back Button */
.portfolio-back-section {
  padding: 2rem 0 4rem;
  text-align: center;
}

.portfolio-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 2rem;
  background: transparent;
  border: 2px solid var(--glass-border);
  color: var(--text-color);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.portfolio-back-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(255, 59, 59, 0.1);
}

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

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

/* Portfolio Detail Responsive */
@media (max-width: 768px) {
  .portfolio-detail-title {
    font-size: 2.5rem;
  }

  .portfolio-detail-short-desc {
    font-size: 1.1rem;
  }

  .portfolio-page-content {
    padding: 2rem;
  }

  .portfolio-gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .portfolio-detail-title {
    font-size: 2rem;
  }

  .portfolio-page-content {
    padding: 1.5rem;
  }

  .portfolio-gallery {
    grid-template-columns: 1fr;
  }
}

/* Light theme overrides for detail page */
body.light-theme .portfolio-page-content {
  background: rgba(255, 255, 255, 0.9);
}

body.light-theme .gallery-item {
  background: rgba(0, 0, 0, 0.05);
}

/* ============================================
   CLICKABLE FEATURE CARDS
   ============================================ */

.feature.feature-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
}

.feature.feature-link:hover {
  transform: translateY(-8px) scale(1.02);
}

.feature-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 59, 59, 0.1);
  border: 1px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

[dir="rtl"] .feature-arrow {
  right: auto;
  left: 1.5rem;
  transform: translateX(10px);
}

.feature-arrow i {
  color: var(--primary-color);
  font-size: 0.9rem;
  margin: 0;
}

.feature.feature-link:hover .feature-arrow {
  opacity: 1;
  transform: translateX(0);
}

.feature.feature-link:hover .feature-arrow i {
  color: var(--primary-color);
  animation: arrowBounce 0.6s ease-in-out infinite;
}

@keyframes arrowBounce {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(5px);
  }
}

[dir="rtl"] .feature.feature-link:hover .feature-arrow i {
  animation: arrowBounceRTL 0.6s ease-in-out infinite;
}

@keyframes arrowBounceRTL {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-5px);
  }
}

/* ============================================
   SERVICE PAGE STYLES
   ============================================ */

/* Service Hero */
.service-hero {
  position: relative;
  padding: 6rem 0 4rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.service-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.service-hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 59, 59, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(255, 59, 59, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, transparent 50%, rgba(0, 0, 0, 0.5) 100%);
}

.service-hero-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 59, 59, 0.3) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(255, 59, 59, 0.2) 1px, transparent 1px),
    radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px, 200px 200px, 120px 120px;
  animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
  0% {
    background-position: 0 0, 50px 50px, 100px 100px, 30px 30px;
  }

  100% {
    background-position: 100px 100px, 150px 150px, 200px 200px, 130px 130px;
  }
}

.service-hero .container {
  position: relative;
  z-index: 1;
}

.service-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.service-back-link:hover {
  opacity: 1;
  color: var(--primary-color);
}

.service-back-link i {
  transition: transform 0.3s ease;
}

.service-back-link:hover i {
  transform: translateX(-5px);
}

[dir="rtl"] .service-back-link:hover i {
  transform: translateX(5px);
}

.service-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.service-icon-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 59, 59, 0.2) 0%, rgba(255, 59, 59, 0.05) 100%);
  border: 3px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  box-shadow:
    0 0 40px var(--primary-glow),
    inset 0 0 30px rgba(255, 59, 59, 0.1);
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {

  0%,
  100% {
    box-shadow: 0 0 40px var(--primary-glow), inset 0 0 30px rgba(255, 59, 59, 0.1);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 60px var(--primary-color), 0 0 80px var(--primary-glow), inset 0 0 40px rgba(255, 59, 59, 0.2);
    transform: scale(1.05);
  }
}

.service-icon-large i {
  font-size: 3rem;
  color: var(--primary-color);
  text-shadow: 0 0 20px var(--primary-glow);
}

.service-title {
  font-size: 3.5rem;
  font-family: var(--font-display);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  background: linear-gradient(180deg, #fff 0%, var(--text-color) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.service-subtitle {
  font-size: 1.4rem;
  color: var(--primary-color);
  font-weight: 500;
  opacity: 0.95;
  text-shadow: 0 0 20px var(--primary-glow);
}

/* Service Description Section */
.service-description-section {
  padding: 4rem 0;
  position: relative;
}

.service-description-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.service-description-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.service-description-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 59, 59, 0.1);
  transform: translateY(-5px);
}

.service-description-icon {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.15;
}

[dir="rtl"] .service-description-icon {
  right: auto;
  left: 2rem;
}

.service-description-text {
  font-size: 1.25rem;
  line-height: 1.9;
  color: var(--text-color);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Service Section Titles */
.service-section-title {
  text-align: center;
  font-size: 2.2rem;
  font-family: var(--font-display);
  color: #fff;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.title-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 59, 59, 0.1);
  border: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.title-icon i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* Service Features Section */
.service-features-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 59, 59, 0.02) 50%, transparent 100%);
}

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

.service-feature-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.5rem 5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

[dir="rtl"] .service-feature-card {
  padding: 1.5rem 5rem 1.5rem 1.5rem;
}

.service-feature-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 59, 59, 0.15);
}

.service-feature-number {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  opacity: 0.3;
  transition: all 0.3s ease;
}

[dir="rtl"] .service-feature-number {
  left: auto;
  right: 1.5rem;
}

.service-feature-card:hover .service-feature-number {
  opacity: 1;
  text-shadow: 0 0 20px var(--primary-glow);
}

.service-feature-text {
  font-size: 1.05rem;
  color: var(--text-color);
  line-height: 1.6;
}

.service-feature-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0deg, var(--primary-color) 30deg, transparent 60deg);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  animation: rotateGlow 4s linear infinite paused;
}

.service-feature-card:hover .service-feature-glow {
  opacity: 0.05;
  animation-play-state: running;
}

/* Service Process Section */
.service-process-section {
  padding: 4rem 0;
}

.service-process-timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.service-process-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 0;
  position: relative;
}

[dir="rtl"] .service-process-step {
  flex-direction: row-reverse;
}

.process-step-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

.connector-line {
  width: 2px;
  height: 60px;
  background: linear-gradient(180deg, var(--primary-color) 0%, rgba(255, 59, 59, 0.2) 100%);
}

.connector-dot {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 59, 59, 0.1);
  border: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.connector-dot span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.service-process-step:hover .connector-dot {
  background: var(--primary-color);
  box-shadow: 0 0 25px var(--primary-glow);
}

.service-process-step:hover .connector-dot span {
  color: #fff;
}

.process-step-content {
  flex: 1;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: all 0.3s ease;
  margin-top: 3rem;
}

.service-process-step:hover .process-step-content {
  border-color: var(--primary-color);
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[dir="rtl"] .service-process-step:hover .process-step-content {
  transform: translateX(-10px);
}

.process-step-content h3 {
  font-size: 1.1rem;
  font-family: var(--font-display);
  color: var(--text-color);
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
}

/* Service Benefits Section */
.service-benefits-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 59, 59, 0.03) 50%, transparent 100%);
}

.service-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.service-benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.service-benefit-item:hover {
  border-color: var(--primary-color);
  transform: translateX(10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

[dir="rtl"] .service-benefit-item:hover {
  transform: translateX(-10px);
}

.benefit-check {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 59, 59, 0.15);
  border: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.benefit-check i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.service-benefit-item:hover .benefit-check {
  background: var(--primary-color);
}

.service-benefit-item:hover .benefit-check i {
  color: #fff;
}

.benefit-text {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.5;
}

/* Service CTA Section */
.service-cta-section {
  padding: 4rem 0;
}

.service-cta-card {
  background: linear-gradient(135deg, rgba(255, 59, 59, 0.1) 0%, rgba(255, 59, 59, 0.05) 100%);
  border: 2px solid var(--primary-color);
  border-radius: 24px;
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 59, 59, 0.1) 60deg, transparent 120deg);
  animation: rotateCTA 10s linear infinite;
  z-index: 0;
}

@keyframes rotateCTA {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.cta-content {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-family: var(--font-display);
  color: #fff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.cta-content p {
  font-size: 1.2rem;
  color: var(--text-color);
  opacity: 0.9;
}

.cta-btn {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  padding: 1.25rem 3rem;
  border-radius: 50px;
}

/* Service Related Section */
.service-related-section {
  padding: 4rem 0 6rem;
}

.service-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-related-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.service-related-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 30px rgba(255, 59, 59, 0.15);
}

.related-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 59, 59, 0.1);
  border: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.related-card-icon i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.service-related-card:hover .related-card-icon {
  background: var(--primary-color);
  box-shadow: 0 0 25px var(--primary-glow);
}

.service-related-card:hover .related-card-icon i {
  color: #fff;
}

.service-related-card h3 {
  font-size: 1rem;
  font-family: var(--font-display);
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  transition: color 0.3s ease;
}

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

.related-card-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 59, 59, 0.1);
  border: 1px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.related-card-arrow i {
  color: var(--primary-color);
  font-size: 0.8rem;
}

.service-related-card:hover .related-card-arrow {
  opacity: 1;
  transform: translateY(0);
}

.related-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0deg, var(--primary-color) 60deg, transparent 120deg);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  animation: rotateGlow 4s linear infinite paused;
}

.service-related-card:hover .related-card-glow {
  opacity: 0.08;
  animation-play-state: running;
}

/* Service Page Responsive */
@media (max-width: 1200px) {
  .service-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .service-hero {
    padding: 4rem 0 3rem;
    min-height: auto;
  }

  .service-title {
    font-size: 2.5rem;
  }

  .service-subtitle {
    font-size: 1.1rem;
  }

  .service-icon-large {
    width: 100px;
    height: 100px;
  }

  .service-icon-large i {
    font-size: 2.5rem;
  }

  .service-description-card {
    padding: 2rem;
  }

  .service-description-text {
    font-size: 1.1rem;
  }

  .service-section-title {
    font-size: 1.8rem;
  }

  .service-features-grid {
    grid-template-columns: 1fr;
  }

  .service-benefits-grid {
    grid-template-columns: 1fr;
  }

  .service-cta-card {
    padding: 2.5rem 1.5rem;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }

  .service-related-grid {
    grid-template-columns: 1fr;
  }

  .service-process-step {
    gap: 1rem;
  }

  .connector-dot {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 480px) {
  .service-title {
    font-size: 2rem;
  }

  .service-icon-large {
    width: 80px;
    height: 80px;
  }

  .service-icon-large i {
    font-size: 2rem;
  }

  .service-section-title {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 0.75rem;
  }

  .title-icon {
    width: 40px;
    height: 40px;
  }

  .service-feature-card {
    padding: 1.25rem 1.25rem 1.25rem 4rem;
  }

  [dir="rtl"] .service-feature-card {
    padding: 1.25rem 4rem 1.25rem 1.25rem;
  }

  .service-feature-number {
    font-size: 1.5rem;
    left: 1rem;
  }

  [dir="rtl"] .service-feature-number {
    left: auto;
    right: 1rem;
  }
}

/* Light Theme Service Page Overrides */
body.light-theme .service-title {
  background: linear-gradient(180deg, #1a1a1a 0%, #333 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .service-description-card {
  background: rgba(255, 255, 255, 0.8);
}

body.light-theme .service-feature-card,
body.light-theme .process-step-content,
body.light-theme .service-benefit-item,
body.light-theme .service-related-card {
  background: rgba(255, 255, 255, 0.7);
}

body.light-theme .service-section-title,
body.light-theme .process-step-content h3,
body.light-theme .service-related-card h3 {
  color: #1a1a1a;
}

body.light-theme .service-cta-card {
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.1) 0%, rgba(211, 47, 47, 0.05) 100%);
}

body.light-theme .cta-content h2 {
  color: #1a1a1a;
}