/* ===== Variables ===== */
:root {
  /* Core Blues */
  --primary: #0ef;               /* Vivid Neon Blue (main accent) */
  --primary-dark: #0a5d91;       /* Deep Blue for hover/active */
  --secondary: #3b82f6;          /* Soft Vibrant Blue (for variation/secondary CTAs) */

  /* Background & Surfaces */
  --dark: #0a0a12;               /* Deep Neutral Black with blue hue */
  --darker: #05050a;             /* Almost Pure Black */
  --glass-bg: rgba(10, 15, 25, 0.85);  /* Clean glass effect with subtle navy tint */
  --glass-border: rgba(0, 255, 255, 0.06); /* Soft cyan-blue glow outline */

  /* Text & Accent Elements */
  --light: #e6f1ff;              /* Off-white Blue (for text on dark) */
  --terminal-text: #00ffe0;      /* Futuristic Cyan Text */
  --terminal-bg: #0a0f1a;        /* Subtle Navy for terminals */

  /* Glow & Effects */
  --glow: 0 0 24px rgba(0, 238, 255, 0.65); /* Electric Blue Glow */
  --glow-intense: 0 0 40px rgba(0, 238, 255, 0.8); /* Stronger glow option */

  /* Status Colors */
  --danger: #ff3c52;             /* Bold Alert Red (balanced, not neon) */
  --success: #00ffaa;            /* Soft Aqua Green for "success" states */
}


/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--darker);
  color: var(--light);
  font-family:'Segoe UI';
  font-weight: 500;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* ===== Cursor Effects ===== */
.cursor-outer {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(0, 255, 170, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s, height 0.3s, border-color 0.3s, opacity 0.3s;
  opacity: 0;
}


/* ===== Loading Screen ===== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--darker);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-text {
  color: var(--primary);
  font-size: 2rem;
  letter-spacing: 0.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
}

.loader-text::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  color: var(--secondary);
  opacity: 0.7;
  animation: glitch-text 0.4s infinite alternate-reverse;
}

.loader-bar {
  width: 300px;
  height: 4px;
  background: var(--glass-bg);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.loader-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: loading-bar 1.5s infinite linear;
}

.loader-binary {
  color: rgba(255, 255, 255, 0.3);
  font-family: monospace;
  margin-top: 1rem;
  letter-spacing: 2px;
}

@keyframes loading-bar {
  0% {
    left: -50%;
  }
  100% {
    left: 100%;
  }
}

@keyframes glitch-text {
  0% {
    clip-path: inset(30% 0 40% 0);
    transform: translate(-2px, 2px);
  }
  20% {
    clip-path: inset(15% 0 60% 0);
    transform: translate(2px, -2px);
  }
  40% {
    clip-path: inset(50% 0 10% 0);
    transform: translate(-1px, 1px);
  }
  60% {
    clip-path: inset(5% 0 78% 0);
    transform: translate(1px, -1px);
  }
  80% {
    clip-path: inset(80% 0 5% 0);
    transform: translate(-2px, -2px);
  }
  100% {
    clip-path: inset(0% 0 100% 0);
    transform: translate(2px, 2px);
  }
}

/* ===== NAVBAR ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem 0;
  z-index: 100;
  transition: all 0.3s ease;
  background: rgba(5, 5, 10, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header.scrolled {
  padding: 0.8rem 0;
  background: rgba(5, 5, 10, 0.9);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  text-shadow: var(--glow);
  position: relative;
  letter-spacing: 1px;
}

.logo.glitch {
  position: relative;
}

.logo.glitch::before,
.logo.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.logo.glitch::before {
  color: var(--secondary);
  animation: glitch-anim 0.3s infinite linear alternate-reverse;
}

.logo.glitch::after {
  color: var(--primary-dark);
  animation: glitch-anim2 0.5s infinite linear alternate-reverse;
}

.navbar {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  color: var(--light);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.nav-link span {
  position: relative;
  z-index: 1;
}

.nav-link span::before {
  content: attr(data-text);
  position: absolute;
  color: var(--primary);
  width: 0;
  overflow: hidden;
  transition: width 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover span::before,
.nav-link.active span::before {
  width: 100%;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
  box-shadow: var(--glow);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  margin-left: 20px;
}

.nav-close {
  display: none;
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2.5rem;
  color: var(--primary);
  background: none;
  border: none;
  z-index: 100;
  cursor: pointer;
}

.hamburger-inner {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--light);
  top: 50%;
  transform: translateY(-50%);
  transition: background-color 0.3s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--light);
  transition: transform 0.3s ease;
}

.hamburger-inner::before {
  top: -8px;
}

.hamburger-inner::after {
  bottom: -8px;
}

.hamburger.active .hamburger-inner {
  background-color: transparent;
}

.hamburger.active .hamburger-inner::before {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--primary);
}

.hamburger.active .hamburger-inner::after {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--primary);
}

.nav-border {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transition: width 0.5s ease;
}

/* Mobile Nav Styles */


/* ===== Glass Effect for All Sections ===== */
.section-glass {
  background: var(--glass-bg);
  border-radius: 18px;
  border-top: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 8px 32px 0 rgba(0,255,170,0.08), 0 1.5px 8px 0 rgba(0,0,0,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin: 2.5rem 0;
  padding: 3rem 0;
  position: relative;
  z-index: 1;
}


/* ===== Hero Section ===== */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 0;
  padding-top: 100px; /* Add padding to account for fixed navbar */
  overflow: hidden;
}

#particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
}

