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

:root {
  /* Light Theme Variables */
  --bg-color: #f8fafc;
  --text-color: #0f172a;
  --accent-color: #0ea5e9; /* Sky Blue */
  --accent-glow: rgba(14, 165, 233, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: rgba(14, 165, 233, 0.15);
  --hover-glass-bg: rgba(255, 255, 255, 0.85);
  --card-glow: 0 10px 30px -10px rgba(14, 165, 233, 0.3);
}

[data-theme="dark"] {
  /* Dark Theme Variables */
  --bg-color: #020617;
  --text-color: #f8fafc;
  --accent-color: #0ea5e9; /* Sky Blue */
  --accent-glow: rgba(14, 165, 233, 0.6);
  --glass-bg: rgba(15, 23, 42, 0.5);
  --glass-border: rgba(14, 165, 233, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.5);
  --hover-glass-bg: rgba(30, 41, 59, 0.7);
  --card-glow: 0 10px 40px -10px rgba(14, 165, 233, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  max-width: 100vw;
  line-height: 1.8;
  letter-spacing: 0.3px;
  animation: pageFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Floating WhatsApp Button */
/* Floating WhatsApp Button (New Design) */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: transparent;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 1000;
  text-decoration: none;
}
[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 20px;
}
.whatsapp-float .svgContainer {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  backdrop-filter: blur(0px);
  border-radius: 10px;
  transition: all 0.3s;
  border: 1px solid rgba(156, 156, 156, 0.466);
}
.whatsapp-float .svgContainer svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}
.whatsapp-float .BG {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  background: #075e54;
  z-index: -1;
  border-radius: 10px;
  pointer-events: none;
  transition: all 0.3s;
}
.whatsapp-float:hover .BG {
  transform: rotate(35deg);
  transform-origin: bottom;
}
.whatsapp-float:hover .svgContainer {
  background-color: rgba(156, 156, 156, 0.466);
  backdrop-filter: blur(4px);
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Site Frame */
.site-frame {
  position: absolute;
  top: 15px;
  left: 15px;
  width: calc(100% - 30px);
  height: calc(100% - 30px);
  border: 1px solid var(--accent-color);
  border-radius: 20px;
  pointer-events: none;
  z-index: 9999;
  box-shadow: inset 0 0 20px var(--accent-glow), 0 0 15px var(--accent-glow);
  opacity: 0.4;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}

body[dir="rtl"] {
  font-family: 'Tajawal', sans-serif;
  letter-spacing: 0px;
}

h1, h2, h3 {
  letter-spacing: -0.5px;
  line-height: 1.3;
}
body[dir="rtl"] h1, body[dir="rtl"] h2, body[dir="rtl"] h3 {
  letter-spacing: 0;
}

/* Premium Dynamic Background Effect */
body::before, body::after {
  content: '';
  position: fixed;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  opacity: 0.8;
  z-index: -1;
  will-change: transform;
  animation: float 25s infinite alternate ease-in-out;
}
body::before { top: -20%; left: -10%; }
body::after { bottom: -20%; right: -10%; animation-delay: -12s; }

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10%, 15%) scale(1.1); }
}

/* Nav & Glass */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
}

nav {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  padding: 1rem 2rem;
  border-radius: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
}
.logo {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  opacity: 0.8;
}
.nav-links a:hover, .nav-links a.active {
  opacity: 1;
  color: var(--accent-color);
}
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}
body[dir="rtl"] .nav-links a::after {
  left: auto;
  right: 0;
}

.nav-controls {
  display: flex;
  gap: 1rem;
}

button {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
button:hover {
  background: var(--hover-glass-bg);
  border-color: var(--accent-color);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
  transform: translateY(-3px);
  color: #fff;
}

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

/* Hero Section */
.hero {
  text-align: center;
  padding: 6rem 2rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero-text-wrapper {
  position: relative;
  display: inline-block;
  padding: 3rem 1rem;
  animation: fadeInUp 1s ease-out forwards;
}
.hero-text-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  z-index: -1;
  animation: pulseGlow 4s infinite alternate ease-in-out;
  border-radius: 50%;
  pointer-events: none;
}

@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

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

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text-color) 40%, var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.25rem;
  opacity: 0.85;
  max-width: 700px;
  margin: 0 auto;
}

