/* Truly Unique Personal Brand Website - Breaking Convention */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@200;300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@100;200;300;400;500&display=swap');

:root {
  /* Non-traditional color palette - vibrant digital look */
  --primary: #00ffa3;
  --primary-dim: rgba(0, 255, 163, 0.2);
  --secondary: #32ffce;
  --accent: #ff00a0;
  --accent-dim: rgba(255, 0, 160, 0.2);
  --dark: #0d0221;
  --darker: #050010;
  
  /* Fix for mobile visibility issues */
  --mobile-bg: #0d0221;
  --light: #f0f0f0;
  --text: #ffffff;
  --text-dark: #0d0221;
  --surface: #141029;
  --surface-dark: #0b081a;
  --surface-light: #1c1638;
  
  /* Distinctive gradients */
  --gradient-cyber: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-glow: linear-gradient(90deg, var(--accent), #ff9e00);
  --gradient-dark: linear-gradient(to right, #0d0221, #1a0d41);
  
  /* Custom shadows */
  --glow-primary: 0 0 15px rgba(0, 255, 163, 0.5);
  --glow-accent: 0 0 15px rgba(255, 0, 160, 0.5);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
  
  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.075, 0.82, 0.165, 1);
  --transition-normal: all 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
  --transition-slow: all 0.8s cubic-bezier(0.075, 0.82, 0.165, 1);

  /* Grid and layout */
  --space-unit: 0.5rem;
  --space-xs: calc(var(--space-unit) * 2);
  --space-sm: calc(var(--space-unit) * 4);
  --space-md: calc(var(--space-unit) * 8);
  --space-lg: calc(var(--space-unit) * 12);
  --space-xl: calc(var(--space-unit) * 16);
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
}

/* Base reset and styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'JetBrains Mono', monospace;
  background-color: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

a:hover {
  color: var(--secondary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 5;
  width: 100%;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-light);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dim);
}

/* Enhanced background effects */
.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.02;
  z-index: 1;
  pointer-events: none;
}

/* Subtle grid effect */
.grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(217deg, rgba(0, 255, 163, 0.03), rgba(0,0,0,0) 70%),
    linear-gradient(127deg, rgba(255, 0, 160, 0.03), rgba(0,0,0,0) 70%),
    linear-gradient(336deg, rgba(50, 255, 206, 0.03), rgba(0,0,0,0) 70%);
  background-image: 
    linear-gradient(to right, rgba(0, 255, 163, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 255, 163, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 2;
  pointer-events: none;
}

/* Glowing accent circles with enhanced animation */
.accent-circle {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
}

.circle-1 {
  background: var(--primary);
  width: 700px;
  height: 700px;
  top: -200px;
  left: -200px;
  animation: float1 25s ease-in-out infinite;
}

.circle-2 {
  background: var(--accent);
  width: 800px;
  height: 800px;
  bottom: -250px;
  right: -250px;
  animation: float2 30s ease-in-out infinite;
}

.circle-3 {
  background: var(--secondary);
  width: 500px;
  height: 500px;
  top: 30%;
  right: 5%;
  animation: float3 28s ease-in-out infinite;
}

@keyframes float1 {
  0% {
    opacity: 0.18;
    transform: translateY(0) scale(1);
  }
  33% {
    opacity: 0.25;
    transform: translateY(50px) translateX(30px) scale(1.1);
  }
  66% {
    opacity: 0.2;
    transform: translateY(25px) translateX(-20px) scale(1.05);
  }
  100% {
    opacity: 0.18;
    transform: translateY(0) scale(1);
  }
}

@keyframes float2 {
  0% {
    opacity: 0.18;
    transform: translateY(0) scale(1);
  }
  33% {
    opacity: 0.22;
    transform: translateY(-40px) translateX(-20px) scale(1.08);
  }
  66% {
    opacity: 0.25;
    transform: translateY(-20px) translateX(30px) scale(1.05);
  }
  100% {
    opacity: 0.18;
    transform: translateY(0) scale(1);
  }
}

@keyframes float3 {
  0% {
    opacity: 0.15;
    transform: translateX(0) translateY(0) scale(1);
  }
  33% {
    opacity: 0.22;
    transform: translateX(-30px) translateY(20px) scale(1.1);
  }
  66% {
    opacity: 0.18;
    transform: translateX(20px) translateY(-15px) scale(1.05);
  }
  100% {
    opacity: 0.15;
    transform: translateX(0) translateY(0) scale(1);
  }
}

/* Subtle scan line effect */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 0, 0, 0.03) 50%
  );
  background-size: 100% 6px;
  z-index: 10;
  pointer-events: none;
  opacity: 0.08;
}

/* Modern gradient background */
.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 10% 50%,
    rgba(0, 255, 163, 0.1) 0%,
    transparent 60%
  ),
  radial-gradient(
    circle at 90% 20%,
    rgba(255, 0, 160, 0.1) 0%,
    transparent 50%
  ),
  radial-gradient(
    circle at 50% 80%,
    rgba(50, 255, 206, 0.08) 0%,
    transparent 70%
  );
  z-index: 1;
  pointer-events: none;
  transition: transform 0.5s ease-out;
}

/* Neon text effect */
.neon-text {
  text-shadow: 0 0 5px rgba(0, 255, 163, 0.8),
              0 0 10px rgba(0, 255, 163, 0.5),
              0 0 15px rgba(0, 255, 163, 0.3);
  color: var(--primary);
}

.neon-text-accent {
  text-shadow: 0 0 5px rgba(255, 0, 160, 0.8),
              0 0 10px rgba(255, 0, 160, 0.5),
              0 0 15px rgba(255, 0, 160, 0.3);
  color: var(--accent);
}

/* ===== HEADER ===== */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  transition: var(--transition-normal);
  padding: var(--space-xs) 0;
  background-color: rgba(13, 2, 33, 0.4);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 255, 163, 0.1);
  height: 70px; /* Increased height for better spacing */
  display: flex;
  align-items: center;
}