.hero-badge {
  background: var(--glass-bg);
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}



.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.title-line {
  display: block;
  font-weight: bold;
  margin-top: 17px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: bold;
}

.typing {
  color: var(--primary);
  border-right: 3px solid var(--primary);
  animation: typing 3.5s steps(40, end) infinite, blink-caret 0.75s step-end infinite;
  overflow: hidden;
  white-space: nowrap;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--primary); }
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: var(--glow);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-3d {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  max-width: 400px;
}

.cube-container {
  width: 200px;
  height: 200px;
  perspective: 800px;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-30deg) rotateY(45deg);
  animation: spin 15s infinite linear;
}

.face {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.8;
  border: 2px solid var(--primary);
  box-shadow: 0 0 15px rgba(0,255,170,0.3);
  background: rgba(0,255,170,0.05);
}

.face i, .face .iconify {
  font-size: 3.5rem;      /* Make icon bigger (adjust as needed) */
  color: var(--primary);  /* Or your preferred color */
  text-shadow: 0 0 16px var(--primary-dark), 0 0 32px var(--primary);
  display: block;
}

.front {
  transform: translateZ(100px);
}

.back {
  transform: rotateY(180deg) translateZ(100px);
}

.right {
  transform: rotateY(90deg) translateZ(100px);
}

.left {
  transform: rotateY(-90deg) translateZ(100px);
}

.top {
  transform: rotateX(90deg) translateZ(100px);
}

.bottom {
  transform: rotateX(-90deg) translateZ(100px);
}