/* Typewriter Cursor */
.type-cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--accent-color);
  color: transparent;
  margin-left: 2px;
  animation: blink 0.8s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Partners Marquee */
.partners-section {
  padding: 2rem 0;
  overflow: hidden;
  position: relative;
}
.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 2rem;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-shrink: 0;
  min-width: 100%;
  animation: scroll 60s linear infinite;
}
body[dir="rtl"] .marquee-track {
  animation: scrollRtl 60s linear infinite;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@keyframes scrollRtl {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}
.marquee-logo {
  height: 60px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: filter 0.3s ease, transform 0.3s ease;
}
.marquee-logo:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6rem;
  max-width: 1000px;
  margin: 0 auto;
}

.video-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: linear-gradient(180deg, transparent 0%, var(--vid-bg, rgba(255,255,255,0.05)) 100%);
  border: 1px solid transparent;
  border-bottom: 2px solid var(--vid-color);
  border-radius: 24px;
  box-shadow: 0 10px 40px var(--vid-bg);
  position: relative;
}
.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px var(--vid-glow);
}
.video-card:hover .video-wrapper {
  box-shadow: 0 15px 50px var(--vid-glow);
  border-color: var(--vid-color);
}

.video-number {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: -1rem;
  color: var(--vid-color);
  text-shadow: 0 4px 20px var(--vid-glow);
  letter-spacing: -1px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  border: 1px solid var(--glass-border);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
  z-index: 1;
}
.video-wrapper iframe, .video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.video-info p {
  font-size: 1rem;
  opacity: 0.8;
}

/* About Us Section */
.company-description {
  max-width: 1000px;
  margin: -3rem auto 5rem auto; /* Overlap with hero slightly */
  position: relative;
  z-index: 2;
  padding: 0 1rem;
}
.desc-content {
  padding: 4rem 5rem;
  border-radius: 30px;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, var(--glass-bg) 0%, transparent 100%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.quote-icon {
  font-size: 8rem;
  color: var(--accent-color);
  opacity: 0.08;
  position: absolute;
  top: -40px;
  left: 40px;
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
}
body[dir="rtl"] .quote-icon {
  left: auto;
  right: 40px;
}
.desc-content p {
  font-size: 1.6rem;
  line-height: 2.2;
  font-weight: 300;
  position: relative;
  z-index: 1;
  color: var(--text-color);
  opacity: 0.95;
}
.accent-line {
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  margin: 3rem auto 0 auto;
  border-radius: 4px;
  box-shadow: 0 0 20px var(--accent-glow);
}

.about-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}
.about-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
}
.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}
.about-card img {
  width: 100%;
  height: 500px; /* Taller image */
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: filter 0.4s ease;
}
.about-card:hover img {
  filter: brightness(1.1);
}

.card-content-wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0.5rem;
}
.about-card h3 {
  font-size: 1.8rem;
  color: var(--accent-color);
  margin-bottom: 0;
  font-weight: 800;
  padding-right: 30px; /* Space for icon */
}
[dir="rtl"] .about-card h3 {
  padding-right: 0;
  padding-left: 30px;
}

.card-desc-wrapper {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-desc-wrapper p {
  font-size: 1.15rem;
  opacity: 0.9;
  line-height: 1.6;
  padding-top: 1rem;
  color: var(--text-color);
}
.about-card.active .card-desc-wrapper {
  max-height: 400px;
  opacity: 1;
}

.card-expand-icon {
  position: absolute;
  right: 5px;
  top: 5px;
  transition: transform 0.4s ease;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
}
[dir="rtl"] .card-expand-icon {
  right: auto;
  left: 5px;
}
.about-card.active .card-expand-icon {
  transform: rotate(180deg);
}

/* Services & Work Placeholder Text */
.coming-soon {
  text-align: center;
  font-size: 1.5rem;
  padding: 4rem;
  margin-top: 4rem;
  color: var(--accent-color);
}

/* Our Work Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 3rem;
  border-radius: 20px;
  margin-top: 3rem;
}
.feature-box {
  text-align: center;
  padding: 2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease, background 0.3s ease;
}
.feature-box:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}
.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.feature-box h3 {
  color: var(--accent-color);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.feature-box p {
  color: var(--text-color);
  opacity: 0.9;
  font-size: 1.05rem;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  justify-items: center; /* Center the cards if they don't fill the space */
}
.project-card {
  position: relative;
  width: 100%;
  max-width: 320px; /* Prevents the card from stretching too wide */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: transform 0.4s ease;
  cursor: pointer;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}
