/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  /* Color Palette */
  --bg-primary: #070a13;
  --bg-secondary: #0d1222;
  --bg-tertiary: #131a30;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Accents (Gradients & Glows) */
  --primary: #6366f1; /* Indigo */
  --primary-rgb: 99, 102, 241;
  --secondary: #a855f7; /* Purple */
  --secondary-rgb: 168, 85, 247;
  --accent: #06b6d4; /* Cyan */
  --accent-rgb: 6, 182, 212;
  --error: #ef4444;
  --success: #10b981;

  /* Gradients */
  --gradient-hero: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--secondary) 50%,
    var(--accent) 100%
  );
  --gradient-text: linear-gradient(
    90deg,
    #38bdf8 0%,
    #a855f7 50%,
    #818cf8 100%
  );
  --gradient-card-border: linear-gradient(
    180deg,
    rgba(99, 102, 241, 0.15),
    rgba(6, 182, 212, 0.05)
  );
  --gradient-card-hover: linear-gradient(
    180deg,
    rgba(168, 85, 247, 0.25),
    rgba(6, 182, 212, 0.1)
  );

  /* Shadows & Glows */
  --glow-primary: 0 0 20px rgba(99, 102, 241, 0.25);
  --glow-secondary: 0 0 20px rgba(168, 85, 247, 0.25);
  --glow-accent: 0 0 20px rgba(6, 182, 212, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);

  /* Glassmorphism */
  --glass-bg: rgba(13, 18, 34, 0.7);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-blur: blur(16px);

  /* Transitions & Border Radii */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Widths */
  --container-max-width: 1200px;
}

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

::selection {
    background: transparent;
}

::-moz-selection {
    background: transparent;
}

textarea::selection, input::selection {
    background: transparent;
}

body {
  font-family:
    "Cairo",
    system-ui,
    -apple-system,
    sans-serif;
    
        user-select: none;

  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

input,
textarea,
select,
button {
  font-family: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Gradients & Utilities */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip:text;
  -webkit-text-fill-color: transparent;
}

.highlight-text {
  color: var(--accent);
}

.badge-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.section-badge {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  position: relative;
  padding-right: 15px;
}
.section-badge::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-header-center {
  text-align: center;
  margin-bottom: 60px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary {
  background-color: var(--primary);
  color: white;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--glow-primary);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background-color: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
}

.btn-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--glow-primary);
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4);
}

.btn-gradient i {
  transition: var(--transition-fast);
}
.btn-gradient:hover i {
  transform: translateX(-4px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: var(--glass-blur);
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

/* ==========================================================================
   BACKGROUND ANIMATED BLOBS
   ========================================================================== */
.bg-blob {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: var(--radius-full);
  filter: blur(100px);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
  animation: blobFloat 12s infinite alternate ease-in-out;
}

.blob-1 {
  background: var(--primary);
  top: 10%;
  left: -100px;
}

.blob-2 {
  background: var(--accent);
  top: 40%;
  right: -100px;
  animation-delay: 6s;
}

@keyframes blobFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(50px, 60px) scale(1.15);
  }
}

.bg-grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  mask-image: radial-gradient(circle, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle, black, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  backdrop-filter: var(--glass-blur);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: var(--glow-accent);
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 10, 19, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-normal);
}

.navbar-header.scrolled {
  background: rgba(7, 10, 19, 0.85);
  padding: 8px 0;
  box-shadow: var(--shadow-sm);
}

.navbar-container {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-normal);
}