@keyframes spin {
  0% {
    transform: rotateX(-30deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(-30deg) rotateY(360deg);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: bobUpDown 2s infinite ease-in-out;
}

.mouse {
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 15px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: mouseScroll 1.5s infinite;
}

.arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.arrows span {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  animation: arrowBlink 1.5s infinite;
}

.arrows span:nth-child(2) {
  animation-delay: 0.15s;
}

.arrows span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes mouseScroll {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(15px);
    opacity: 0;
  }
}

@keyframes arrowBlink {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes bobUpDown {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* ===== Projects Section ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.project-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 2rem;
  justify-content: center;
}

.filter-btn {
  background: var(--glass-bg);
  border: 1.5px solid var(--primary);
  color: var(--light);
  padding: 0.5rem 1.5rem;
  border-radius: 18px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
  box-shadow: 0 0 2px var(--secondary), 0 0 4px var(--secondary), 0 0 8px var(--secondary);
  font-weight: bold;
}

.project-filter-btn,
.skills-filter-btn {
  background: var(--glass-bg);
  border: 1.5px solid var(--primary);
  color: var(--light);
  padding: 0.5rem 1.5rem;
  border-radius: 16px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
  box-shadow: 0 0 2px var(--secondary), 0 0 4px var(--secondary), 0 0 8px var(--secondary);
  font-weight: bold;
}

.project-filter-btn.active,
.skills-filter-btn.active {
  background: var(--glass-bg);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  box-shadow: 0 0 7.5px var(--secondary), 0 0 15px var(--secondary), 0 0 30px var(--secondary);
  transform: scale(1.3);
  z-index: 2;
  margin-left: 10px;
  margin-right: 10px;
  transition:
    background 0.25s,
    color 0.2s,
    border 0.2s,
    box-shadow 0.3s,
    filter 0.3s,
    transform 0.2s;
}


.filter-btn:hover,
.filter-btn.active {
  background: rgba(0,255,170,0.2);
  color: var(--primary);
  box-shadow: 0 0 7.5px var(--secondary), 0 0 15px var(--secondary), 0 0 30px var(--secondary);
}

.project-card {
  background: var(--glass-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(.4,2,.6,1);
}

.project-image {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,255,170,0.1), rgba(0,195,255,0.1));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-placeholder::before {
  content: "Project Preview";
  color: rgba(255,255,255,0.3);
  font-size: 1rem;
  letter-spacing: 1px;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  background: var(--primary);
  color: #000;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(20px);
  transition: all 0.3s;
}

.project-card:hover .project-link {
  transform: translateY(0);
}

.project-content {
  padding: 1.5rem;
}

.project-tag {
  font-size: 0.8rem;
  color: var(--primary);
  background: rgba(0,255,170,0.1);
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 0.8rem;
}

.project-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--light);
}

.project-description {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.tilt-effect {
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

.tech-marquee {
  margin-top: 3rem;
  display: flex;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.tech-marquee::before,
.tech-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 200px;
  height: 100%;
  z-index: 2;
}

.tech-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--darker), transparent);
}

.tech-marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--darker), transparent);
}


.marquee-content {
  display: flex;
  animation: marquee 40s linear infinite;
  padding: 1rem 0;
  white-space: nowrap;
}






.marquee-content-reversed {
  display: flex;
  animation: marquee-reversed 40s linear infinite;
  padding: 1rem 0;
  white-space: nowrap;
}