.project-card:hover {
  transform: translateY(-10px);
}
.project-card img {
  width: 100%;
  height: 450px; /* Made the card image taller vertically as requested */
  object-fit: cover;
  transition: filter 0.4s ease, transform 0.4s ease;
}
.project-card:hover img {
  filter: brightness(0.8);
  transform: scale(1.05);
}
.project-info {
  padding: 1.5rem;
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--glass-border);
}
.project-info h3 {
  margin: 0;
  color: var(--accent-color);
  font-size: 1.3rem;
  font-weight: 700;
}

/* Pricing / Subscriptions Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding: 1rem;
}
.pricing-card {
  padding: 3rem 2rem;
  border-radius: 24px;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(20px);
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-color);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}
[dir="rtl"] .pricing-card::before {
  transform-origin: right;
}
.pricing-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(var(--accent-color), 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}
.pricing-card:hover::before {
  transform: scaleX(1);
}
.pricing-title {
  font-size: 1.8rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
[dir="rtl"] .pricing-features {
  text-align: right;
}
.pricing-features li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.8rem;
}
.pricing-features li:last-child {
  border-bottom: none;
}
.feat-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Dashboard */
.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--accent-color);
}
input, textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}
[data-theme="light"] input, [data-theme="light"] textarea {
  background: rgba(255, 255, 255, 0.5);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-color);
}
.video-form-item, .about-form-item {
  padding: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  border-radius: 16px;
}
.remove-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid #ef4444;
  padding: 0.4rem 0.8rem;
}
.remove-btn:hover {
  background: #ef4444;
  color: white;
}
body[dir="rtl"] .remove-btn {
  right: auto;
  left: 1rem;
}

/* Image Upload Preview */
.image-upload-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.image-preview {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--glass-border);
}
input[type="file"] {
  padding: 0.5rem;
  background: transparent;
  border: none;
}

/* Hamburger Button */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    position: absolute;
    top: 10px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    width: 95%;
    border-radius: 18px;
    gap: 0;
  }
  .hamburger-btn {
    display: block;
    order: 3;
    margin-left: 0.5rem;
  }
  [dir="rtl"] .hamburger-btn {
    margin-left: 0;
    margin-right: 0.5rem;
  }
  .logo {
    order: 1;
    font-size: 1.2rem;
    flex: 1;
  }
  .nav-controls {
    order: 2;
    display: flex;
    gap: 0.4rem;
    align-items: center;
  }
  .nav-links {
    order: 4;
    width: 100%;
    display: none; /* hidden by default */
    flex-direction: column;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    gap: 1rem;
    text-align: center;
  }
  .nav-links.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
  }
  .nav-links a {
    font-size: 1.1rem;
    padding: 0.5rem;
  }
  .hero {
    padding: 10rem 1rem 3rem 1rem;
  }
  .hero h1 { 
    font-size: 2rem; 
  }
  .hero p {
    font-size: 1rem;
  }
  .desc-content {
    padding: 2rem 1.5rem !important;
  }
  #about-company-desc {
    font-size: 1.1rem !important;
  }
  .about-cards-container, 
  .partners-grid, 
  .work-features-grid, 
  .work-projects-grid, 
  .services-grid { 
    grid-template-columns: 1fr !important; 
    gap: 1.5rem;
  }
  .site-frame {
    display: none; /* Hide frame on mobile to save space */
  }
  .video-container iframe {
    height: 250px;
  }
  .about-text {
    font-size: 1.1rem;
  }
  section {
    padding: 2rem 1rem !important;
  }
  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 15px;
    right: 15px;
  }
  [dir="rtl"] .whatsapp-float {
    left: 15px;
    right: auto;
  }
  .whatsapp-float svg {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 480px) {
  nav {
    top: 10px;
    padding: 0.8rem;
  }
  .logo {
    font-size: 1.3rem;
  }
  .nav-links {
    gap: 0.5rem;
  }
  .nav-links a {
    font-size: 0.9rem;
  }
  .hero {
    padding: 9rem 1rem 2rem 1rem;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
}

/* Maintenance Mode */
.maintenance-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #050505 0%, #001f3f 60%, #005080 100%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  animation: pageFadeIn 0.8s ease forwards;
}

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