header.scrolled {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  height: 60px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 var(--space-sm);
}

.logo {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.7rem; /* Increased size */
  font-weight: 700;
  position: relative;
  display: inline-block;
  background-image: var(--gradient-cyber);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: lowercase;
  letter-spacing: -1px;
  margin-top: 0;
  margin-right: var(--space-md); /* Add right margin to create space */
}

.logo::before {
  content: "</>";
  position: absolute;
  top: -12px; /* Adjusted from -15px */
  right: -20px;
  font-size: 0.7rem; /* Reduced from 0.8rem */
  opacity: 0.7;
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.nav-links {
  display: flex;
  gap: var(--space-md); /* Restored to original spacing */
  margin-left: auto; /* Push to the right side */
}

.nav-links a {
  color: var(--text);
  font-weight: 400;
  position: relative;
  padding: var(--space-xs) 0;
  font-size: 0.9rem; /* Restored to original size */
  letter-spacing: 1px; /* Restored to original spacing */
  text-transform: uppercase;
}

.nav-links a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gradient-cyber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::before,
.nav-links a.active::before {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a.active {
  color: var(--primary);
}

.mobile-menu {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  position: relative;
}

.mobile-menu span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--primary);
  position: absolute;
  left: 0;
  transition: var(--transition-fast);
}

.mobile-menu span:nth-child(1) {
  top: 8px;
}

.mobile-menu span:nth-child(2) {
  top: 16px;
}

.mobile-menu span:nth-child(3) {
  top: 24px;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--space-md) + 70px); /* Adjusted for new header height */
  padding-bottom: var(--space-md);
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: relative;
}

.hero-content {
  max-width: 650px;
  position: relative;
  z-index: 5;
}

.code-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: var(--space-xs);
  display: inline-block;
  letter-spacing: 1px;
}

.code-tag::before {
  content: "<";
}

.code-tag::after {
  content: ">";
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1.1;
  margin-bottom: var(--space-md);
  font-weight: 700;
  position: relative;
  letter-spacing: -2px;
}

.hero-title .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 100%;
  height: 10px;
  background: var(--primary-dim);
  z-index: -1;
  border-radius: var(--radius-sm);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: -0.5px;
  min-height: 2.2rem; /* Ensure consistent height during typing */
}

.hero-cursor {
  display: inline-block;
  width: 2px;
  height: 1.5rem;
  background-color: var(--primary);
  margin-left: 4px;
  animation: cursorBlink 0.8s infinite;
  vertical-align: middle;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-description {
  font-size: 1rem;
  margin-bottom: var(--space-lg);
  max-width: 550px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  font-weight: 300;
  position: relative;
  padding-left: var(--space-md);
  border-left: 1px solid var(--primary);
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  align-items: center;
}

.terminal-container {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 45%;
  max-width: 600px;
  height: 350px;
  background-color: var(--surface-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 255, 163, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
              0 0 15px rgba(0, 255, 163, 0.3);
}

.terminal-header {
  background-color: var(--surface);
  padding: var(--space-xs);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-buttons {
  display: flex;
  gap: 6px;
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-button.red {
  background-color: #ff5f56;
}

.terminal-button.yellow {
  background-color: #ffbd2e;
}

.terminal-button.green {
  background-color: #27c93f;
}

.terminal-title {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.terminal-body {
  padding: var(--space-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  height: calc(100% - 40px);
  overflow-y: auto;
}

.terminal-line {
  margin-bottom: 8px;
  display: flex;
}

.terminal-prompt {
  color: var(--primary);
  margin-right: 10px;
  user-select: none;
}

.terminal-text {
  flex: 1;
}

.typing {
  border-right: 2px solid var(--primary);
  animation: typing 1s steps(40) infinite;
  white-space: nowrap;
  overflow: hidden;
}

@keyframes typing {
  0%, 100% { border-color: var(--primary); }
  50% { border-color: transparent; }
}

.comment {
  color: var(--secondary);
  opacity: 0.7;
}

.variable {
  color: var(--accent);
}

.string {
  color: #ff9e00;
}

.function {
  color: #00bcd4;
}

/* Unique button styles */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-align: center;
  transition: var(--transition-normal);
  cursor: pointer;
}

.btn-primary {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-pill);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--primary);
  z-index: -1;
  transition: var(--transition-normal);
}

.btn-primary:hover {
  color: var(--dark);
  box-shadow: 0 0 15px var(--primary), 0 0 30px rgba(0, 255, 163, 0.3);
  transform: translateY(-3px);
}

.btn-primary:hover::before {
  width: 100%;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 0 10px var(--primary);
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--accent);
  z-index: -1;
  transition: var(--transition-normal);
}

.btn-secondary:hover {
  color: var(--dark);
  box-shadow: 0 0 15px var(--accent), 0 0 30px rgba(255, 0, 160, 0.3);
  transform: translateY(-3px);
}

.btn-secondary:hover::before {
  width: 100%;
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 0 10px var(--accent);
  transition: transform 0.1s, box-shadow 0.1s;
}

/* ===== SECTION STYLES ===== */
section {
  padding: var(--space-lg) 0;
  position: relative;
}

section::before {
  content: attr(id);
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  font-size: 12rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.02);
  line-height: 1;
  z-index: 0;
  pointer-events: none;
  text-transform: uppercase;
  font-family: 'Unbounded', sans-serif;
}

.section-header {
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  /*margin-bottom: var(--space-sm);*/
  position: relative;
  display: inline-block;
  margin-top: 0;
}

.section-title .highlight {
  color: var(--primary);
}

.section-description {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ===== ABOUT SECTION ===== */
.about {
  background-color: var(--surface);
  position: relative;
  overflow: hidden;
}

.about .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.about-text {
  position: relative;
  z-index: 1;
}

.about-paragraph {
  margin-bottom: var(--space-md);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  position: relative;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.stat-card {
  background-color: var(--surface-dark);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: var(--transition-fast);
  border: 1px solid rgba(0, 255, 163, 0.1);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-dim);
  opacity: 0.3;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-xs);
  font-family: 'Unbounded', sans-serif;
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-with-avatar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.small-avatar-container {
  width: 60px;
  height: 60px;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid var(--primary);
  box-shadow: var(--glow-primary);
}

.small-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== SKILLS SECTION ===== */
.skills {
  background-color: var(--dark);
  position: relative;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

.skill-card {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 163, 0.1);
  transition: var(--transition-normal);
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--glow-primary);
  border-color: var(--primary);
}

.skill-card::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 4px;
  top: 0;
  left: 0;
  background: var(--gradient-cyber);
  opacity: 0;
  transition: var(--transition-normal);
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Unbounded', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-sm);
  position: relative;
}