.tech-marquee-reversed {
  margin-top: 3rem;
  display: flex;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.tech-marquee-reversed::before,
.tech-marquee-reversed::after {
  content: '';
  position: absolute;
  top: 0;
  width: 200px;
  height: 100%;
  z-index: 2;
}

.tech-marquee-reversed::before {
  left: 0;
  background: linear-gradient(90deg, var(--darker), transparent);
}

.tech-marquee-reversed::after {
  right: 0;
  background: linear-gradient(-90deg, var(--darker), transparent);
}

.marquee-content-reversed span {
  margin: 0 1rem;
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
}

.marquee-content-reversed span:not(:nth-child(even)) {
  color: var(--primary);
  text-shadow: 0 0 5px var(--secondary), 0 0 10px var(--secondary), 0 0 20px var(--secondary)
}


@keyframes marquee-reversed {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}







.marquee-content span {
  margin: 0 1rem;
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
}

.marquee-content span:not(:nth-child(even)) {
  color: var(--primary);
  text-shadow: 0 0 5px var(--secondary), 0 0 10px var(--secondary), 0 0 20px var(--secondary)
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ===== Skills Section ===== */
.skills-tabs {
  gap: 22.5px;
  display: flex;
  justify-content: center;
  position: relative;
  margin-bottom: 2.5rem;
  border-radius: 50px;
  background: rgba(0,0,0,0.2);
  padding: 0.5rem;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  padding: 0.7rem 2rem;
  background: transparent;
  border: none;
  color: var(--light);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 50px;
  z-index: 1;
  transition: all 0.3s;
}

.tab-btn.active {
  color: #000;
}

.tab-indicator {
  position: absolute;
  height: 85%;
  top: 50%;
  transform: translateY(-50%);
  left: 0.25rem;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(.4,2,.6,1);
  z-index: 0;
}

.skills-content {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
}

.skills-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.skill-card {
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(.4,2,.6,1);
}

.skill-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: all 0.3s;
}

.skill-card:hover .skill-icon {
  transform: translateY(-8px) scale(1.1);
  color: var(--primary-dark);
}

.skill-name {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.skill-bar-container {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
  width: 0;
  transition: width 1.5s cubic-bezier(.4,2,.6,1);
}

.skill-level {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* ===== Contact Section ===== */
.contact-wrapper {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.contact-info-3d {
  flex: 1 1 340px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-form {
  flex: 1 1 400px;
  min-width: 320px;
  max-width: 460px;
  background: var(--glass-bg);
  border-radius: 12px;
  border: 1.5px solid var(--glass-border);
  box-shadow: 0 5px 15px rgba(0,255,170,0.08);
  padding: 2.5rem 2rem;
  position: relative;
}

.form-header {
  margin-bottom: 1.5rem;
}

.form-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-dot.online {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(39, 201, 63, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(39, 201, 63, 0);
  }
}

.form-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Base styles for contact section */
.contact {
  position: relative;
  background-color: #0a0a0a;
  color: #f2f2f2;
  min-height: 100vh;
  overflow: hidden;
  padding: 120px 0 80px;
}

/* Circuit Background */
.circuit-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
}

.circuit-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, #00ffaa, transparent);
  height: 1px;
}

.circuit-line:nth-child(1) {
  top: 20%;
  left: -10%;
  width: 120%;
  animation: circuit-pulse 8s infinite alternate;
}

.circuit-line:nth-child(2) {
  top: 65%;
  left: -5%;
  width: 110%;
  animation: circuit-pulse 12s infinite alternate-reverse;
}

.circuit-line:nth-child(3) {
  top: 85%;
  left: -15%;
  width: 130%;
  animation: circuit-pulse 15s infinite alternate;
}

.circuit-node {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ffaa;
  box-shadow: 0 0 8px #00ffaa;
}

.circuit-node:nth-child(4) {
  top: 20%;
  left: 70%;
  animation: node-pulse 4s infinite;
}

.circuit-node:nth-child(5) {
  top: 65%;
  left: 30%;
  animation: node-pulse 6s infinite 1s;
}

.circuit-node:nth-child(6) {
  top: 85%;
  left: 75%;
  animation: node-pulse 5s infinite 2s;
}

@keyframes circuit-pulse {
  0% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.3;
  }
}

@keyframes node-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.4;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

/* Glitch Title Effect */
.glitch-title {
  position: relative;
  display: inline-block;
  color: #fff;
}

.glitch-title::before,
.glitch-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glitch-title::before {
  color: #0ff;
  z-index: -1;
  animation: glitch-effect 3s infinite;
}

.glitch-title::after {
  color: #f0f;
  z-index: -2;
  animation: glitch-effect 2s infinite reverse;
}

@keyframes glitch-effect {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-3px, 3px);
  }
  40% {
    transform: translate(-3px, -3px);
  }
  60% {
    transform: translate(3px, 3px);
  }
  80% {
    transform: translate(3px, -3px);
  }
  100% {
    transform: translate(0);
  }
}

/* Enhanced Contact Layout */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}

/* 3D Contact Cards */
.contact-info-3d {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.contact-card-3d {
  grid-column: span 2;
  perspective: 1000px;
  height: 200px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  box-shadow: 0 5px 15px rgba(0, 255, 170, 0.2);
  border-radius: 12px;
  cursor: pointer;
}

.contact-card-3d:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--glass-bg);
  border-top: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
}

.card-front {
  color: white;
}

.card-back {
  transform: rotateY(180deg);
  background: var(--glass-bg);
}



.contact-icon-container {
  position: relative;
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.icon-orbit {
  position: relative;
  width: 100%;
  height: 100%;
  animation: spin 10s linear infinite;
}

.orbit-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px dashed var(--primary);
  border-radius: 50%;
}

.orbit-icon {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Social Links Grid */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12.5px;
  width: 100%;
}

.social-link-3d {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  text-decoration: none;
  transition: transform 0.3s, color 0.3s;
}