.maint-text-container {
  margin-top: 2rem;
  animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.3s;
  opacity: 0;
}
.maintenance-overlay h1 {
  font-size: 3.5rem;
  color: #00a8ff;
  margin-bottom: 1rem;
  text-shadow: 0 0 15px rgba(0, 168, 255, 0.4);
  font-weight: 800;
}
.maint-desc {
  font-size: 1.5rem;
  color: #e0e0e0;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.maint-contact {
  margin-top: 2.5rem;
  animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.6s;
  opacity: 0;
}
.maint-contact p {
  font-size: 1.2rem;
  color: #a0a0a0;
  margin-bottom: 1rem;
}
.maintenance-overlay .insta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 3rem;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.4rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px rgba(220, 39, 67, 0.3);
}
.maintenance-overlay .insta-link:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 25px rgba(220, 39, 67, 0.5);
}

/* Blended Gearbox Animation */
@keyframes clockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes counter-clockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}
.gearbox {
  height: 150px;
  width: 200px;
  position: relative;
  overflow: hidden;
  animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.gear {
  position: absolute;
  height: 60px;
  width: 60px;
  border-radius: 30px;
  box-shadow: 0px 0px 15px rgba(0, 168, 255, 0.3);
}
.gear.large {
  height: 120px;
  width: 120px;
  border-radius: 60px;
}
.gear.large:after {
  height: 96px;
  width: 96px;
  border-radius: 48px;
  margin-left: -48px;
  margin-top: -48px;
}
.gear.one { top: 12px; left: 10px; }
.gear.two { top: 61px; left: 60px; }
.gear.three { top: 110px; left: 10px; }
.gear.four { top: 13px; left: 128px; }
.gear:after {
  content: "";
  position: absolute;
  height: 36px;
  width: 36px;
  border-radius: 36px;
  background: var(--bg-color); /* Match background */
  top: 50%;
  left: 50%;
  margin-left: -18px;
  margin-top: -18px;
  z-index: 3;
  box-shadow: inset 0px 0px 10px rgba(0, 168, 255, 0.4);
}
.gear-inner {
  position: relative;
  height: 100%;
  width: 100%;
  background: rgba(0, 168, 255, 0.15); /* Sky blue tint instead of #555 */
  border-radius: 30px;
  border: 1px solid rgba(0, 168, 255, 0.4);
}
.large .gear-inner { border-radius: 60px; }
.gear.one .gear-inner { animation: counter-clockwise 3s infinite linear; }
.gear.two .gear-inner { animation: clockwise 3s infinite linear; }
.gear.three .gear-inner { animation: counter-clockwise 3s infinite linear; }
.gear.four .gear-inner { animation: counter-clockwise 6s infinite linear; }
.gear-inner .bar {
  background: rgba(0, 168, 255, 0.3); /* Match theme */
  height: 16px;
  width: 76px;
  position: absolute;
  left: 50%;
  margin-left: -38px;
  top: 50%;
  margin-top: -8px;
  border-radius: 2px;
  border-left: 1px solid rgba(0, 168, 255, 0.8);
  border-right: 1px solid rgba(0, 168, 255, 0.8);
}
.large .gear-inner .bar {
  margin-left: -68px;
  width: 136px;
}
.gear-inner .bar:nth-child(2) { transform: rotate(60deg); }
.gear-inner .bar:nth-child(3) { transform: rotate(120deg); }
.gear-inner .bar:nth-child(4) { transform: rotate(90deg); }
.gear-inner .bar:nth-child(5) { transform: rotate(30deg); }
.gear-inner .bar:nth-child(6) { transform: rotate(150deg); }
/* From Uiverse.io by RiccardoRapelli */ 
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch #theme-toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2196f3;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  z-index: 0;
  overflow: hidden;
}