.skill-icon::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 50px;
  background-color: var(--primary-dim);
  border-radius: var(--radius-sm);
  transform: rotate(45deg);
  z-index: -1;
  transition: var(--transition-normal);
}

.skill-card:hover .skill-icon::after {
  transform: rotate(225deg);
}

.skill-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text);
}

.skill-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-sm);
}

.skill-tag {
  font-size: 0.7rem;
  color: var(--primary);
  background-color: var(--primary-dim);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== PROJECTS SECTION ===== */
.projects {
  background-color: var(--surface);
  position: relative;
}

.projects-cta {
  margin-top: var(--space-xl);
  text-align: center;
  padding: var(--space-lg);
  background-color: var(--surface-dark);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 255, 163, 0.1);
  transition: var(--transition-normal);
}

.projects-cta:hover {
  box-shadow: var(--glow-primary);
  border-color: var(--primary);
}

.projects-cta p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
}

/* Case Study Styles */
.case-studies {
  margin-top: var(--space-xl);
}

.case-study-heading {
  font-size: 1.8rem;
  margin-bottom: var(--space-lg);
  color: var(--text);
  position: relative;
  display: inline-block;
}

.case-study-heading::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary);
}

.case-study-container {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-lg);
  background-color: var(--surface-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 255, 163, 0.1);
  transition: var(--transition-normal);
}

.case-study-container:hover {
  box-shadow: var(--glow-primary);
  border-color: var(--primary);
  transform: translateY(-5px);
}

.case-study-content {
  padding: var(--space-lg);
}

.case-study-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.case-study-header h4 {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0;
}

.case-study-badge {
  background-color: var(--primary-dim);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.case-study-sections {
  display: grid;
  gap: var(--space-md);
}

.case-study-section h5 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
  color: var(--text);
  position: relative;
  display: inline-block;
}

.case-study-section h5::before {
  content: '//';
  color: var(--primary);
  margin-right: 8px;
  font-family: 'JetBrains Mono', monospace;
  opacity: 0.7;
}

.case-study-section p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-size: 0.95rem;
}

.case-study-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-sm);
  list-style: none;
  padding: 0;
}

.case-study-tech li {
  background-color: var(--surface);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--primary);
  border: 1px solid rgba(0, 255, 163, 0.2);
}

.case-study-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.metric {
  background-color: var(--surface);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid rgba(0, 255, 163, 0.1);
}

.metric-value {
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 700;
  display: block;
  font-family: 'Unbounded', sans-serif;
}

.metric-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  display: block;
}