.social-link-3d:hover {
  transform: translateY(-5px);
  color: var(--primary);
}

.social-icon-container {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  border: 1px solid var(--primary);
}

.social-icon-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, Black 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s;
  pointer-events: none;
}

.social-link-3d:hover .social-icon-container::before {
  opacity: 1;
  transform: scale(1);
}

.social-link-3d i,
.social-link-3d .iconify {
  font-size: 20px;
  z-index: 1;
}

.social-label {
  font-size: 12px;
  opacity: 0.7;
}

/* Location Visualization */
.data-viz-card {
  height: 140px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 255, 170, 0.1);
  background: linear-gradient(145deg, #121212, #1a1a1a);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.location-viz {
  display: flex;
  align-items: center;
  width: 100%;
}

.location-pin {
  position: relative;
  margin-right: 20px;
}

.location-pin i {
  font-size: 32px;
  color: #ff3366;
}

.pin-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ff3366;
  opacity: 0;
  animation: pin-ripple 2.5s infinite;
}

@keyframes pin-ripple {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

.location-details {
  flex: 1;
}

.coordinate-data {
  font-size: 12px;
  opacity: 0.6;
  font-family: monospace;
  margin-left: 5px;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 5px;
  width: 60px;
  height: 60px;
  margin-top: 10px;
}

.grid-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
}

.grid-dot.active {
  background: #ff3366;
  box-shadow: 0 0 10px #ff3366;
}

.grid-dot.active::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid #ff3366;
  animation: grid-pulse 2s infinite;
}

@keyframes grid-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* Terminal Style Contact Cards */
.tech-contact-card {
  height: 140px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border-top: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
}

.terminal-window {
  width: 100%;
  height: 100%;
  background: var(--glass-bg);
  font-family: 'Courier New', monospace;
}

.terminal-header {
  height: 25px;
  background: #303030;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
}

.terminal-button:nth-child(1) {
  background: #ff5f56;
}

.terminal-button:nth-child(2) {
  background: #ffbd2e;
}

.terminal-button:nth-child(3) {
  background: #27c93f;
}

.terminal-title {
  margin-left: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.terminal-body {
  padding: 10px;
  height: calc(100% - 25px);
  display: flex;
  flex-direction: column;
}

.terminal-line {
  font-size: 14px;
  margin-bottom: 5px;
  color: #eee;
}

.typing-text {
  color: var(--primary);
  display: inline-block;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 2s steps(30, end) forwards;
  animation-delay: 0.5s;
}

.terminal-output {
  color: rgba(255, 255, 255, 0.6);
  opacity: 0;
  animation: fade-in 0.5s forwards;
  animation-delay: 2.5s;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--primary);
  margin-left: 1px;
  animation: blink 1s infinite;
}