.sun-moon {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: yellow;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

#theme-toggle-input:checked + .slider {
  background-color: black;
}

#theme-toggle-input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

#theme-toggle-input:checked + .slider .sun-moon {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
  background-color: white;
  -webkit-animation: rotate-center 0.6s ease-in-out both;
  animation: rotate-center 0.6s ease-in-out both;
}

.moon-dot {
  opacity: 0;
  transition: 0.4s;
  fill: gray;
}

#theme-toggle-input:checked + .slider .sun-moon .moon-dot {
  opacity: 1;
}

.slider.round {
  border-radius: 34px;
}

.slider.round .sun-moon {
  border-radius: 50%;
}

#moon-dot-1 {
  left: 10px;
  top: 3px;
  position: absolute;
  width: 6px;
  height: 6px;
  z-index: 4;
}

#moon-dot-2 {
  left: 2px;
  top: 10px;
  position: absolute;
  width: 10px;
  height: 10px;
  z-index: 4;
}

#moon-dot-3 {
  left: 16px;
  top: 18px;
  position: absolute;
  width: 3px;
  height: 3px;
  z-index: 4;
}

#light-ray-1 {
  left: -8px;
  top: -8px;
  position: absolute;
  width: 43px;
  height: 43px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

#light-ray-2 {
  left: -50%;
  top: -50%;
  position: absolute;
  width: 55px;
  height: 55px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

#light-ray-3 {
  left: -18px;
  top: -18px;
  position: absolute;
  width: 60px;
  height: 60px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

.cloud-light {
  position: absolute;
  fill: #eee;
  animation-name: cloud-move;
  animation-duration: 6s;
  animation-iteration-count: infinite;
}

.cloud-dark {
  position: absolute;
  fill: #ccc;
  animation-name: cloud-move;
  animation-duration: 6s;
  animation-iteration-count: infinite;
  animation-delay: 1s;
}

#cloud-1 { left: 30px; top: 15px; width: 40px; }
#cloud-2 { left: 44px; top: 10px; width: 20px; }
#cloud-3 { left: 18px; top: 24px; width: 30px; }
#cloud-4 { left: 36px; top: 18px; width: 40px; }
#cloud-5 { left: 48px; top: 14px; width: 20px; }
#cloud-6 { left: 22px; top: 26px; width: 30px; }

@keyframes cloud-move {
  0% { transform: translateX(0px); }
  40% { transform: translateX(4px); }
  80% { transform: translateX(-4px); }
  100% { transform: translateX(0px); }
}

.stars {
  transform: translateY(-32px);
  opacity: 0;
  transition: 0.4s;
}

.star {
  fill: white;
  position: absolute;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  animation-name: star-twinkle;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

#theme-toggle-input:checked + .slider .stars {
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;
}

#star-1 { width: 20px; top: 2px; left: 3px; animation-delay: 0.3s; }
#star-2 { width: 6px; top: 16px; left: 3px; }
#star-3 { width: 12px; top: 20px; left: 10px; animation-delay: 0.6s; }
#star-4 { width: 18px; top: 0px; left: 18px; animation-delay: 1.3s; }

@keyframes star-twinkle {
  0% { transform: scale(1); }
  40% { transform: scale(1.2); }
  80% { transform: scale(0.8); }
  100% { transform: scale(1); }
}

@keyframes rotate-center {
  0% { transform: translateX(26px) rotate(0); }
  100% { transform: translateX(26px) rotate(360deg); }
}