.navbar-header.scrolled .navbar-container {
  height: 65px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 900;
  font-family: "Fira Code", sans-serif;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.logo-brackets {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-nav {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  cursor: pointer;
}

.menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: 180px;
  padding-bottom: 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-primary);
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-content {
  text-align: right;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 580px;
}

.hero-typed-wrapper {
  margin-bottom: 35px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

.typed-text {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.typed-cursor {
  color: var(--accent);
  animation: blink 0.7s infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Code Mockup Frame */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.code-editor-mockup {
  width: 100%;
  max-width: 460px;
  background: rgba(13, 18, 34, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow:
    var(--shadow-md),
    0 30px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-10deg) rotateX(10deg);
  transition: var(--transition-normal);
}

.code-editor-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.editor-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.editor-dots {
  display: flex;
  gap: 6px;
  margin-left: 15px; /* RTL spacing */
}

.editor-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
}

.dot.red {
  background: #ff5f56;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #27c93f;
}

.editor-tab {
  background: var(--bg-primary);
  font-family: "Fira Code", monospace;
  font-size: 0.75rem;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.editor-body {
  padding: 24px;
  font-family: "Fira Code", monospace;
  font-size: 0.85rem;
  direction: ltr;
  text-align: left;
  overflow-x: auto;
}

.code-keyword {
  color: #f43f5e;
}
.code-class {
  color: #f59e0b;
}
.code-string {
  color: #10b981;
}
.code-comment {
  color: #64748b;
  font-style: italic;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: rgba(13, 18, 34, 0.8);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow-md);
  z-index: 20;
  max-width: 220px;
  animation: floatBadge 4s ease-in-out infinite alternate;
}

.floating-badge i {
  font-size: 1.5rem;
}

.floating-badge h4 {
  font-size: 0.85rem;
  font-weight: 700;
}

.floating-badge p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.badge-top {
  top: -50px;
  right: -20px;
}

.badge-bottom {
  bottom: -90px;
  left: -20px;
  animation-delay: 2s;
}

@keyframes floatBadge {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}

/* ==========================================================================
   STATS BAR
   ========================================================================== */
.stats-section {
  position: relative;
  z-index: 10;
  margin-top: -40px;
  padding-bottom: 60px;
}

.stats-container {
  background: rgba(13, 18, 34, 0.5);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.stat-card {
  position: relative;
}

.stat-card:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background-color: var(--glass-border);
}

.stat-icon {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 6px;
  background: linear-gradient(
    180deg,
    var(--text-primary),
    var(--text-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
  padding: 100px 0;
  position: relative;
}

.about-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.visual-stack {
  position: relative;
  width: 320px;
  height: 320px;
}

.visual-box {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
}

.main-box {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.15) 0%,
    rgba(168, 85, 247, 0.05) 100%
  );
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: var(--shadow-md);
}

.main-icon {
  font-size: 6rem;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.box-tag {
  position: absolute;
  bottom: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.border-box {
  border: 2px dashed rgba(6, 182, 212, 0.3);
  top: -20px;
  right: -20px;
  z-index: 1;
  animation: rotateDashed 40s linear infinite;
}

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

.visual-badge-overlay {
  position: absolute;
  bottom: -60px;
  right: -20px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.overlay-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.1;
}

.overlay-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 700;
  margin-top: 4px;
}

.about-content {
  text-align: right;
}

.about-description {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  font-size: 1.3rem;
  color: var(--accent);
  margin-top: 4px;
}

.feature-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
  padding: 100px 0;
  background-color: var(--bg-secondary);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  position: relative;
  background: rgba(7, 10, 19, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 45px 30px;
  overflow: hidden;
  transition: var(--transition-normal);
  text-align: center;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.08) 0%,
    transparent 70%
  );
  border-radius: var(--radius-full);
  pointer-events: none;
  transition: var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow:
    var(--shadow-md),
    0 10px 30px rgba(6, 182, 212, 0.05);
}

.service-card:hover .service-card-glow {
  transform: scale(1.5);
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.15) 0%,
    transparent 70%
  );
}

.service-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.08);
  border: 2px solid rgba(6, 182, 212, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
  transition: var(--transition-normal);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.05);
}

.service-card:hover .service-icon {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  box-shadow: var(--glow-accent);
  transform: scale(1.05);
}

.service-title {
  font-size: 1.35rem;
  font-weight: 750;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.service-text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 0;
  line-height: 1.65;
}

/* ==========================================================================
   TECH STACK SECTION
   ========================================================================== */