.case-study-image {
  overflow: hidden;
  position: relative;
  background-color: var(--surface-dark);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  height: 100%;
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Advanced Futuristic Scene Styling */
.secure-comms-scene {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 600px;
  background: linear-gradient(135deg, #0d1b3e 0%, #1a1a2e 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated Space Background */
.space-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.stars-container {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 90px 40px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 160px 120px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 230px 50px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 330px 180px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 380px 100px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 450px 250px, #fff, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 500px 500px;
  animation: twinkling 20s linear infinite;
  opacity: 0.5;
}

.planet {
  position: absolute;
  top: 10%;
  right: 10%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(45deg, #4f46e5, #32ffce);
  box-shadow: 0 0 20px rgba(50, 255, 206, 0.4), inset -20px -15px 40px rgba(0, 0, 0, 0.5);
  opacity: 0.7;
  transform: rotate(-10deg);
  z-index: 2;
}

.planet::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(30deg);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.nebula {
  position: absolute;
  top: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at 30% 40%, 
    rgba(255, 94, 120, 0.8), 
    rgba(255, 94, 120, 0.2) 40%, 
    rgba(79, 70, 229, 0.1) 60%, 
    transparent 70%);
  filter: blur(20px);
  opacity: 0.3;
  animation: nebula-float 30s ease-in-out infinite alternate;
  z-index: 1;
}

/* Advanced Security Network (replaced rocket) */
.security-network {
  position: absolute;
  bottom: 15%;
  left: 15%;
  width: 200px;
  height: 200px;
  z-index: 10;
}

.network-node {
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 11;
}

.node1 {
  top: 0;
  left: 80px;
}

.node2 {
  bottom: 0;
  left: 20px;
}

.node3 {
  bottom: 0;
  right: 20px;
}

.node-core {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #32ffce;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 15px rgba(50, 255, 206, 0.7);
  animation: core-pulse 2s ease-in-out infinite alternate;
}

.node-ring {
  position: absolute;
  border: 1px solid rgba(50, 255, 206, 0.5);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ring-pulse 3s infinite;
  opacity: 0.7;
}

.ring1 {
  width: 24px;
  height: 24px;
  animation-delay: 0s;
}

.ring2 {
  width: 32px;
  height: 32px;
  animation-delay: 0.5s;
}

.security-beam {
  position: absolute;
  height: 2px;
  background: linear-gradient(to right, rgba(50, 255, 206, 0.8), rgba(50, 255, 206, 0.2));
  z-index: 10;
  transform-origin: left center;
}

.beam1 {
  width: 115px;
  top: 20px;
  left: 95px;
  transform: rotate(35deg);
  animation: beam-pulse 2s infinite alternate;
}

.beam2 {
  width: 85px;
  bottom: 20px;
  left: 48px;
  transform: rotate(0deg);
  animation: beam-pulse 2s infinite alternate 0.7s;
}

.beam3 {
  width: 115px;
  top: 20px;
  left: 95px;
  transform: rotate(-35deg);
  animation: beam-pulse 2s infinite alternate 1.4s;
}

/* Satellite and Data Elements */
.platform-container {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.satellite {
  position: absolute;
  width: 60px;
  height: 20px;
  z-index: 5;
}

.satellite-1 {
  top: 30%;
  right: 20%;
  animation: satellite-orbit 20s linear infinite;
}

.satellite-2 {
  top: 60%;
  left: 10%;
  transform: rotate(180deg);
  animation: satellite-orbit 25s linear infinite reverse;
}

.sat-body {
  position: absolute;
  width: 20px;
  height: 10px;
  background: #32ffce;
  border-radius: 3px;
  left: 20px;
  top: 5px;
  box-shadow: 0 0 10px rgba(50, 255, 206, 0.5);
}

.sat-panel {
  position: absolute;
  width: 15px;
  height: 5px;
  background: linear-gradient(90deg, #4f46e5, #32ffce);
  top: 7px;
}

.sat-panel-left {
  left: 2px;
  transform-origin: right center;
  animation: panel-rotate 8s ease-in-out infinite alternate;
}

.sat-panel-right {
  right: 2px;
  transform-origin: left center;
  animation: panel-rotate 8s ease-in-out infinite alternate-reverse;
}

.sat-dish {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ff5e78;
  border-radius: 50%;
  top: 0;
  left: 26px;
  transform: rotate(-30deg);
  box-shadow: 0 0 5px rgba(255, 94, 120, 0.7);
}

.sat-signal {
  position: absolute;
  border: 1px solid rgba(50, 255, 206, 0.7);
  border-radius: 50%;
  opacity: 0;
}

.signal-1 {
  width: 20px;
  height: 20px;
  top: 0;
  left: 20px;
  animation: signal-pulse 2s ease-out infinite;
}

.signal-2 {
  width: 30px;
  height: 30px;
  top: -5px;
  left: 15px;
  animation: signal-pulse 2s ease-out infinite 0.5s;
}

.command-center {
  position: absolute;
  bottom: 10%;
  right: 25%;
  width: 60px;
  height: 60px;
  z-index: 6;
}

.cc-base {
  position: absolute;
  bottom: 0;
  left: 10px;
  width: 40px;
  height: 20px;
  background: #32425c;
  border-radius: 5px 5px 0 0;
}

.cc-dome {
  position: absolute;
  bottom: 20px;
  left: 15px;
  width: 30px;
  height: 15px;
  background: rgba(50, 255, 206, 0.3);
  border-radius: 15px 15px 0 0;
  backdrop-filter: blur(2px);
  border: 1px solid rgba(50, 255, 206, 0.5);
  box-shadow: 0 0 10px rgba(50, 255, 206, 0.3);
}

.cc-antenna {
  position: absolute;
  bottom: 35px;
  left: 28px;
  width: 3px;
  height: 15px;
  background: #ff5e78;
}

.cc-window {
  position: absolute;
  bottom: 5px;
  left: 20px;
  width: 8px;
  height: 8px;
  background: #00d9ff;
  border-radius: 2px;
  animation: window-glow 1.5s ease-in-out infinite;
}

.cc-door {
  position: absolute;
  bottom: 0;
  left: 35px;
  width: 5px;
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1px;
}

.data-stream {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  opacity: 0.7;
}

.data-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #32ffce;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(50, 255, 206, 0.7);
  opacity: 0;
}

.p1 {
  top: 35%;
  right: 25%;
  animation: particle-move 4s linear infinite;
}

.p2 {
  top: 45%;
  right: 30%;
  animation: particle-move 4s linear infinite 0.8s;
}

.p3 {
  top: 25%;
  right: 35%;
  animation: particle-move 4s linear infinite 1.6s;
}

.p4 {
  top: 55%;
  left: 15%;
  animation: particle-move-rev 4s linear infinite;
}

.p5 {
  top: 65%;
  left: 20%;
  animation: particle-move-rev 4s linear infinite 1.2s;
}

.p6 {
  top: 75%;
  left: 25%;
  animation: particle-move-rev 4s linear infinite 2.4s;
}

.secure-badge {
  position: absolute;
  bottom: 5%;
  right: 10%;
  width: 120px;
  height: 30px;
  background: rgba(13, 2, 33, 0.7);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(50, 255, 206, 0.3);
  box-shadow: 0 0 10px rgba(50, 255, 206, 0.2);
  overflow: hidden;
  z-index: 7;
}

.badge-glow {
  position: absolute;
  top: -50%;
  left: -100%;
  width: 80px;
  height: 150px;
  background: rgba(50, 255, 206, 0.1);
  transform: rotate(45deg);
  animation: badge-shine 3s ease-in-out infinite;
  filter: blur(3px);
}

.badge-icon {
  width: 20px;
  height: 20px;
  background: #32ffce;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.badge-text {
  font-size: 8px;
  color: #32ffce;
  margin-left: 5px;
  letter-spacing: 0.5px;
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 0 5px rgba(50, 255, 206, 0.7);
}

/* Digital Elements */
.digital-elements {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.4;
  pointer-events: none;
}

.code-lines {
  position: absolute;
  top: 10%;
  left: 5%;
  width: 150px;
  height: 80px;
  background-image: linear-gradient(
    transparent 0%, 
    transparent calc(50% - 1px), 
    rgba(50, 255, 206, 0.5) 50%, 
    transparent calc(50% + 1px), 
    transparent 100%
  );
  background-size: 100% 10px;
  opacity: 0.2;
}

.binary-stream {
  position: absolute;
  top: 20%;
  right: 5%;
  width: 2px;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(to bottom, transparent, rgba(50, 255, 206, 0.8), transparent);
  animation: binary-flow 5s linear infinite;
}

.data-bubble {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(50, 255, 206, 0.3);
  animation: bubble-pulse 4s ease-in-out infinite;
}

.db1 {
  width: 40px;
  height: 40px;
  top: 40%;
  left: 30%;
  animation-delay: 0s;
}

.db2 {
  width: 30px;
  height: 30px;
  bottom: 30%;
  right: 40%;
  animation-delay: 1s;
}

.db3 {
  width: 25px;
  height: 25px;
  top: 60%;
  right: 20%;
  animation-delay: 2s;
}

.security-shield {
  position: absolute;
  top: 70%;
  left: 50%;
  width: 30px;
  height: 30px;
  background: rgba(255, 94, 120, 0.1);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  border: 1px solid rgba(255, 94, 120, 0.3);
  animation: shield-pulse 3s ease-in-out infinite;
}

.floating-elements {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.encrypted-packet {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #4f46e5;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation: packet-float 10s linear infinite;
  opacity: 0.7;
}

.ep1 {
  top: 30%;
  left: 40%;
  animation-delay: 0s;
}

.ep2 {
  top: 50%;
  right: 30%;
  animation-delay: 3s;
}

.ep3 {
  bottom: 40%;
  left: 25%;
  animation-delay: 6s;
}

.connection-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(50, 255, 206, 0.5), transparent);
  animation: line-pulse 4s ease-in-out infinite;
}

.cl1 {
  width: 80px;
  top: 45%;
  left: 30%;
  transform: rotate(-30deg);
  animation-delay: 0s;
}

.cl2 {
  width: 100px;
  bottom: 35%;
  right: 20%;
  transform: rotate(20deg);
  animation-delay: 2s;
}

/* Animations */
@keyframes twinkling {
  from { transform: translateY(0); }
  to { transform: translateY(-500px); }
}

@keyframes nebula-float {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0.2; }
  50% { transform: translate(50px, 20px) rotate(5deg); opacity: 0.4; }
  100% { transform: translate(-20px, 40px) rotate(-5deg); opacity: 0.3; }
}

@keyframes core-pulse {
  0% { transform: translate(-50%, -50%) scale(0.8); box-shadow: 0 0 10px rgba(50, 255, 206, 0.5); }
  100% { transform: translate(-50%, -50%) scale(1.2); box-shadow: 0 0 20px rgba(50, 255, 206, 0.9); }
}

@keyframes ring-pulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.2; }
  100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.8; }
}