@keyframes typing {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Enhanced Form */
.contact-form {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.form-header {
  margin-bottom: 30px;
}

.form-status {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.status-dot.online {
  background: var(--secondary);
  box-shadow: 0 0 10px var(--secondary);
  animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(39, 201, 63, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(39, 201, 63, 0);
  }
}

.form-title {
  font-size: 1.8rem;
  margin-bottom: 0;
}

.form-group {
  position: relative;
  margin-bottom: 25px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  transition: all 0.3s;
}

.form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 1px var(--primary);
  outline: none;
}

.form-label {
  position: absolute;
  top: 8px;
  left: 15px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  transition: all 0.3s;
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  top: -12px;
  left: 10px;
  font-size: 14px;
  background: linear-gradient(90deg, var(--secondary), #00c3ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 5px;
}

.form-validation-icon {
  position: absolute;
  right: 15px;
  top: 15px;
  display: none;
}

.form-control:valid ~ .form-validation-icon .fa-check-circle {
  display: block;
  color: var(--primary);
}

.form-control:invalid:not(:placeholder-shown) ~ .form-validation-icon .fa-times-circle {
  display: block;
  color: var(--primary);
}

.field-hint {
  position: absolute;
  left: 10px;
  bottom: -20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0;
  transition: opacity 0.3s;
}

.form-control:focus ~ .field-hint {
  opacity: 1;
}



.message-group {
  position: relative;
}



/* Cyberpunk Button */
.btn-cyberpunk {
  position: relative;
  padding: 12px 25px;
  background: linear-gradient(90deg, #0ef, #0088ff);
  border: none;
  border-radius: 4px;
  color: #000;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 5px 15px var(--secondary);
}

.btn-cyberpunk:hover {
  box-shadow: 0 7px 20px var(--secondary);
  transform: translateY(-2px);
}

.btn-cyberpunk:active {
  transform: translateY(0);
  box-shadow: 0 2px;
}

@media (max-width: 1200px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-3d {
    display: none;
  }
  
  .contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .contact-info-3d,
  .contact-form {
    min-width: 0;
    max-width: 100%;
  }
}
@media (max-width: 768px) {

  .nav-close {
    display: block;
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    font-size: 2.3rem;
    color: var(--primary);
    background: rgba(10,10,18,0.92);
    border: none;
    border-radius: 50%;
    z-index: 999;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5) rotate(-180deg);
    box-shadow: 0 2px 18px 0 rgba(0,255,170,0.18), 0 1.5px 8px 0 rgba(0,0,0,0.18);
    outline: none;
    transition:
      opacity 0.4s cubic-bezier(.4,2,.6,1),
      transform 0.5s cubic-bezier(.4,2,.6,1),
      box-shadow 0.3s,
      background 0.3s;
    /* Add a neon glow effect */
    text-shadow: 0 0 8px var(--primary), 0 0 16px var(--primary-dark);
  }

  .nav-close.show {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1.1) rotate(0deg);
    animation: navClosePopIn 0.5s cubic-bezier(.4,2,.6,1);
  }

  .nav-close:active {
    background: rgba(0,255,170,0.18);
    color: var(--primary-dark);
    transform: scale(0.95) rotate(10deg);
    box-shadow: 0 0 24px 4px var(--primary-dark);
  }

  .nav-close:hover {
    background: rgba(0,255,170,0.12);
    color: #fff;
    box-shadow: 0 0 24px 4px var(--primary), 0 0 40px 8px var(--primary-dark);
    transform: scale(1.18) rotate(-8deg);
    transition:
      background 0.2s,
      color 0.2s,
      box-shadow 0.3s,
      transform 0.3s;
  }

  @keyframes navClosePopIn {
    0% {
      opacity: 0;
      transform: scale(0.5) rotate(-180deg);
    }
    60% {
      opacity: 1;
      transform: scale(1.2) rotate(10deg);
    }
    100% {
      opacity: 1;
      transform: scale(1.1) rotate(0deg);
    }
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80vw;
    max-width: 340px;
    height: 100vh;
    background: rgba(10, 10, 18, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.5s cubic-bezier(.4,2,.6,1);
    gap: 2rem;
    z-index: 200;
    backdrop-filter: blur(10px);
    box-shadow: -8px 0 32px 0 rgba(0,255,170,0.08), -1.5px 0 8px 0 rgba(0,0,0,0.18);
    border-left: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    border-radius: 10px;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: block;
    z-index: 202;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .nav-links.active ~ .hamburger,
  .hamburger.active {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .section-title {
    font-size: 2rem;
  }

  .projects-grid,
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .footer-content {
    flex-direction: column;
  }

  .contact-wrapper {
    flex-direction: column;
    gap: 2rem;
  }
  .contact-info-3d {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    align-items: stretch;
  }
  .tech-contact-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  html[dir="rtl"] .nav-links {
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
  }

  html[dir="rtl"] .hero-stats {
    justify-content: center !important;
  }
}


@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  .loader-text {
    font-size: 1.8rem;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .project-filter,
  .skills-tabs {
    padding-bottom: 1rem;
  }
  
  .filter-btn,
  .tab-btn {
    flex-shrink: 0;
  }
  
  .footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }


  .tech-contact-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    overflow-x: auto;
  }


  .loader-binary {
    font-size: 0.85rem;
    letter-spacing: 1px;
    word-break: break-all;
    white-space: pre-wrap;
    text-align: center;
    padding: 0 0.5rem;
    max-width: 100vw;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .project-card,
  .skill-card {
    padding: 1rem;
  }
  
  .project-title,
  .skill-name {
    font-size: 1.2rem;
  }
  
  .project-description,
  .skill-level {
    font-size: 0.8rem;
  }
}


/* ===== Footer Styles ===== */

.footer {
  background: rgba(10, 10, 18, 0.97);
  border-radius: 18px 18px 0 0;
  border-top: 2px solid var(--primary);
  box-shadow: 0 -8px 32px 0 rgba(0,255,170,0.08), 0 -1.5px 8px 0 rgba(0,0,0,0.18);
  margin-top: 2.5rem;
  padding: 2.5rem 0 1.2rem 0;
  position: relative;
  z-index: 2;
}

.footer-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 12px var(--primary-dark), 0 0 24px var(--primary);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.footer-tagline {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  max-width: 350px;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 1.2rem;
}

.footer-links .social-link {
  color: var(--primary);
  font-size: 1.5rem;
  background: rgba(0,255,170,0.08);
  border-radius: 50%;
  padding: 0.5rem;
  transition: 
    background 0.3s,
    color 0.3s,
    box-shadow 0.3s;
  box-shadow: 0 0 8px rgba(0,255,170,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-links .social-link:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 24px 4px var(--primary), 0 0 40px 8px var(--primary-dark);
  transform: scale(1.12);
}

.footer-bottom {
  border-top: 1px solid rgba(0,255,170,0.12);
  margin-top: 1.5rem;
  padding-top: 1rem;
  text-align: center;
}

.footer-copyright {
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.footer .gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: bold;
}

.footer .pulse {
  color: var(--secondary);
  animation: footerPulse 1.2s infinite alternate;
}

@keyframes footerPulse {
  0% { text-shadow: 0 0 6px var(--secondary); }
  100% { text-shadow: 0 0 18px var(--secondary), 0 0 32px var(--primary-dark); }
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
  }
  .footer-logo {
    margin-bottom: 0.5rem;
  }
  .footer-links {
    margin-bottom: 0.5rem;
  }
}

/* RTL Marquee Fix */
@keyframes marquee-rtl {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes marquee-rtl-reversed {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0);
  }
}

html[dir="rtl"] .tech-marquee .marquee-content {
  animation-name: marquee-rtl;
  animation-duration: 30s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: normal;
  flex-direction: row-reverse;
}

html[dir="rtl"] .tech-marquee-reversed .marquee-content-reversed {
  animation-name: marquee-rtl-reversed;
  animation-duration: 30s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: normal;
  flex-direction: row-reverse;
}

/* RTL Typing Effect Fix */
html[dir="rtl"] .typing {
  direction: rtl;
  text-align: left;
  border-right: none;
  border-left: 3px solid var(--primary);
}

html[dir="rtl"] .typing .cursor {
  border-right: none;
  border-left: 3px solid var(--primary);
}

html[dir="rtl"] .typing {
  animation: typing-rtl 3.5s steps(40, end) infinite, blink-caret-rtl 0.75s step-end infinite;
}

@keyframes typing-rtl {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret-rtl {
  from, to { border-left-color: transparent }
  50% { border-left-color: var(--primary); }
}

/* Shorter typing caret for RTL (Arabic) */
html[dir="rtl"] .typing {
  direction: rtl;
  text-align: left;
  border-right: none;
  border-left: none; /* Only the .cursor gets the caret */
}

html[dir="rtl"] .typing .cursor {
  display: inline-block;
  border-left: 3px solid var(--primary);
  border-right: none;
  height: 1em;
  vertical-align: middle;
  margin-right: 2px;
  animation: blink-caret-rtl 0.75s step-end infinite;
}

.section-title {
  text-transform: uppercase;
  color: var(--primary);
}


/* Mr Blue Image PlaceHolder */

.img-placeholder-mrblue {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,255,170,0.1), rgba(0,195,255,0.1));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-placeholder-mrblue::before {
  content: "Mr Blue";
  color: var(--primary);
  text-shadow: 0 0 25px var(--primary), 0 0 50px var(--primary), 0 0 100px var(--primary);
  font-size: 3rem;
  letter-spacing: 1px;
}


/* Taskflow Image PlaceHolder */

.img-placeholder-taskflow {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,255,170,0.1), rgba(0,195,255,0.1));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-placeholder-taskflow::before {
  content: "Taskflow";
  color: var(--primary);
  text-shadow: 0 0 25px var(--primary), 0 0 50px var(--primary), 0 0 100px var(--primary);
  font-size: 3rem;
  letter-spacing: 1px;
}


/* Programmer Hub Image PlaceHolder */

.img-placeholder-Programmerhub {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,255,170,0.1), rgba(0,195,255,0.1));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-placeholder-Programmerhub::before {
  content: "Programmer chathub";
  color: var(--primary);
  text-shadow: 0 0 25px var(--primary), 0 0 50px var(--primary), 0 0 100px var(--primary);
  font-size: 2rem;
  letter-spacing: 1px;
}


/* Rolly Ball Image PlaceHolder */

.img-placeholder-rollyball {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,255,170,0.1), rgba(0,195,255,0.1));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-placeholder-rollyball::before {
  content: "Rolly Ball";
  color: var(--primary);
  text-shadow: 0 0 25px var(--primary), 0 0 50px var(--primary), 0 0 100px var(--primary);
  font-size: 3rem;
  letter-spacing: 1px;
}