.tech-section {
  padding: 100px 0;
  position: relative;
}

.tech-tabs-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.tech-tabs {
  display: flex;
  justify-content: center;
  background: var(--bg-secondary);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  margin-bottom: 45px;
  gap: 4px;
}

.tech-tab-btn {
  flex: 1;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
  color: var(--text-secondary);
}

.tech-tab-btn.active,
.tech-tab-btn:hover {
  background: var(--bg-tertiary);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.tech-tab-content {
  display: none;
}

.tech-tab-content.active {
  display: block;
  animation: tabReveal 0.5s ease;
}

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

.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.tech-item {
  background: rgba(13, 18, 34, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transition: var(--transition-normal);
}

.tech-item:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(13, 18, 34, 0.8);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.tech-item i {
  font-size: 2.8rem;
  transition: var(--transition-normal);
}

.tech-item span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.tech-item:hover span {
  color: var(--text-primary);
}

/* Technology Colors on Hover */
.tech-item:hover i.tech-html {
  color: #e34c26;
  filter: drop-shadow(0 0 8px rgba(227, 76, 38, 0.3));
}
.tech-item:hover i.tech-css {
  color: #264de4;
  filter: drop-shadow(0 0 8px rgba(38, 77, 228, 0.3));
}
.tech-item:hover i.tech-js {
  color: #f7df1e;
  filter: drop-shadow(0 0 8px rgba(247, 223, 30, 0.3));
}
.tech-item:hover i.tech-react {
  color: #61dafb;
  filter: drop-shadow(0 0 8px rgba(97, 218, 251, 0.3));
}
.tech-item:hover i.tech-bootstrap {
  color: #7952b3;
  filter: drop-shadow(0 0 8px rgba(121, 82, 179, 0.3));
}
.tech-item:hover i.tech-tailwind {
  color: #06b6d4;
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.3));
}
.tech-item:hover i.tech-next {
  color: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.tech-item:hover i.tech-node {
  color: #339933;
  filter: drop-shadow(0 0 8px rgba(51, 153, 51, 0.3));
}
.tech-item:hover i.tech-express {
  color: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}
.tech-item:hover i.tech-python {
  color: #3776ab;
  filter: drop-shadow(0 0 8px rgba(55, 118, 171, 0.3));
}
.tech-item:hover i.tech-php {
  color: #777bb4;
  filter: drop-shadow(0 0 8px rgba(119, 123, 180, 0.3));
}
.tech-item:hover i.tech-laravel {
  color: #ff2d20;
  filter: drop-shadow(0 0 8px rgba(255, 45, 32, 0.35));
}

.tech-item:hover i.tech-mongo {
  color: #47a248;
  filter: drop-shadow(0 0 8px rgba(71, 162, 72, 0.3));
}
.tech-item:hover i.tech-sql {
  color: #336791;
  filter: drop-shadow(0 0 8px rgba(51, 103, 145, 0.3));
}
.tech-item:hover i.tech-mysql {
  color: #00758f;
  filter: drop-shadow(0 0 8px rgba(0, 117, 143, 0.3));
}
.tech-item:hover i.tech-redis {
  color: #d82c20;
  filter: drop-shadow(0 0 8px rgba(216, 44, 32, 0.3));
}

.tech-item:hover i.tech-git {
  color: #f05032;
  filter: drop-shadow(0 0 8px rgba(240, 80, 50, 0.3));
}
.tech-item:hover i.tech-github {
  color: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}
.tech-item:hover i.tech-docker {
  color: #2496ed;
  filter: drop-shadow(0 0 8px rgba(36, 150, 237, 0.3));
}
.tech-item:hover i.tech-terminal {
  color: #4af626;
  filter: drop-shadow(0 0 8px rgba(74, 246, 38, 0.3));
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */
.portfolio-section {
  padding: 100px 0;
  background-color: var(--bg-secondary);
  position: relative;
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 45px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 8px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  color: var(--text-secondary);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.portfolio-card {
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
}

.portfolio-card.hide {
  display: none;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow:
    var(--shadow-md),
    0 15px 40px rgba(99, 102, 241, 0.08);
}

.portfolio-img-container {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.project-overlay-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(7, 10, 19, 0.9) 100%
  );
  z-index: 2;
}

/* Stunning Custom CSS Project Graphics */
.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.portfolio-card:hover .project-placeholder {
  transform: scale(1.05);
}

.project-icon {
  font-size: 4rem;
  color: white;
  z-index: 5;
  opacity: 0.85;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
}

.p-web {
  background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
}
.p-training {
  background: linear-gradient(135deg, #062f4f 0%, #001f3f 100%);
}
.p-api {
  background: linear-gradient(135deg, #0c2312 0%, #05160b 100%);
}
.p-dashboard {
  background: linear-gradient(135deg, #1c1917 0%, #292524 100%);
}
.p-pharmacy {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
}

.floating-shapes span {
  position: absolute;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(2px);
  transition: var(--transition-normal);
}

.shape-sq {
  width: 100px;
  height: 100px;
  top: 20px;
  left: 30px;
  transform: rotate(45deg);
  border-radius: var(--radius-md);
}

.shape-ci {
  width: 140px;
  height: 140px;
  bottom: -40px;
  right: 20px;
  border-radius: var(--radius-full);
}

.portfolio-card:hover .shape-sq {
  transform: rotate(85deg) translate(-10px, -10px);
  background: rgba(255, 255, 255, 0.06);
}

.portfolio-card:hover .shape-ci {
  transform: scale(1.1) translate(10px, 10px);
  background: rgba(255, 255, 255, 0.06);
}

.portfolio-info {
  padding: 30px;
  text-align: right;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 12px;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 750;
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-techs span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.project-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-link i {
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.project-link:hover {
  color: var(--accent);
}

.project-link:hover i {
  transform: translateX(-4px);
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section {
  padding: 100px 0;
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: rgba(13, 18, 34, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  text-align: right;
}

.quote-icon {
  font-size: 2.2rem;
  color: rgba(99, 102, 241, 0.15);
  position: absolute;
  top: 30px;
  left: 40px;
}

.testimonial-text {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 30px;
  position: relative;
  z-index: 5;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.3rem;
}

.testimonial-user h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.testimonial-user p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  padding: 100px 0;
  position: relative;
}

.contact-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: flex-start;
}

.contact-info {
  text-align: right;
}

.contact-text-p {
  color: var(--text-secondary);
  margin-bottom: 35px;
  font-size: 1.05rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: right;
}

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: var(--transition-normal);
}

.fb-color {
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.2);
}
.email-color {
  color: var(--accent);
  border-color: rgba(6, 182, 212, 0.2);
}
.hours-color {
  color: var(--secondary);
  border-color: rgba(168, 85, 247, 0.2);
}

.contact-method-item:hover .icon-box {
  transform: scale(1.08);
}

.contact-method-item h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-method-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.social-links-circle {
  display: flex;
  gap: 12px;
}

.social-links-circle a {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.social-links-circle a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
  transform: translateY(-3px);
}

/* Glass Form styling */
.glass-form-container {
  background: rgba(13, 18, 34, 0.4);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.form-title {
  font-size: 1.4rem;
  font-weight: 750;
  margin-bottom: 24px;
  text-align: right;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: right;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: var(--transition-fast);
}

.textarea-icon {
  top: 20px;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
  width: 100%;
  background: rgba(7, 10, 19, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px 42px 12px 16px; /* Right padding handles the icon */
  font-size: 0.9rem;
  transition: var(--transition-normal);
}

.input-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: left 12px center;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
  border-color: rgba(6, 182, 212, 0.5);
  background: rgba(7, 10, 19, 0.8);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper select:focus + .input-icon,
.input-wrapper textarea:focus + .input-icon {
  color: var(--accent);
}

.btn-submit {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-normal);
  box-shadow: var(--glow-primary);
  margin-top: 10px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(6, 182, 212, 0.3);
}

/* Feedback States */
.form-feedback {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 10;
  text-align: center;
  transition: var(--transition-normal);
}

.form-feedback.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.feedback-content {
  animation: scaleUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.feedback-icon {
  font-size: 3.5rem;
  color: var(--success);
  margin-bottom: 20px;
}

.feedback-content h4 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.feedback-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 0 0;
  position: relative;
  z-index: 10;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer-brand {
  text-align: right;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 320px;
}

.footer-links {
  text-align: right;
}

.footer-links h4,
.footer-newsletter h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.footer-links h4::after,
.footer-newsletter h4::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 25px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
  padding-right: 4px;
}

.footer-newsletter {
  text-align: right;
}

.footer-newsletter p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.btn-fb-follow {
  background: #1877f2;
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.btn-fb-follow:hover {
  background: #166fe5;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(24, 119, 242, 0.4);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding: 24px 0;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.animate-on-scroll {
  opacity: 0;
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.slide-right {
  transform: translateX(40px);
}

.animate-on-scroll.slide-left {
  transform: translateX(-40px);
}

.animate-on-scroll.fade-in {
  transform: translateY(30px);
}

.animate-on-scroll.revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* ==========================================================================
   TEAM SECTION
   ========================================================================== */
.team-section {
  padding: 100px 0;
  position: relative;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-card {
  background: rgba(13, 18, 34, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition-normal);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  overflow: hidden;
  position: relative;
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow:
    var(--shadow-md),
    0 10px 30px rgba(6, 182, 212, 0.05);
}

.team-avatar-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 24px;
}

.team-avatar {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1) 0%,
    rgba(6, 182, 212, 0.1) 100%
  );
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.avatar-placeholder-icon {
  font-size: 2.5rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.team-card:hover .team-avatar {
  border-color: var(--accent);
  box-shadow: var(--glow-accent);
  transform: scale(1.05);
}

.team-social {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 10, 19, 0.9);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: var(--transition-normal);
  z-index: 10;
}

.team-avatar-wrapper:hover .team-social {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.team-social a {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.team-social a:hover {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  box-shadow: var(--glow-accent);
}

.team-info {
  text-align: center;
}

.team-name {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.team-role {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 16px;
  background: rgba(6, 182, 212, 0.05);
  padding: 2px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(6, 182, 212, 0.1);
}

.team-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-container {
    gap: 30px;
  }
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 30px;
  }
  .stat-card:nth-child(2)::after {
    display: none;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  /* Navbar Hamburger Menu */
  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--glass-border);
    padding: 100px 40px;
    z-index: 1000;
    transition: var(--transition-normal);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }

  .nav-link {
    font-size: 1.1rem;
  }

  .btn-nav {
    display: none; /* Hide top nav button on mobile */
  }

  /* Hamburger Animation to 'X' */
  .menu-toggle.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Layouts */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
    gap: 50px;
  }

  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .code-editor-mockup {
    transform: none;
  }

  .code-editor-mockup:hover {
    transform: none;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual {
    order: 2;
  }

  .about-content {
    order: 1;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .portfolio-img-container {
    height: 180px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom-container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.9rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions a {
    width: 100%;
    justify-content: center;
  }
  .stats-container {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
  .stat-card::after {
    display: none !important;
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech-tabs {
    flex-direction: column;
  }
  .tech-tab-btn {
    padding: 10px;
  }
  .glass-form-container {
    padding: 24px;
  }
}

/* ==========================================================================
   CTO / FOUNDER CARD — BARA BARAKAT
   ========================================================================== */

/* رفع البطاقة الرئيسية أعلى من باقي الأعضاء */
.team-card--cto {
  position: relative;
  margin-top: -28px;
  z-index: 10;
  border-color: rgba(251, 191, 36, 0.45) !important;
  background: linear-gradient(
    160deg,
    rgba(30, 20, 5, 0.9) 0%,
    rgba(20, 14, 35, 0.92) 40%,
    rgba(10, 10, 30, 0.92) 100%
  ) !important;
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.3),
    0 20px 60px rgba(251, 191, 36, 0.12),
    0 8px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(251, 191, 36, 0.1);
  padding-top: 56px;
}

/* تأثير التوهج الذهبي عند hover */
.team-card--cto:hover {
  transform: translateY(-10px) !important;
  border-color: rgba(251, 191, 36, 0.7) !important;
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.5),
    0 30px 80px rgba(251, 191, 36, 0.18),
    0 10px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(251, 191, 36, 0.2) !important;
}

/* الشريط الذهبي العلوي */
.team-card--cto::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    #f59e0b 20%,
    #fbbf24 50%,
    #f59e0b 80%,
    transparent
  );
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* الشعاع الذهبي في الخلفية */
.team-card--cto::after {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(
    circle,
    rgba(251, 191, 36, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* شارة التاج (CEO & CTO) */
.cto-crown-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);
  color: #1a0e00;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 6px 20px 6px 14px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.35);
  z-index: 20;
}

.cto-crown-badge i {
  font-size: 0.8rem;
  animation: crownPulse 2.5s ease-in-out infinite;
}

@keyframes crownPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2) rotate(-5deg); }
}

/* صورة الأفاتار الكبيرة للـ CTO */
.team-avatar--cto {
  border-color: rgba(251, 191, 36, 0.5) !important;
  box-shadow:
    0 0 20px rgba(251, 191, 36, 0.2),
    0 0 0 4px rgba(251, 191, 36, 0.08) !important;
}

.team-card--cto:hover .team-avatar--cto {
  border-color: #fbbf24 !important;
  box-shadow:
    0 0 30px rgba(251, 191, 36, 0.35),
    0 0 0 6px rgba(251, 191, 36, 0.1) !important;
}

/* اسم الـ CTO بلون ذهبي */
.team-name--cto {
  font-size: 1.4rem !important;
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #fde68a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* دور الـ CTO بلون ذهبي */
.team-role--cto {
  color: #fbbf24 !important;
  background: rgba(251, 191, 36, 0.08) !important;
  border-color: rgba(251, 191, 36, 0.2) !important;
  font-size: 0.85rem !important;
}

/* زر البورتفوليو للـ CTO */
.btn-cto {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #1a0e00 !important;
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.3) !important;
  font-weight: 800 !important;
}

.btn-cto:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.45) !important;
  transform: translateY(-3px) !important;
}

/* تعديل التجاوب للموبايل */
@media (max-width: 768px) {
  .team-card--cto {
    margin-top: 0;
    order: -1;
  }
}

































.glass-form-container {
  position: relative;
}

/* تعطيل الفورم بالكامل */
.contact-form {
  pointer-events: none;
  opacity: 0.5;
  filter: blur(1px);
  user-select: none;
}

/* الطبقة العلوية */
.form-disabled-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  z-index: 10;
}

/* صندوق الرسالة */
.overlay-box {
  text-align: center;
  padding: 30px 25px;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

/* دائرة الاكس */
.overlay-icon {
  width: 85px;
  height: 85px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff3b3b, #c40000);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 20px rgba(255, 59, 59, 0.6),
    0 0 50px rgba(255, 0, 0, 0.25);
  animation: pulseGlow 2s infinite;
}

.overlay-icon i {
  color: white;
  font-size: 42px;
}

/* النصوص */
.overlay-box h4 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 10px;
}

.overlay-box p {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  line-height: 1.7;
}

/* حركة خفيفة */
@keyframes pulseGlow {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 15px rgba(255, 59, 59, 0.5),
      0 0 35px rgba(255, 0, 0, 0.2);
  }

  50% {
    transform: scale(1.05);
    box-shadow:
      0 0 30px rgba(255, 59, 59, 0.8),
      0 0 60px rgba(255, 0, 0, 0.35);
  }

  100% {
    transform: scale(1);
    box-shadow:
      0 0 15px rgba(255, 59, 59, 0.5),
      0 0 35px rgba(255, 0, 0, 0.2);
  }
}