@keyframes beam-pulse {
  0% { opacity: 0.4; height: 1px; }
  100% { opacity: 0.8; height: 2px; }
}

@keyframes blink {
  0% { opacity: 1; }
  100% { opacity: 0.3; }
}

@keyframes window-glow {
  0% { box-shadow: 0 0 5px rgba(0, 217, 255, 0.5); }
  100% { box-shadow: 0 0 15px rgba(0, 217, 255, 0.9); }
}

@keyframes satellite-orbit {
  0% { transform: rotate(0) translateX(10px) rotate(0); }
  100% { transform: rotate(360deg) translateX(10px) rotate(-360deg); }
}

@keyframes panel-rotate {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(60deg); }
}

@keyframes signal-pulse {
  0% { opacity: 1; transform: scale(0); }
  100% { opacity: 0; transform: scale(1.5); }
}

@keyframes particle-move {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(-200px, 100px); opacity: 0; }
}

@keyframes particle-move-rev {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(200px, -100px); opacity: 0; }
}

@keyframes badge-shine {
  0% { left: -100%; }
  20% { left: 100%; }
  100% { left: 100%; }
}

@keyframes binary-flow {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@keyframes bubble-pulse {
  0% { transform: scale(0.8); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(0.8); opacity: 0.3; }
}

@keyframes shield-pulse {
  0% { transform: scale(0.9); box-shadow: 0 0 10px rgba(255, 94, 120, 0.3); }
  50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(255, 94, 120, 0.5); }
  100% { transform: scale(0.9); box-shadow: 0 0 10px rgba(255, 94, 120, 0.3); }
}

@keyframes packet-float {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.7; }
  100% { transform: translate(100px, -50px) rotate(180deg); opacity: 0; }
}

@keyframes line-pulse {
  0% { opacity: 0.2; width: 80%; }
  50% { opacity: 0.8; width: 100%; }
  100% { opacity: 0.2; width: 80%; }
}

/* Interactive Hover Effects */
.secure-comms-scene:hover .node-core {
  animation-duration: 1s !important;
}

.secure-comms-scene:hover .security-beam {
  animation-duration: 1s !important;
}

.secure-comms-scene:hover .sat-signal {
  animation-duration: 1.5s !important;
}

.secure-comms-scene:hover .data-particle {
  animation-duration: 3s !important;
}

.secure-comms-scene:hover .planet {
  box-shadow: 0 0 30px rgba(50, 255, 206, 0.6), inset -20px -15px 40px rgba(0, 0, 0, 0.5);
}

.secure-comms-scene:hover .security-shield {
  background: rgba(255, 94, 120, 0.2);
  border: 1px solid rgba(255, 94, 120, 0.5);
  box-shadow: 0 0 20px rgba(255, 94, 120, 0.3);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .case-study-container {
    grid-template-columns: 1fr;
  }
  
  .case-study-image {
    height: 300px;
    order: -1;
  }
  
  .case-study-metrics {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }
}

/* Project filters */
.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 5;
}

.filter-btn {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 255, 163, 0.2);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--primary-dim);
  z-index: -1;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.filter-btn:hover::before {
  width: 100%;
}