/* Hamza Play Image PlaceHolder */

.img-placeholder-hamzaplay {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,255,170,0.1), rgba(0,195,255,0.1));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-placeholder-hamzaplay::before {
  content: "Hamza play";
  color: var(--primary);
  text-shadow: 0 0 25px var(--primary), 0 0 50px var(--primary), 0 0 100px var(--primary);
  font-size: 3rem;
  letter-spacing: 1px;
}




/* Mr Blue Image PlaceHolder AR*/

.img-placeholder-mrblue-ar {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,255,170,0.1), rgba(0,195,255,0.1));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-placeholder-mrblue-ar::before {
  content: "السيد الأزرق";
  color: var(--primary);
  text-shadow: 0 0 25px var(--primary), 0 0 50px var(--primary), 0 0 100px var(--primary);
  font-size: 3rem;
  letter-spacing: 1px;
}


/* Taskflow Image PlaceHolder AR*/

.img-placeholder-taskflow-ar {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,255,170,0.1), rgba(0,195,255,0.1));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-placeholder-taskflow-ar::before {
  content: "مدير المهام";
  color: var(--primary);
  text-shadow: 0 0 25px var(--primary), 0 0 50px var(--primary), 0 0 100px var(--primary);
  font-size: 3rem;
  letter-spacing: 1px;
}