.filter-btn.active {
  color: var(--dark);
  background-color: var(--primary);
  border-color: var(--primary);
  font-weight: 500;
  transform: scale(1.05);
  box-shadow: var(--glow-primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.project-card {
  background-color: var(--surface-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: var(--transition-normal);
  border: 1px solid rgba(0, 255, 163, 0.1);
  z-index: 1;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 255, 163, 0.3);
  border-color: var(--primary);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(0, 255, 163, 0.05) 40%,
    rgba(0, 255, 163, 0.1) 60%,
    transparent 100%
  );
  z-index: -1;
  transform: translateX(-100%);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover::before {
  transform: translateX(100%);
}

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

.project-card.show {
  display: block;
  animation: projectFadeIn 0.5s ease forwards;
}

@keyframes projectFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-image {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
  filter: saturate(0.9) brightness(0.9);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
  filter: saturate(1.1) brightness(1.1);
}

.project-image::after {
  content: 'View Details';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  letter-spacing: 1px;
  opacity: 0;
  transition: var(--transition-normal);
  text-transform: uppercase;
  backdrop-filter: blur(2px);
}

.project-card:hover .project-image::after {
  opacity: 1;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(13, 2, 33, 0.9));
  z-index: 1;
}

.project-content {
  padding: var(--space-md);
  position: relative;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text);
  transition: var(--transition-fast);
  position: relative;
  display: inline-block;
}

.project-card:hover .project-title {
  color: var(--primary);
}

.project-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.4s ease;
}

.project-card:hover .project-title::after {
  width: 100%;
}

.project-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-sm);
}

.project-tech-item {
  font-size: 0.7rem;
  color: var(--primary);
  background-color: var(--primary-dim);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-links {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.project-link {
  color: var(--primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  transition: var(--transition-fast);
}

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

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

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

.project-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--primary);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.project-link:hover::after {
  transform: scaleX(1);
  background-color: var(--text);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
  background-color: var(--dark);
  position: relative;
}

.testimonials-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.testimonials-slider {
  position: relative;
  height: 450px;
  overflow: visible;
}

.testimonial-card {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  position: absolute;
  width: 100%;
  min-height: 100%;
  opacity: 0;
  border: 1px solid rgba(0, 255, 163, 0.1);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: translateX(100px);
  display: block;
  overflow: auto;
}

.testimonial-card.active {
  opacity: 1;
  transform: translateX(0);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 255, 163, 0.3);
}

.quote-icon {
  color: var(--primary);
  font-size: 2rem;
  opacity: 0.3;
  margin-bottom: var(--space-sm);
}

.testimonial-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
  position: relative;
  font-style: italic;
  max-height: 250px;
  overflow-y: auto;
}

/* Video testimonial styles */
.video-testimonial {
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-placeholder {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background-color: var(--surface-dark);
  cursor: pointer;
  transition: var(--transition-normal);
}

.video-placeholder img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(0, 255, 163, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: var(--transition-normal);
}

.play-button i {
  color: var(--dark);
  font-size: 1.5rem;
  margin-left: 4px; /* Optical alignment for play icon */
}

.video-placeholder::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 2, 33, 0.4);
  transition: var(--transition-normal);
}

.video-placeholder:hover::after {
  background: rgba(13, 2, 33, 0.2);
}

.video-placeholder:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: var(--primary);
}

/* Video Modal Styles */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 0, 16, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.show {
  opacity: 1;
  visibility: visible;
}

.video-modal.closing {
  opacity: 0;
}

.video-modal-content {
  width: 90%;
  max-width: 1000px;
  background-color: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  border: 1px solid var(--primary);
  box-shadow: var(--glow-primary);
}

.video-modal.show .video-modal-content {
  transform: translateY(0);
}

.video-modal-header {
  padding: var(--space-sm);
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px solid rgba(0, 255, 163, 0.1);
}

.video-modal-close {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.video-modal-close:hover {
  background-color: var(--primary-dim);
  color: var(--primary);
}

.video-modal-body {
  padding: var(--space-md);
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background-color: var(--surface-dark);
}

.video-embed img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.video-play-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--text);
}

.video-play-message i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.video-play-message p {
  margin: var(--space-xs) 0;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== TECH STACK SECTION ===== */
.tech-stack {
  background-color: var(--dark);
  position: relative;
  overflow: hidden;
}

.tech-stack-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 5;
}

.tech-filter {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 255, 163, 0.2);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.tech-filter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--primary-dim);
  z-index: -1;
  transition: var(--transition-fast);
}

.tech-filter:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.tech-filter:hover::before {
  width: 100%;
}

.tech-filter.active {
  color: var(--dark);
  background-color: var(--primary);
  border-color: var(--primary);
  font-weight: 500;
  transform: scale(1.05);
  box-shadow: var(--glow-primary);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.tech-item {
  background-color: var(--surface-dark);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
  border: 1px solid rgba(0, 255, 163, 0.1);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.tech-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-primary);
  border-color: var(--primary);
}

.tech-item.hide {
  display: none;
}

.tech-item.show {
  display: flex;
  animation: techFadeIn 0.5s ease forwards;
}

@keyframes techFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.tech-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-dim);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-size: 1.8rem;
  flex-shrink: 0;
  transition: var(--transition-normal);
}

.tech-item:hover .tech-icon {
  background-color: var(--primary);
  color: var(--dark);
  transform: rotate(5deg);
}

.tech-info {
  flex: 1;
}

.tech-name {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
  color: var(--text);
}

.tech-level-bar {
  height: 6px;
  background-color: var(--surface);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-xs);
  overflow: hidden;
}

.tech-level {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: var(--radius-pill);
  width: 0;
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tech-years {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== FAQ SECTION ===== */
.faq {
  background-color: var(--surface);
  position: relative;
  overflow: hidden;
}

.faq-container {
  display: grid;
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

.faq-item {
  background-color: var(--surface-dark);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 255, 163, 0.1);
  overflow: hidden;
  transition: var(--transition-normal);
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

.faq-question {
  padding: var(--space-md);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.faq-question h3 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--text);
  transition: var(--transition-fast);
}

.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  transition: var(--transition-fast);
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.faq-toggle .fa-minus {
  display: none;
}

.faq-item.active .faq-toggle .fa-plus {
  display: none;
}

.faq-item.active .faq-toggle .fa-minus {
  display: block;
}

.faq-item.active .faq-question h3 {
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  padding: 0 var(--space-md);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding-bottom: var(--space-md);
  transition: max-height 0.6s ease-in;
}

.faq-answer p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

.faq-answer ul, .faq-answer ol {
  color: rgba(255, 255, 255, 0.7);
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
}

.faq-answer li {
  margin-bottom: var(--space-xs);
}

.faq-answer strong {
  color: var(--primary);
  font-weight: 600;
}

/* ===== EDUCATION SECTION ===== */
.education {
  background-color: var(--dark);
  position: relative;
  overflow: hidden;
  padding: var(--space-xl) 0;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.education-card {
  background-color: var(--surface-dark);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid rgba(0, 255, 163, 0.1);
  transition: var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.education-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

.education-year {
  font-family: 'Unbounded', sans-serif;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(0, 255, 163, 0.2);
}

.education-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.education-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .education-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== AVAILABILITY SIMPLE ===== */
.availability-simple {
  margin-top: var(--space-lg);
  background-color: var(--surface-dark);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1px solid rgba(0, 255, 163, 0.1);
  transition: var(--transition-normal);
}

.availability-simple:hover {
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

.availability-heading {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.availability-heading::before {
  content: '⏰';
  color: var(--primary);
}

.availability-simple p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(0, 255, 163, 0.1);
}

.testimonial-author-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 0 10px rgba(0, 255, 163, 0.5);
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
}

.testimonial-author-name {
  font-weight: 600;
  color: var(--text);
  font-size: 1.1rem;
}

.testimonial-author-role {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* Testimonial Controls */
.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  gap: var(--space-md);
  position: relative;
  z-index: 10;
}

.testimonial-nav {
  background-color: transparent;
  border: 1px solid rgba(0, 255, 163, 0.3);
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.testimonial-nav:hover {
  background-color: var(--primary);
  color: var(--dark);
  transform: scale(1.1);
}

.testimonial-dots {
  display: flex;
  gap: 8px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(0, 255, 163, 0.2);
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.testimonial-dot:hover {
  background-color: rgba(0, 255, 163, 0.4);
}

.testimonial-dot.active {
  background-color: var(--primary);
  transform: scale(1.2);
}

/* ===== CONTACT SECTION ===== */
.contact {
  background-color: var(--surface);
  position: relative;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
}

.contact-info {
  position: relative;
}

.contact-heading {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.contact-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background-color: var(--surface-dark);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  border: 1px solid rgba(0, 255, 163, 0.1);
}

.contact-item:hover {
  transform: translateX(10px);
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-dim);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
}

.contact-text {
  color: rgba(255, 255, 255, 0.8);
}

.contact-form {
  background-color: var(--surface-dark);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 255, 163, 0.1);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--surface);
  border: 1px solid rgba(0, 255, 163, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  margin-top: var(--space-sm);
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--surface-dark);
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(0, 255, 163, 0.1);
  position: relative;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-logo {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  background-image: var(--gradient-cyber);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: lowercase;
  letter-spacing: -1px;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface);
  color: var(--primary);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  border: 1px solid rgba(0, 255, 163, 0.1);
}

.social-link {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-5px);
  color: var(--dark);
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: -1;
}

.social-link:hover::before {
  transform: translateY(0);
}

.footer-copyright {
  width: 100%;
  text-align: center;
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

.footer-copyright a {
  color: var(--primary);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .hero .container {
    max-width: 45%;
  }
  
  .terminal-container {
    width: 50%;
    right: 2%;
  }
  
  .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
  }
}

@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    justify-content: center;
    padding-top: 120px;
    padding-bottom: 40px;
  }
  
  .hero .container {
    max-width: 100%;
    text-align: center;
  }
  
  .hero-description {
    margin: 0 auto var(--space-lg);
    padding-left: 0;
    border-left: none;
    text-align: center;
  }
  
  .terminal-container {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 90%;
    margin: 40px auto 0;
    height: 300px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--surface);
    padding: var(--space-md) var(--space-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
    border-bottom: 1px solid rgba(0, 255, 163, 0.1);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .btn {
    padding: 0.8rem 1.5rem;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

/* Additional CSS for interactive features */

/* Custom styling for interactive elements */
a, button, .btn, input, textarea, .skill-card, .project-card {
  cursor: pointer;
}

/* Skills canvas styling */
.skills-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Particles styling */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

/* Spinner animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 255, 163, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
  vertical-align: middle;
}

/* Hover state for interactive elements */
.btn:hover, .skill-card:hover, .project-card:hover, .contact-item:hover, .social-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-primary);
  transition: all 0.3s ease;
}

/* Glitch effect for logo */
@keyframes glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
  100% {
    transform: translate(0);
  }
}

.animate-glitch {
  animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* ===== WORK PROCESS SECTION ===== */
.process {
  background-color: var(--dark);
  position: relative;
  padding: var(--space-xl) 0;
}

.process-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  position: relative;
}

.process-container::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 50px;
  right: 50px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary-dim), transparent);
  z-index: 0;
}

.process-step {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  position: relative;
  z-index: 1;
  transition: var(--transition-normal);
  border: 1px solid rgba(0, 255, 163, 0.1);
  overflow: hidden;
  text-align: center;
}

.process-step:hover {
  transform: translateY(-10px);
  box-shadow: var(--glow-primary);
  border-color: var(--primary);
}

.process-step:hover .process-icon {
  background-color: var(--primary);
  color: var(--dark);
}

.process-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--primary-dim);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto var(--space-sm);
  transition: var(--transition-normal);
}

.process-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text);
}

.process-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.process-number {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  font-family: 'Unbounded', sans-serif;
}

@media (max-width: 768px) {
  .process-container::before {
    display: none;
  }
  
  .process-step {
    text-align: center;
  }
  
  .process-icon {
    margin: 0 auto var(--space-sm);
  }
}

/* ===== THEME TOGGLE ===== */
/* Removed theme toggle functionality */