/* Programmer Hub Image PlaceHolder AR*/

.img-placeholder-Programmerhub-ar {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,255,170,0.1), rgba(0,195,255,0.1));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-placeholder-Programmerhub-ar::before {
  content: "منتدى الدردشة (تجريبي)";
  color: var(--primary);
  text-shadow: 0 0 25px var(--primary), 0 0 50px var(--primary), 0 0 100px var(--primary);
  font-size: 2.15rem;
  letter-spacing: 1px;
}


/* Rolly Ball Image PlaceHolder AR*/

.img-placeholder-rollyball-ar {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,255,170,0.1), rgba(0,195,255,0.1));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-placeholder-rollyball-ar::before {
  content: "لعبة الكرة الدوارة V1";
  color: var(--primary);
  text-shadow: 0 0 25px var(--primary), 0 0 50px var(--primary), 0 0 100px var(--primary);
  font-size: 2.3rem;
  letter-spacing: 1px;
}


/* Hamza play Image PlaceHolder AR*/

.img-placeholder-hamzaplay-ar {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,255,170,0.1), rgba(0,195,255,0.1));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-placeholder-hamzaplay-ar::before {
  content: "حمزة بلاي";
  color: var(--primary);
  text-shadow: 0 0 25px var(--primary), 0 0 50px var(--primary), 0 0 100px var(--primary);
  font-size: 3rem;
  letter-spacing: 1px;
}