/* Download CV button */
.btn-download {
  background-color: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  transition: var(--transition-normal);
  height: 51px; /* Match height with other buttons */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-download:hover {
  border-color: var(--text);
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.btn-download:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

.btn-download i {
  margin-right: 8px;
}

/* ===== CLIENTS SECTION ===== */
.clients {
  background-color: var(--surface);
  position: relative;
  padding: var(--space-lg) 0;
}

.logos-container {
  width: 100%;
  overflow: hidden;
  margin: var(--space-md) 0;
  position: relative;
}

.logos-container::before,
.logos-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.logos-container::before {
  left: 0;
  background: linear-gradient(to right, var(--surface), transparent);
}

.logos-container::after {
  right: 0;
  background: linear-gradient(to left, var(--surface), transparent);
}

.logos-track {
  display: flex;
  animation: scrollLogos 30s linear infinite;
  width: max-content;
}

.logo-item {
  flex: 0 0 200px;
  height: 80px;
  margin: 0 var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-dark);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 255, 163, 0.1);
  transition: var(--transition-fast);
  opacity: 0.6;
}

.logo-item:hover {
  opacity: 1;
  transform: scale(1.05);
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

.logo-item img {
  max-width: 80%;
  max-height: 60%;
  object-fit: contain;
}

@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===== SCROLL PROGRESS INDICATOR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  z-index: 9999;
  transition: width 0.1s, box-shadow 0.3s;
}

/* Add pulsing animation for scroll progress */
@keyframes progressPulse {
  0% { box-shadow: 0 0 5px var(--primary); }
  50% { box-shadow: 0 0 15px var(--primary); }
  100% { box-shadow: 0 0 5px var(--primary); }
}

.scroll-progress.active {
  animation: progressPulse 1s infinite;
}

/* ===== FLOATING ACTION BUTTON ===== */
.floating-action-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.fab-main {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--dark);
  border: none;
  box-shadow: 0 3px 10px rgba(0, 255, 163, 0.3);
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  position: relative;
  z-index: 2;
}

.fab-main i {
  transition: transform 0.3s ease;
}

.fab-main.active i {
  transform: rotate(45deg);
}

.fab-options {
  position: absolute;
  bottom: 70px;
  right: 10px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  transform: translateY(10px);
}

.floating-action-btn.active .fab-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fab-options li {
  margin-bottom: 15px;
}

.fab-options a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-dark);
  color: var(--primary);
  border: 1px solid rgba(0, 255, 163, 0.3);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: var(--transition-fast);
}

.fab-options a:hover {
  background: var(--primary);
  color: var(--dark);
  transform: scale(1.1);
}

/* ===== STAT COUNTER ANIMATION ===== */
.stat-number {
  position: relative;
}

.stat-number::after {
  content: '+';
  position: absolute;
  right: -15px;
  top: 0;
}

/* Light theme variables */
body.light-theme {
  --dark: #f0f0f0;
  --darker: #e0e0e0;
  --surface: #ffffff;
  --surface-dark: #f0f0f0;
  --surface-light: #ffffff;
  --text: #0d0221;
  --text-dark: #050010;
  --primary: #009e60;
  --primary-dim: rgba(0, 158, 96, 0.2);
  --secondary: #00b380;
  --accent: #c4008c;
  --accent-dim: rgba(196, 0, 140, 0.2);
  
  color: var(--text);
  background-color: var(--dark);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
  100% {
    transform: translate(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease forwards;
}

.animate-slide-right {
  animation: slideInRight 0.8s ease forwards;
}

.animate-glitch {
  animation: glitch 0.5s ease-in-out;
}

/* Animation delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* Mobile menu active state */
.mobile-menu.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.mobile-menu.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Terminal cursor blink */
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background-color: var(--primary);
  animation: cursorBlink 1s infinite;
  vertical-align: middle;
  margin-left: 3px;
}

/* Success message for form submission */
.success-message {
  padding: var(--space-lg);
  background-color: var(--surface-dark);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  color: var(--text);
  text-align: center;
  box-shadow: var(--glow-primary);
  transition: opacity 0.5s ease;
}

.success-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
  display: inline-block;
  animation: scaleIn 0.5s ease forwards;
}

@keyframes scaleIn {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.success-message h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--primary);
}

.success-message p {
  margin-bottom: var(--space-md);
  color: rgba(255, 255, 255, 0.8);
}

.success-message .btn {
  display: inline-block;
  margin-top: var(--space-sm);
}

/* Form validation styles */
.form-control.invalid {
  border-color: #ff3860;
  box-shadow: 0 0 8px rgba(255, 56, 96, 0.3);
}

.form-control.valid {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(0, 255, 163, 0.3);
}

.form-error {
  color: #ff3860;
  font-size: 0.8rem;
  margin-top: 5px;
  display: block;
  text-align: left;
  font-weight: 500;
}

/* Custom alert for CV download */
.custom-alert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(5, 0, 16, 0.8);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-alert.show {
  opacity: 1;
  visibility: visible;
}

.custom-alert-content {
  width: 90%;
  max-width: 500px;
  background-color: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--primary);
  box-shadow: var(--glow-primary);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.custom-alert.show .custom-alert-content {
  transform: translateY(0);
}

.custom-alert-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.custom-alert-message h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
  color: var(--text);
  text-align: center;
}

.custom-alert-message p {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-bottom: var(--space-md);
}

.custom-alert-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition-fast);
}

.custom-alert-close:hover {
  opacity: 1;
  color: var(--primary);
}

/* Typing indicator animation */
.typing-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-sm) auto;
  width: 70px;
}

.typing-indicator span {
  height: 10px;
  width: 10px;
  margin: 0 3px;
  background-color: var(--primary);
  border-radius: 50%;
  display: inline-block;
  opacity: 0.4;
}

.typing-indicator span:nth-child(1) {
  animation: typing 1.5s infinite;
}

.typing-indicator span:nth-child(2) {
  animation: typing 1.5s infinite 0.3s;
}

.typing-indicator span:nth-child(3) {
  animation: typing 1.5s infinite 0.6s;
}

@keyframes typing {
  0% { transform: translateY(0px); opacity: 0.4; }
  50% { transform: translateY(-10px); opacity: 1; }
  100% { transform: translateY(0px); opacity: 0.4; }
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 255, 163, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}