:root {
  --bg: #0a0e1a;
  --bg-elev: #0f1419;
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --secondary: #10b981;
  --accent: #f59e0b;
  --accent-pink: #ec4899;
  --card: rgba(15, 20, 25, 0.8);
  --card-glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(59, 130, 246, 0.3);
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .4);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.2);
  --gradient-primary: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
  --gradient-secondary: linear-gradient(135deg, #10b981, #06b6d4, #3b82f6);
  --gradient-accent: linear-gradient(135deg, #f59e0b, #ef4444, #ec4899);
}

/* Light theme */
html.light {
  --bg: #fefefe;
  --bg-elev: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --card: rgba(255, 255, 255, 0.9);
  --card-glass: rgba(0, 0, 0, 0.02);
  --border: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(59, 130, 246, 0.2);
  --shadow: 0 20px 60px rgba(0, 0, 0, .08);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.1);
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  font-size: 16px
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px
}

.narrow {
  max-width: 900px
}

.section {
  padding: 100px 0
}

/* Simple Reliable Sticky Header */
.site-header {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10, 14, 26, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Light mode header */
html.light .site-header {
  background: rgba(255, 255, 255, 0.9);
}

html.light .site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Remove problematic background element */
.header-background {
  display: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Fixed Logo Section */
.logo-section {
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 4px;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-symbol {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: white;
}

.logo-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-text {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.logo-subtitle {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  white-space: nowrap;
}

/* Fixed Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 3px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-toggle:hover {
  background: var(--card-glass);
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.nav-menu {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--card-glass);
  color: var(--primary);
}

.nav-link.active {
  background: var(--gradient-primary);
  color: white;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Fixed Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--card-glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.theme-toggle:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

.theme-icon {
  width: 14px;
  height: 14px;
  background: currentColor;
  mask: url('../assets/theme.svg') no-repeat center / contain;
  -webkit-mask: url('../assets/theme.svg') no-repeat center / contain;
}

.theme-text {
  font-size: 12px;
}

/* Fallback theme icons */
.theme-toggle::after {
  content: '🌙';
  font-size: 14px;
  position: absolute;
  left: 12px;
  opacity: 0;
}

html.light .theme-toggle::after {
  content: '☀️';
  opacity: 1;
}

html.light .theme-icon {
  opacity: 0;
}

/* Fixed CTA Button */
.cta-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.cta-text,
.cta-icon {
  transition: all 0.3s ease;
}

.cta-icon {
  font-size: 14px;
}

.cta-button:hover .cta-icon {
  transform: translateX(2px);
}

/* Header Progress Bar */
.header-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gradient-primary);
  width: 0%;
  transition: width 0.3s ease;
}

/* Fixed Responsive Header */
@media (max-width: 968px) {
  .logo-content {
    display: none;
  }
  
  .theme-text {
    display: none;
  }
  
  .theme-toggle {
    padding: 8px;
  }
  
  .cta-button {
    padding: 8px 12px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-elev);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 8px;
    transform: translateY(-100%);
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 16px;
  }
  
  .logo-icon {
    width: 32px;
    height: 32px;
  }
  
  .logo-symbol {
    font-size: 14px;
  }
  
  .cta-text {
    display: none;
  }
  
  .header-actions {
    gap: 8px;
  }
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
  z-index: 2;
}

/* Professional AI Chatbot Widget */
.ai-chatbot-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  font-family: "Inter", system-ui, sans-serif;
}

.ai-chat-toggle {
  position: relative;
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.ai-chat-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-secondary);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.ai-chat-toggle:hover::before {
  opacity: 1;
}

.ai-chat-toggle:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 48px rgba(59, 130, 246, 0.4);
}

.ai-chat-toggle.active {
  background: var(--gradient-accent);
  transform: scale(0.95);
}

.ai-toggle-icon {
  font-size: 28px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.ai-chat-toggle:hover .ai-toggle-icon {
  transform: scale(1.1);
}

.ai-status-indicator {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: var(--secondary);
  border: 3px solid white;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.ai-tooltip {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: var(--card);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
  pointer-events: none;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  margin-bottom: 8px;
}

.ai-chat-toggle:hover .ai-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced AI Chat Panel */
.ai-chat-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 520px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ai-chat-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--gradient-primary);
  color: white;
  position: relative;
}

.ai-chat-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-secondary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ai-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.ai-avatar-small {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.ai-header-text h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.ai-header-text p {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
}

.ai-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.ai-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Enhanced Chat Messages */
.ai-chat-messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg);
}

.ai-chat-messages::-webkit-scrollbar {
  width: 6px;
}

.ai-chat-messages::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 3px;
}

.ai-message {
  display: flex;
  gap: 12px;
  animation: messageSlide 0.3s ease;
}

.ai-message-user {
  flex-direction: row-reverse;
}

.ai-message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.ai-message-bot .ai-message-avatar {
  background: var(--gradient-primary);
  color: white;
}

.ai-message-user .ai-message-avatar {
  background: var(--gradient-secondary);
  color: white;
}

.ai-message-content {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}

.ai-message-bot .ai-message-content {
  background: var(--card-glass);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.ai-message-user .ai-message-content {
  background: var(--gradient-primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.ai-message-time {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 4px;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Chat Input */
.ai-chat-input {
  padding: 20px 24px;
  background: var(--card);
  border-top: 1px solid var(--border);
}

.ai-input-container {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ai-message-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.ai-message-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ai-send-btn {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 16px;
}

.ai-send-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.ai-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Quick Actions */
.ai-quick-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ai-quick-action {
  background: var(--card-glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.ai-quick-action:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-1px);
}

/* Typing Indicator */
.ai-typing-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--card-glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  max-width: 75%;
}

.ai-typing-dots {
  display: flex;
  gap: 4px;
}

.ai-typing-dot {
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: typingDot 1.4s ease-in-out infinite;
}

.ai-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.ai-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .ai-chatbot-widget {
    bottom: 16px;
    right: 16px;
  }
  
  .ai-chat-panel {
    width: calc(100vw - 32px);
    height: 480px;
    right: -8px;
  }
  
  .ai-chat-toggle {
    width: 56px;
    height: 56px;
  }
  
  .ai-toggle-icon {
    font-size: 24px;
  }
}

/* Dark Theme Adaptations */
html.light .ai-chat-panel {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

html.light .ai-chat-messages {
  background: rgba(248, 250, 252, 0.8);
}

html.light .ai-message-bot .ai-message-content {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Advanced floating shapes */
.floating-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.1;
  animation: shapeFloat 15s ease-in-out infinite;
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 15%;
  animation-delay: 3s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  bottom: 30%;
  left: 20%;
  animation-delay: 6s;
}

.shape-4 {
  width: 40px;
  height: 40px;
  top: 40%;
  right: 30%;
  animation-delay: 9s;
}

.shape-5 {
  width: 120px;
  height: 120px;
  bottom: 10%;
  right: 10%;
  animation-delay: 12s;
}

@keyframes shapeFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    opacity: 0.1;
  }

  25% {
    transform: translateY(-30px) rotate(90deg) scale(1.1);
    opacity: 0.2;
  }

  50% {
    transform: translateY(-60px) rotate(180deg) scale(0.9);
    opacity: 0.15;
  }

  75% {
    transform: translateY(-30px) rotate(270deg) scale(1.1);
    opacity: 0.2;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(1deg);
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* InBio-style hero elements */
.hero-badge {
  margin-bottom: 24px;
}

.badge-text {
  display: inline-block;
  background: var(--card-glass);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.hero-name {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 16px 0;
  color: var(--text);
}

.name-highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-roles {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 24px 0;
  line-height: 1.4;
}

.hero-roles strong {
  color: var(--text);
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 32px 0;
  max-width: 500px;
}

.hero-cta {
  margin-bottom: 40px;
}

.hero-skills {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.skills-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.skills-icons {
  display: flex;
  gap: 12px;
}

.skill-icon {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.3s ease;
}

.skill-icon:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-2px);
}

/* InBio-style features section */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--text);
  margin: 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-analysis {
  margin-top: 16px;
}

.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.ai-chip:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.ai-icon {
  font-size: 16px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.4s ease;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before {
  opacity: 0.05;
}

.feature-card:hover {
  transform: translateY(-8px) rotateX(5deg) rotateY(5deg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
  border-color: var(--border-glow);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease;
  transform-style: preserve-3d;
}

.feature-card:hover .feature-icon {
  transform: rotateY(180deg) scale(1.1);
}

.feature-icon .icon {
  font-size: 32px;
  filter: grayscale(1) brightness(0) invert(1);
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px 0;
  position: relative;
  z-index: 2;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* InBio-style portfolio section */
.section-subtitle {
  font-size: 18px;
  color: var(--muted);
  margin: 16px 0 0 0;
  font-weight: 400;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}

.portfolio-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(20px);
  position: relative;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
  border-color: var(--border-glow);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-likes {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 14px;
  font-weight: 500;
}

.like-icon {
  font-size: 16px;
}

.portfolio-content {
  padding: 32px;
}

.portfolio-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portfolio-content p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.portfolio-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.meta-item {
  font-size: 14px;
  color: var(--muted);
}

.meta-item strong {
  color: var(--text);
  font-weight: 600;
}

.portfolio-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-like {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 20px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-like:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

.btn-view {
  background: var(--gradient-primary);
  color: white;
  border-radius: 20px;
  padding: 8px 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-view:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.hero-visual {
  text-align: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.hero-image-container {
  position: relative;
  display: inline-block;
  border-radius: 20px;
  overflow: hidden;
  max-width: 400px;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}

.hero-image-container:hover {
  transform: rotateY(5deg) rotateX(5deg);
}

.image-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.hero-image-container img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 2;
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 20px;
}

.hero-image-container:hover .image-overlay {
  opacity: 1;
}

.overlay-content {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px 16px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 14px;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.hero-glow {
  position: absolute;
  inset: -30px;
  background: var(--gradient-primary);
  border-radius: 30px;
  opacity: 0.2;
  filter: blur(60px);
  animation: glow 4s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes glow {
  0% {
    opacity: 0.1;
    transform: scale(0.8);
  }

  100% {
    opacity: 0.3;
    transform: scale(1.2);
  }
}

.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  backdrop-filter: blur(10px);
  animation: iconFloat 6s ease-in-out infinite;
}

.icon-1 {
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.icon-2 {
  top: 30%;
  left: -10%;
  animation-delay: 1.5s;
}

.icon-3 {
  bottom: 20%;
  right: -10%;
  animation-delay: 3s;
}

.icon-4 {
  bottom: 10%;
  left: 10%;
  animation-delay: 4.5s;
}

@keyframes iconFloat {

  0%,
  100% {
    transform: translateY(0px) scale(1);
    opacity: 0.7;
  }

  50% {
    transform: translateY(-20px) scale(1.1);
    opacity: 1;
  }
}

.hero-image-container:hover img {
  transform: scale(1.02);
}

/* Real-time Stats */
.real-time-stats {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Holographic Overlay */
.holographic-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.hologram-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: hologramScan 3s ease-in-out infinite;
}

.hologram-line:nth-child(1) {
  top: 20%;
  width: 100%;
  animation-delay: 0s;
}

.hologram-line:nth-child(2) {
  top: 50%;
  width: 80%;
  left: 10%;
  animation-delay: 1s;
}

.hologram-line:nth-child(3) {
  top: 80%;
  width: 60%;
  left: 20%;
  animation-delay: 2s;
}

@keyframes hologramScan {

  0%,
  100% {
    opacity: 0;
    transform: scaleX(0);
  }

  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Tooltip System */
.floating-icon[data-tooltip] {
  position: relative;
}

.floating-icon[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  z-index: 1000;
  animation: tooltipFade 0.3s ease;
}

@keyframes tooltipFade {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.cta {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap
}

.cta.center {
  justify-content: center
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--border);
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::before {
  opacity: 0.1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
}

.btn-ghost {
  background: var(--card-glass);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.link.arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.link.arrow::after {
  content: "→"
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px
}

@media (max-width: 920px) {

  .hero-inner,
  .grid-2,
  .about-intro {
    grid-template-columns: 1fr
  }

  .hero-inner {
    gap: 40px
  }

  .hero {
    padding: 100px 0 60px
  }
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

.metric {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.metric:hover::before {
  opacity: 0.05;
}

.metric:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
  border-color: var(--border-glow);
}

.metric .num {
  font-size: 36px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.metric .label {
  display: block;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: all 0.4s ease;
  backdrop-filter: blur(20px);
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.card:hover::before {
  opacity: 0.05;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .4);
  border-color: var(--border-glow);
}

.card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover img {
  transform: scale(1.1);
}

.card .card-body {
  padding: 24px;
  position: relative;
  z-index: 2;
}

.card .card-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card .card-body p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev)
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 28px 0
}

.footer-nav ul {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0
}

.copy {
  color: var(--muted)
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr
  }
}

/* Animations & reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease
}

[data-reveal].visible {
  opacity: 1;
  transform: none
}

/* About page styles */
.about-intro {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
  margin: 32px 0
}

.about-text p {
  margin-bottom: 16px;
  line-height: 1.6
}

.about-photo {
  text-align: center
}

.about-photo img {
  border-radius: 20px;
  box-shadow: var(--shadow)
}

/* Timeline */
.timeline-container {
  position: relative;
  padding-left: 32px
}

.timeline-container::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border)
}

.timeline-item {
  position: relative;
  margin-bottom: 40px
}

.timeline-marker {
  position: absolute;
  left: -24px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid var(--bg)
}

.timeline-year {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px
}

.timeline-content h3 {
  margin: 0 0 8px 0;
  font-size: 18px
}

.timeline-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5
}

/* Progress bars */
.bars {
  display: grid;
  gap: 10px
}

.bar {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 10px
}

.bar i {
  display: block;
  height: 10px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  width: var(--value);
  transition: width 1.2s ease-out
}

/* Radials */
.charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  margin-top: 32px
}

.radial {
  --size: 140px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0deg, var(--border) 0deg);
  display: grid;
  place-items: center;
  margin: auto;
  border: 8px solid var(--card);
  position: relative;
  transition: background 1.5s ease-out
}

.radial-inner {
  display: grid;
  place-items: center;
  text-align: center
}

.radial-percent {
  font-size: 24px;
  font-weight: 700;
  color: var(--text)
}

.radial-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px
}

.radial.animated {
  background: conic-gradient(var(--primary) calc(var(--value)*360deg), var(--border) 0deg)
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center
}

.modal.open {
  display: flex
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5)
}

.modal-content {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  max-width: 720px;
  width: 92%
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 26px;
  cursor: pointer
}

/* Enhanced Skills Page Styles */
.skills-hero {
  position: relative;
  padding: 120px 0 80px;
  background: var(--bg);
  overflow: hidden;
}

.skills-hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.skills-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  margin: 0 0 24px 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.skills-subtitle {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 60px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.skills-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  border-color: var(--border-glow);
}

.stat-number {
  display: block;
  font-size: 48px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  margin-top: 8px;
}

.skills-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-code {
  position: absolute;
  inset: 0;
}

.code-snippet {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 24px;
  color: var(--primary);
  opacity: 0.1;
  animation: codeFloat 15s ease-in-out infinite;
}

.code-snippet:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.code-snippet:nth-child(2) {
  top: 60%;
  right: 15%;
  animation-delay: 3s;
}

.code-snippet:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 6s;
}

.code-snippet:nth-child(4) {
  top: 40%;
  right: 30%;
  animation-delay: 9s;
}

@keyframes codeFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.1;
  }

  50% {
    transform: translateY(-30px) rotate(5deg);
    opacity: 0.2;
  }
}

.skills-technical {
  padding: 100px 0;
}

.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 60px;
  margin-top: 80px;
}

.skill-category {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.skill-category::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-category:hover::before {
  opacity: 0.03;
}

.skill-category:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
  border-color: var(--border-glow);
}

.category-header {
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}

.category-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.skill-category:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
}

.category-icon .icon {
  font-size: 24px;
  filter: grayscale(1) brightness(0) invert(1);
}

.category-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.category-header p {
  color: var(--muted);
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.skills-list {
  position: relative;
  z-index: 2;
}

.skill-item {
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.skill-item:hover {
  transform: translateX(8px);
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.skill-name {
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
}

.skill-percentage {
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
}

.skill-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  width: 0%;
  transition: width 2s ease-out;
  position: relative;
}

.skill-progress::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-20px);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateX(20px);
    opacity: 0;
  }
}

.skills-overview {
  background: var(--bg-elev);
  padding: 100px 0;
}

.circular-skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 60px;
  margin-top: 80px;
  justify-items: center;
}

.circular-skill {
  position: relative;
}

.circular-progress {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring {
  transform: rotate(-90deg);
  transition: all 0.3s ease;
}

.circular-skill:hover .progress-ring {
  transform: rotate(-90deg) scale(1.05);
}

.progress-ring-circle {
  transition: stroke-dasharray 0.3s ease;
}

.progress-ring-bar {
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 2s ease-out;
  stroke-linecap: round;
}

.skill-content {
  position: absolute;
  text-align: center;
}

.skill-percent {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.skill-label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
}

/* Animation delays for reveal */
[data-delay="100"] {
  animation-delay: 0.1s;
}

[data-delay="200"] {
  animation-delay: 0.2s;
}

[data-delay="300"] {
  animation-delay: 0.3s;
}

[data-delay="400"] {
  animation-delay: 0.4s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .skills-categories {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .skills-stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .circular-skills {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .circular-skills {
    grid-template-columns: 1fr;
  }
}

/* Services page */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px
}

.service {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service:hover::before {
  transform: scaleX(1)
}

.service:hover::after {
  opacity: 0.05
}

.service:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .4);
  border-color: var(--border-glow);
}

.service h2 {
  margin: 0 0 24px 0;
  font-size: 26px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
}

.service ul {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2
}

.service li {
  padding: 14px 0;
  color: var(--muted);
  position: relative;
  padding-left: 32px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.service li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
  font-size: 16px;
  transition: transform 0.2s ease;
}

.service li:hover::before {
  transform: scale(1.2);
}

.service:hover li {
  color: var(--text)
}

/* Forms */
.contact-form {
  display: grid;
  gap: 24px
}

.field {
  display: grid;
  gap: 8px
}

.field input,
.field select,
.field textarea {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.field label {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.error {
  color: #ef4444;
  min-height: 20px;
  font-size: 14px;
  font-weight: 500
}

/* Ultra-Advanced Preloader */
#preloader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  z-index: 100;
  transition: opacity .5s ease;
  backdrop-filter: blur(20px);
  overflow: hidden;
  /* Fallback: Auto-hide after 6 seconds */
  animation: preloaderFallback 6s ease-in-out forwards;
}

@keyframes preloaderFallback {

  0%,
  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    pointer-events: none;
  }
}

#preloader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.preloader-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.preloader-logo {
  margin-bottom: 40px;
}

.preloader-logo .logo-text {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 48px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logoGlow 2s ease-in-out infinite alternate;
}

.logo-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@keyframes logoGlow {
  0% {
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
  }

  100% {
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.6));
  }
}

.preloader-progress {
  margin-bottom: 40px;
}

.progress-bar {
  width: 300px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto 16px;
  position: relative;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: 3px;
  animation: progressLoad 4s ease-out forwards;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.progress-percentage {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  animation: percentageCount 4s ease-out forwards;
}

@keyframes percentageCount {
  0% {
    content: "0%";
  }

  25% {
    content: "25%";
  }

  50% {
    content: "50%";
  }

  75% {
    content: "75%";
  }

  100% {
    content: "100%";
  }
}

@keyframes progressLoad {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

.progress-text {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  animation: progressText 4s ease-out forwards;
}

@keyframes progressText {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.loading-steps {
  margin-top: 32px;
}

.step {
  padding: 8px 16px;
  margin: 4px 0;
  background: var(--card-glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.step.active {
  opacity: 1;
  color: var(--text);
  background: var(--gradient-primary);
  border-color: transparent;
  animation: stepPulse 1s ease-in-out infinite alternate;
}

@keyframes stepPulse {
  0% {
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
  }

  100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
  }
}

.preloader-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  animation: particleFloat 3s ease-in-out infinite;
}

.particle:nth-child(1) {
  left: 20%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  left: 40%;
  animation-delay: 0.5s;
}

.particle:nth-child(3) {
  left: 60%;
  animation-delay: 1s;
}

.particle:nth-child(4) {
  left: 80%;
  animation-delay: 1.5s;
}

.particle:nth-child(5) {
  left: 50%;
  animation-delay: 2s;
}

@keyframes particleFloat {

  0%,
  100% {
    transform: translateY(0px) scale(1);
    opacity: 0.3;
  }

  50% {
    transform: translateY(-30px) scale(1.5);
    opacity: 1;
  }
}

/* Accessibility helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0
}

/* Focus states for keyboard navigation */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: #06121f;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 100
}

.skip-link:focus {
  top: 6px
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border: #ffffff;
    --muted: #ffffff
  }

  html.light {
    --border: #000000;
    --muted: #000000
  }
}

/* Advanced Cursor Effects */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.1s ease;
}

.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.3;
  transition: transform 0.1s ease;
}

.cursor-hover {
  transform: scale(1.5);
  background: var(--accent);
}

.cursor-follower-hover {
  transform: scale(1.5);
  border-color: var(--accent);
  opacity: 0.6;
}

/* Advanced scroll animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Morphing shapes */
.morphing-shape {
  position: absolute;
  background: var(--gradient-primary);
  border-radius: 50%;
  animation: morph 8s ease-in-out infinite;
}

@keyframes morph {

  0%,
  100% {
    border-radius: 50% 50% 50% 50%;
    transform: rotate(0deg) scale(1);
  }

  25% {
    border-radius: 60% 40% 60% 40%;
    transform: rotate(90deg) scale(1.1);
  }

  50% {
    border-radius: 40% 60% 40% 60%;
    transform: rotate(180deg) scale(0.9);
  }

  75% {
    border-radius: 30% 70% 30% 70%;
    transform: rotate(270deg) scale(1.1);
  }
}

/* Advanced button effects */
.btn-advanced {
  position: relative;
  overflow: hidden;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.btn-advanced::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-advanced:hover::before {
  left: 100%;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important
  }

  html {
    scroll-behavior: auto
  }

  .custom-cursor,
  .cursor-follower {
    display: none
  }
}


/* ===== PRICING PAGE STYLES ===== */
.pricing-hero {
  position: relative;
  padding: 120px 0 80px;
  background: var(--bg);
  overflow: hidden;
}

.pricing-hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.pricing-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  margin: 0 0 24px 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.pricing-subtitle {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 60px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.toggle-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s ease;
}

.toggle-label.active {
  color: var(--text);
}

.toggle-switch {
  position: relative;
  width: 60px;
  height: 30px;
  background: var(--border);
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toggle-switch.active {
  background: var(--primary);
}

.toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-slider {
  transform: translateX(30px);
}

.toggle-discount {
  background: var(--gradient-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-elements {
  position: absolute;
  inset: 0;
}

.price-element {
  position: absolute;
  font-size: 24px;
  opacity: 0.1;
  animation: priceFloat 20s ease-in-out infinite;
}

.price-element:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.price-element:nth-child(2) {
  top: 60%;
  right: 15%;
  animation-delay: 5s;
}

.price-element:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 10s;
}

.price-element:nth-child(4) {
  top: 40%;
  right: 30%;
  animation-delay: 15s;
}

@keyframes priceFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.1;
  }

  50% {
    transform: translateY(-30px) rotate(10deg);
    opacity: 0.2;
  }
}

.pricing-plans {
  padding: 100px 0;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 80px;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  transition: all 0.4s ease;
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pricing-card:hover::before {
  opacity: 0.03;
}

.pricing-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .4);
  border-color: var(--border-glow);
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
  transform: scale(1.05);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-12px);
}

.popular-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 8px 24px;
  border-radius: 0 0 12px 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-header {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}

.plan-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: transform 0.3s ease;
}

.pricing-card:hover .plan-icon {
  transform: scale(1.1) rotate(5deg);
}

.plan-icon .icon {
  font-size: 32px;
  filter: grayscale(1) brightness(0) invert(1);
}

.plan-name {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plan-description {
  color: var(--muted);
  margin: 0 0 24px 0;
  font-size: 16px;
  line-height: 1.5;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.currency {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary);
}

.amount {
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.period {
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
}

.plan-savings {
  text-align: center;
  margin-bottom: 16px;
}

.savings-text {
  background: var(--gradient-secondary);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.plan-features {
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}

.plan-features ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

.plan-features li:hover {
  transform: translateX(4px);
  color: var(--primary);
}

.plan-features li:last-child {
  border-bottom: none;
}

.feature-icon {
  width: 20px;
  height: 20px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.plan-cta {
  position: relative;
  z-index: 2;
}

.plan-cta .btn {
  width: 100%;
  justify-content: center;
  padding: 16px 32px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* FAQ Section */
.pricing-faq {
  background: var(--bg-elev);
  padding: 100px 0;
}

.faq-grid {
  display: grid;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
  margin-top: 60px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.faq-question {
  width: 100%;
  padding: 24px 32px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  font-size: 24px;
  font-weight: 300;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-question[aria-expanded="true"]+.faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 32px 24px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* CTA Section */
.pricing-cta {
  padding: 100px 0;
  background: var(--bg);
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 24px 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-content p {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 40px 0;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pricing-card.popular {
    transform: none;
  }

  .pricing-card.popular:hover {
    transform: translateY(-12px);
  }

  .pricing-toggle {
    flex-wrap: wrap;
    gap: 12px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    min-width: 200px;
  }
}

@media (max-width: 480px) {
  .pricing-card {
    padding: 32px 24px;
  }

  .plan-price {
    flex-direction: column;
    gap: 0;
  }

  .amount {
    font-size: 36px;
  }

  .faq-question {
    padding: 20px 24px;
    font-size: 16px;
  }

  .faq-answer p {
    padding: 0 24px 20px;
  }
}

/* E
mergency visibility fixes */
main {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.section {
  display: block !important;
  visibility: visible !important;
}

/* Ensure content shows even without JavaScript */
.no-js [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

/* Fallback for reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  /* Fallback: show after 2 seconds */
  animation: revealFallback 2s ease-in-out forwards;
}

[data-reveal].visible {
  opacity: 1;
  transform: none;
  animation: none;
}

@keyframes revealFallback {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }

  80% {
    opacity: 0;
    transform: translateY(16px);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

/ *=====PROFESSIONAL ANIMATIONS=====*/
/* Smooth page transitions */
* {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Enhanced hover effects for buttons */
.btn {
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.btn:active {
  transform: translateY(-1px);
}

/* Professional card animations */
.card,
.feature-card,
.portfolio-card,
.skill-card,
.service,
.pricing-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateY(0) scale(1);
}

.card:hover,
.feature-card:hover,
.portfolio-card:hover,
.skill-card:hover,
.service:hover,
.pricing-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Floating animation for hero elements */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  25% {
    transform: translateY(-10px) rotate(1deg);
  }

  50% {
    transform: translateY(-20px) rotate(0deg);
  }

  75% {
    transform: translateY(-10px) rotate(-1deg);
  }
}

.hero-image-container {
  animation: float 6s ease-in-out infinite;
}

/* Pulse animation for important elements */
@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.btn-primary {
  animation: pulse 3s ease-in-out infinite;
}

/* Gradient animation for backgrounds */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.hero-bg,
.pricing-hero-bg {
  background: linear-gradient(-45deg,
      rgba(59, 130, 246, 0.1),
      rgba(139, 92, 246, 0.1),
      rgba(236, 72, 153, 0.1),
      rgba(16, 185, 129, 0.1));
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

/* Text typing animation */
@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink {

  0%,
  50% {
    border-color: transparent;
  }

  51%,
  100% {
    border-color: var(--primary);
  }
}

.typing-text {
  overflow: hidden;
  border-right: 2px solid var(--primary);
  white-space: nowrap;
  animation: typing 3s steps(40, end), blink 1s step-end infinite;
}

/* Smooth reveal animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  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 fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Apply reveal animations */
[data-reveal="fade-up"] {
  animation: slideInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

[data-reveal="slide-left"] {
  animation: slideInLeft 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

[data-reveal="slide-right"] {
  animation: slideInRight 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

[data-reveal="fade-in"] {
  animation: fadeInScale 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Staggered animation delays */
[data-delay="100"] {
  animation-delay: 0.1s;
}

[data-delay="200"] {
  animation-delay: 0.2s;
}

[data-delay="300"] {
  animation-delay: 0.3s;
}

[data-delay="400"] {
  animation-delay: 0.4s;
}

[data-delay="500"] {
  animation-delay: 0.5s;
}

/* Loading bar animation */
@keyframes loadingBar {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

.loading-bar {
  height: 3px;
  background: var(--gradient-primary);
  animation: loadingBar 2s ease-out forwards;
}

/* Particle floating animation */
@keyframes particleFloat {

  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 0.3;
  }

  25% {
    transform: translateY(-20px) translateX(10px) rotate(90deg);
    opacity: 0.6;
  }

  50% {
    transform: translateY(-40px) translateX(-5px) rotate(180deg);
    opacity: 0.8;
  }

  75% {
    transform: translateY(-20px) translateX(-10px) rotate(270deg);
    opacity: 0.6;
  }
}

.floating-particle {
  animation: particleFloat 8s ease-in-out infinite;
}

/* Icon bounce animation */
@keyframes iconBounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

.feature-icon,
.plan-icon,
.category-icon {
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon,
.pricing-card:hover .plan-icon,
.skill-category:hover .category-icon {
  animation: iconBounce 1s ease;
}

/* Progress bar animations */
@keyframes progressFill {
  from {
    width: 0%;
  }

  to {
    width: var(--progress-width);
  }
}

.skill-progress {
  animation: progressFill 2s ease-out forwards;
}

/* Glow effect animation */
@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
  }
}

.glow-effect {
  animation: glow 2s ease-in-out infinite;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Enhanced focus states */
*:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  transition: outline 0.2s ease;
}

/* Loading spinner */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Morphing shapes */
@keyframes morph {

  0%,
  100% {
    border-radius: 50% 50% 50% 50%;
  }

  25% {
    border-radius: 60% 40% 60% 40%;
  }

  50% {
    border-radius: 40% 60% 40% 60%;
  }

  75% {
    border-radius: 50% 50% 40% 60%;
  }
}

.morphing-shape {
  animation: morph 8s ease-in-out infinite;
}

/* Text shimmer effect */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

.shimmer-text {
  background: linear-gradient(90deg, var(--text) 25%, var(--primary) 50%, var(--text) 75%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* Responsive animations */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {

  .card:hover,
  .feature-card:hover,
  .portfolio-card:hover {
    transform: translateY(-5px) scale(1.01);
  }

  .btn:hover {
    transform: translateY(-2px);
  }
}

/*
 ===== ENHANCED PARTICLE ANIMATIONS ===== */

.animated-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gradient-primary);
  border-radius: 50%;
  opacity: 0.4;
  animation: particleFloat 12s ease-in-out infinite;
}

.particle-1 {
  top: 10%;
  left: 20%;
  animation-delay: 0s;
  animation-duration: 15s;
}

.particle-2 {
  top: 70%;
  right: 25%;
  animation-delay: 3s;
  animation-duration: 18s;
}

.particle-3 {
  bottom: 20%;
  left: 15%;
  animation-delay: 6s;
  animation-duration: 12s;
}

.particle-4 {
  top: 30%;
  right: 40%;
  animation-delay: 9s;
  animation-duration: 20s;
}

.particle-5 {
  bottom: 40%;
  left: 60%;
  animation-delay: 12s;
  animation-duration: 16s;
}

/* Enhanced morphing shapes */
.morphing-shape {
  background: var(--gradient-primary);
  opacity: 0.15;
  filter: blur(1px);
  animation: morph 8s ease-in-out infinite, shapeFloat 15s ease-in-out infinite;
}

/* Professional loading animations */
.loading-wave {
  display: inline-block;
  animation: wave 1.5s ease-in-out infinite;
}

.loading-wave:nth-child(2) {
  animation-delay: 0.1s;
}

.loading-wave:nth-child(3) {
  animation-delay: 0.2s;
}

.loading-wave:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes wave {

  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-10px);
  }
}

/* Smooth page transitions */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  z-index: 10000;
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.page-transition.active {
  transform: translateX(0);
}

/* Enhanced button animations */
.btn-animated {
  position: relative;
  overflow: hidden;
  transform: perspective(1px) translateZ(0);
  transition: all 0.3s ease;
}

.btn-animated::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-secondary);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s ease-out;
}

.btn-animated:hover::before {
  transform: scaleX(1);
}

/* Professional card stack effect */
.card-stack {
  position: relative;
}

.card-stack::before,
.card-stack::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  z-index: -1;
  transition: all 0.3s ease;
}

.card-stack::before {
  transform: translateY(4px) translateX(4px);
  opacity: 0.7;
}

.card-stack::after {
  transform: translateY(8px) translateX(8px);
  opacity: 0.4;
}

.card-stack:hover::before {
  transform: translateY(2px) translateX(2px);
}

.card-stack:hover::after {
  transform: translateY(4px) translateX(4px);
}

/* Magnetic effect for interactive elements */
.magnetic {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Text reveal animation */
.text-reveal {
  overflow: hidden;
}

.text-reveal span {
  display: inline-block;
  transform: translateY(100%);
  animation: textReveal 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes textReveal {
  to {
    transform: translateY(0);
  }
}

/* Staggered text reveal */
.text-reveal span:nth-child(1) {
  animation-delay: 0.1s;
}

.text-reveal span:nth-child(2) {
  animation-delay: 0.2s;
}

.text-reveal span:nth-child(3) {
  animation-delay: 0.3s;
}

.text-reveal span:nth-child(4) {
  animation-delay: 0.4s;
}

.text-reveal span:nth-child(5) {
  animation-delay: 0.5s;
}

/* Professional image hover effects */
.image-hover-effect {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.image-hover-effect img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-hover-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.6s ease;
}

.image-hover-effect:hover::before {
  transform: translateX(100%) skewX(-15deg);
}

.image-hover-effect:hover img {
  transform: scale(1.1);
}

/* Advanced skill bar animations */
.skill-bar-advanced {
  position: relative;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.skill-bar-advanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  width: 0%;
  animation: skillBarFill 2s ease-out forwards;
}

.skill-bar-advanced::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-100%);
  animation: skillBarShine 2s ease-out 0.5s;
}

@keyframes skillBarFill {
  to {
    width: var(--skill-percentage);
  }
}

@keyframes skillBarShine {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Professional scroll indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--border);
  z-index: 1000;
}

.scroll-progress {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  transition: width 0.1s ease;
}

/* Enhanced mobile animations */
@media (max-width: 768px) {
  .particle {
    width: 4px;
    height: 4px;
  }

  .morphing-shape {
    opacity: 0.1;
  }

  .btn:hover {
    transform: translateY(-2px);
  }

  .card:hover {
    transform: translateY(-5px) scale(1.01);
  }
}

/*
 ===== ENHANCED PROJECTS PAGE STYLES ===== */

/* Projects Hero Section */
.projects-hero {
  position: relative;
  padding: 120px 0 80px;
  background: var(--bg);
  overflow: hidden;
}

.projects-hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.projects-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  margin: 0 0 24px 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.projects-subtitle {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 60px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.projects-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.projects-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.code-element {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 24px;
  color: var(--primary);
  opacity: 0.1;
  animation: codeFloat 20s ease-in-out infinite;
}

.code-element:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.code-element:nth-child(2) {
  top: 60%;
  right: 15%;
  animation-delay: 5s;
}

.code-element:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 10s;
}

.code-element:nth-child(4) {
  top: 40%;
  right: 30%;
  animation-delay: 15s;
}

/* Project Filters */
.projects-filters {
  padding: 60px 0;
  background: var(--bg-elev);
}

.filters-wrapper {
  text-align: center;
}

.filters-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 40px 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filter-btn:hover::before,
.filter-btn.active::before {
  opacity: 0.1;
}

.filter-btn:hover,
.filter-btn.active {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  border-color: var(--border-glow);
}

.filter-icon {
  font-size: 20px;
}

.filter-text {
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.filter-count {
  background: var(--gradient-primary);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  position: relative;
  z-index: 2;
}

/* Projects Showcase */
.projects-showcase {
  padding: 100px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-bottom: 80px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(20px);
  position: relative;
  transform: translateY(0);
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.project-card:hover::before {
  opacity: 0.03;
}

.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
  border-color: var(--border-glow);
}

.project-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--card), rgba(59, 130, 246, 0.05));
  border: 2px solid var(--primary);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.project-card.featured .project-image {
  height: 300px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(59, 130, 246, 0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-actions {
  display: flex;
  gap: 16px;
}

.action-btn {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
}

.action-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.1);
}

.action-btn .icon {
  font-size: 18px;
}

.project-status {
  position: absolute;
  top: 20px;
  right: 20px;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.featured {
  background: var(--gradient-primary);
  color: white;
}

.status-badge.new {
  background: var(--gradient-secondary);
  color: white;
}

.project-content {
  padding: 32px;
  position: relative;
  z-index: 2;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.project-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex: 1;
}

.project-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.stars {
  font-size: 14px;
}

.rating-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.project-description {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tech-tag {
  background: var(--card-glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-2px);
}

.project-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}

/* Load More Section */
.load-more-section {
  text-align: center;
  margin-top: 60px;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  transition: all 0.3s ease;
}

.load-more-btn:hover .btn-icon {
  transform: translateY(4px);
}

/* Projects CTA */
.projects-cta {
  padding: 100px 0;
  background: var(--bg-elev);
}

.projects-cta .cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.projects-cta h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 24px 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.projects-cta p {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 40px 0;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Enhanced Modal Styles */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.modal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  backdrop-filter: blur(20px);
}

.modal.open .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--primary);
  transform: scale(1.1);
}

.modal-header {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  padding: 40px;
  border-bottom: 1px solid var(--border);
}

.modal-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.modal-status {
  position: absolute;
  top: 12px;
  right: 12px;
}

.modal-info h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.modal-info p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.modal-body {
  padding: 40px;
}

.modal-section {
  margin-bottom: 32px;
}

.modal-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px 0;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 24px;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

.feature-list li:last-child {
  border-bottom: none;
}

.modal-footer {
  padding: 32px 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
}

.modal-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.modal-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Tooltip styles */
[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  z-index: 1000;
  animation: tooltipFade 0.3s ease;
  margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .project-card.featured {
    grid-column: span 1;
  }

  .filters {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .modal-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .modal-image {
    order: -1;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    min-width: 200px;
  }
}

/* Filter animations */
.project-card.filtered-out {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.project-card.filtered-in {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/ *=====ENHANCED SERVICES PAGE STYLES=====*/
/* Services Hero Section */
.services-hero {
  position: relative;
  padding: 120px 0 80px;
  background: var(--bg);
  overflow: hidden;
}

.services-hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.services-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  margin: 0 0 24px 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.services-subtitle {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 60px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.services-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.highlight-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: var(--border-glow);
}

.highlight-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.highlight-text {
  font-weight: 600;
  color: var(--text);
}

.services-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-icons {
  position: absolute;
  inset: 0;
}

.service-icon {
  position: absolute;
  font-size: 32px;
  opacity: 0.1;
  animation: serviceIconFloat 20s ease-in-out infinite;
}

.service-icon:nth-child(1) {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.service-icon:nth-child(2) {
  top: 70%;
  right: 20%;
  animation-delay: 4s;
}

.service-icon:nth-child(3) {
  bottom: 25%;
  left: 15%;
  animation-delay: 8s;
}

.service-icon:nth-child(4) {
  top: 35%;
  right: 35%;
  animation-delay: 12s;
}

.service-icon:nth-child(5) {
  bottom: 45%;
  right: 10%;
  animation-delay: 16s;
}

@keyframes serviceIconFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.1;
  }

  25% {
    transform: translateY(-20px) rotate(5deg);
    opacity: 0.2;
  }

  50% {
    transform: translateY(-40px) rotate(0deg);
    opacity: 0.15;
  }

  75% {
    transform: translateY(-20px) rotate(-5deg);
    opacity: 0.2;
  }
}

/* Services Main Section */
.services-main {
  padding: 100px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-top: 80px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(20px);
  overflow: hidden;
  transform: translateY(0);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 0.03;
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
  border-color: var(--border-glow);
}

.service-card.premium {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, var(--card), rgba(59, 130, 246, 0.05));
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
}

.service-card.premium:hover {
  transform: translateY(-20px) scale(1.03);
  box-shadow: 0 40px 100px rgba(59, 130, 246, 0.3);
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.service-icon-wrapper {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-icon-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-secondary);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.service-card:hover .service-icon-wrapper::before {
  opacity: 1;
}

.service-card:hover .service-icon-wrapper {
  transform: scale(1.1) rotate(10deg);
}

.service-icon-large {
  font-size: 32px;
  filter: grayscale(1) brightness(0) invert(1);
  position: relative;
  z-index: 2;
}

.service-badge {
  background: var(--gradient-primary);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: absolute;
  top: -10px;
  right: -10px;
}

.service-badge.new {
  background: var(--gradient-secondary);
}

.service-content {
  position: relative;
  z-index: 2;
}

.service-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-description {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 32px 0;
  font-size: 16px;
}

.service-features {
  margin-bottom: 32px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

.feature-item:hover {
  transform: translateX(8px);
  color: var(--primary);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-icon {
  width: 20px;
  height: 20px;
  background: var(--gradient-secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.feature-text {
  font-weight: 500;
  color: var(--text);
}

.service-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.tech-badge {
  background: var(--card-glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.3s ease;
}

.tech-badge:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-2px);
}

.service-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 32px;
  padding: 20px;
  background: var(--bg-elev);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.price-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.price-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.service-actions .btn {
  flex: 1;
  min-width: 140px;
  justify-content: center;
}

/* Services Process Section */
.services-process {
  padding: 100px 0;
  background: var(--bg-elev);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 80px;
}

.process-step {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.process-step::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.process-step:hover::before {
  opacity: 0.03;
}

.process-step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  border-color: var(--border-glow);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.process-step:hover .step-number {
  transform: scale(1.1) rotate(5deg);
}

.step-content {
  position: relative;
  z-index: 2;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.step-description {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Services CTA */
.services-cta {
  padding: 100px 0;
  background: var(--bg);
}

.services-cta .cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.services-cta h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 24px 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services-cta p {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 40px 0;
  line-height: 1.6;
}

.services-cta .cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Service Card Hover Effects */
.service-card {
  position: relative;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.service-card:hover::after {
  transform: scaleX(1);
}

/* Interactive Service Comparison */
.service-comparison {
  margin-top: 60px;
  padding: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
}

.comparison-header {
  text-align: center;
  margin-bottom: 40px;
}

.comparison-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px 0;
}

.comparison-table {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 20px;
  align-items: center;
}

.comparison-row {
  display: contents;
}

.comparison-feature {
  font-weight: 500;
  color: var(--text);
  padding: 16px;
}

.comparison-cell {
  text-align: center;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}

.comparison-check {
  color: var(--secondary);
  font-size: 18px;
}

.comparison-cross {
  color: var(--muted);
  font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .services-highlights {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .highlight-item {
    padding: 16px;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-step {
    flex-direction: column;
    text-align: center;
  }

  .service-actions {
    flex-direction: column;
  }

  .service-actions .btn {
    min-width: auto;
  }

  .services-cta .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .services-cta .cta-buttons .btn {
    min-width: 200px;
  }

  .comparison-table {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .comparison-row {
    display: grid;
    grid-template-columns: 1fr repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--bg-elev);
    border-radius: var(--radius);
  }
}

/* Advanced Service Card Animations */
.service-card-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.service-card-3d:hover {
  transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.02);
}

/* Service Statistics */
.service-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  margin: 40px 0;
  padding: 32px;
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.service-stat {
  text-align: center;
}

.stat-number-large {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  display: block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label-large {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 8px;
}

/* Loading states for service cards */
.service-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.service-card.loading::before {
  opacity: 0.1;
  animation: serviceCardPulse 1.5s ease-in-out infinite;
}

@keyframes serviceCardPulse {

  0%,
  100% {
    opacity: 0.1;
  }

  50% {
    opacity: 0.2;
  }
}

/ *=====ADDITIONAL SERVICES PAGE SECTIONS=====*/
/* Services Statistics Section */
.services-stats-section {
  padding: 100px 0;
  background: var(--bg-elev);
}

/* Services Comparison Section */
.services-comparison {
  padding: 100px 0;
  background: var(--bg);
}

/* Testimonials Section */
.services-testimonials {
  padding: 100px 0;
  background: var(--bg-elev);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 80px;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonial-card:hover::before {
  opacity: 0.03;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  border-color: var(--border-glow);
}

.testimonial-content {
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.testimonial-rating .stars {
  font-size: 16px;
}

.testimonial-rating .rating-text {
  font-weight: 600;
  color: var(--primary);
}

.testimonial-text {
  color: var(--muted);
  line-height: 1.6;
  font-style: italic;
  margin: 0;
  position: relative;
}

.testimonial-text::before {
  content: '"';
  font-size: 48px;
  color: var(--primary);
  position: absolute;
  top: -10px;
  left: -20px;
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-text {
  color: white;
  font-weight: 600;
  font-size: 18px;
}

.author-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px 0;
}

.author-info p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Services FAQ Section */
.services-faq {
  padding: 100px 0;
  background: var(--bg);
}

.services-faq .faq-grid {
  display: grid;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
  margin-top: 60px;
}

.services-faq .faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.services-faq .faq-item:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.services-faq .faq-question {
  width: 100%;
  padding: 24px 32px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.3s ease;
}

.services-faq .faq-question:hover {
  color: var(--primary);
}

.services-faq .faq-icon {
  font-size: 24px;
  font-weight: 300;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.services-faq .faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.services-faq .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.services-faq .faq-question[aria-expanded="true"]+.faq-answer {
  max-height: 200px;
}

.services-faq .faq-answer p {
  padding: 0 32px 24px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Enhanced Service Card Interactions */
.service-card-interactive {
  cursor: pointer;
  user-select: none;
}

.service-card-interactive:active {
  transform: translateY(-10px) scale(0.98);
}

/* Service Card Loading Animation */
@keyframes serviceCardLoad {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.service-card.animate-in {
  animation: serviceCardLoad 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Service Highlight Effects */
.service-highlight {
  position: relative;
  overflow: hidden;
}

.service-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.service-highlight:hover::before {
  left: 100%;
}

/* Advanced Testimonial Effects */
.testimonial-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.testimonial-card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(2deg);
}

/* Service Metrics Animation */
.service-metric {
  display: inline-block;
  transition: all 0.3s ease;
}

.service-metric:hover {
  transform: scale(1.1);
  color: var(--primary);
}

/* Interactive Service Selector */
.service-selector {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.service-selector-btn {
  padding: 12px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.service-selector-btn:hover,
.service-selector-btn.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

/* Service Timeline */
.service-timeline {
  position: relative;
  padding: 40px 0;
}

.service-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  flex: 1;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 0 40px;
  position: relative;
}

.timeline-marker {
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-timeline::before {
    left: 20px;
  }

  .timeline-item {
    flex-direction: row !important;
    padding-left: 50px;
  }

  .timeline-marker {
    left: 20px;
  }

  .timeline-content {
    margin: 0;
  }

  .service-selector {
    flex-direction: column;
    align-items: center;
  }

  .service-selector-btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

/* Service Card Micro-interactions */
.service-card .service-title {
  transition: all 0.3s ease;
}

.service-card:hover .service-title {
  transform: translateX(4px);
}

.service-card .feature-item {
  transition: all 0.2s ease;
}

.service-card:hover .feature-item {
  transform: translateX(8px);
}

.service-card:hover .feature-item:nth-child(odd) {
  transition-delay: 0.1s;
}

.service-card:hover .feature-item:nth-child(even) {
  transition-delay: 0.2s;
}

/* Advanced Hover States */
.service-card {
  position: relative;
  z-index: 1;
}

.service-card:hover {
  z-index: 10;
}

/* Service Card Glow Effect */
.service-card.premium {
  position: relative;
}

.service-card.premium::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(10px);
}

.service-card.premium:hover::after {
  opacity: 0.3;
}

/* =
==== AI FEATURES STYLES ===== */

/* AI Chat Widget */
.ai-chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  font-family: 'Inter', sans-serif;
}

.ai-chat-toggle {
  position: relative;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
  animation: aiPulse 2s ease-in-out infinite;
}

.ai-chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
}

.ai-icon {
  font-size: 24px;
  color: white;
}

.ai-pulse {
  position: absolute;
  inset: -4px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  opacity: 0;
  animation: aiPulseRing 2s ease-in-out infinite;
}

@keyframes aiPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes aiPulseRing {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.ai-tooltip {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: var(--card);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.ai-chat-toggle:hover .ai-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.ai-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 20px;
  border: 6px solid transparent;
  border-top-color: var(--card);
}

/* AI Chat Panel */
.ai-chat-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(20px) scale(0.9);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}

.ai-chat-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.ai-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-avatar-small {
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.ai-header-text h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.ai-status {
  margin: 0;
  font-size: 12px;
  color: var(--secondary);
}

.ai-close-btn {
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.ai-close-btn:hover {
  background: var(--border);
  color: var(--text);
}

/* AI Chat Messages */
.ai-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-message {
  display: flex;
  gap: 12px;
  max-width: 85%;
}

.ai-message-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-message-avatar {
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.ai-message-user .ai-message-avatar {
  background: var(--gradient-secondary);
}

.ai-message-content {
  background: var(--bg-elev);
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.ai-message-user .ai-message-content {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.ai-message-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

/* AI Quick Actions */
.ai-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ai-quick-btn {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-quick-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* AI Chat Input */
.ai-chat-input {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.ai-input-container {
  display: flex;
  gap: 8px;
  align-items: center;
}

#ai-message-input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: all 0.2s ease;
}

#ai-message-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ai-send-btn {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ai-send-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.send-icon {
  font-size: 14px;
}

/* AI Typing Indicator */
.ai-typing-indicator {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.typing-dot {
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  animation: typingDot 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

/* AI Notifications */
.ai-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  max-width: 350px;
  animation: slideInRight 0.3s ease;
}

.ai-notification.fade-out {
  animation: slideOutRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.ai-notification-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ai-notification-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.ai-notification-text {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
}

.ai-notification-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.ai-notification-close:hover {
  background: var(--border);
  color: var(--text);
}

/* AI Search Widget */
.ai-search-widget {
  position: relative;
  margin-left: 20px;
}

.ai-search-container {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 12px;
  transition: all 0.3s ease;
}

.ai-search-container:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#ai-search-input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  width: 200px;
}

#ai-search-input::placeholder {
  color: var(--muted);
}

#ai-search-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

#ai-search-btn:hover {
  color: var(--primary);
  background: var(--border);
}

.ai-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 4px;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* AI Enhanced Elements */
.ai-enhanced {
  position: relative;
}

.ai-enhanced::after {
  content: '🤖';
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 12px;
  background: var(--gradient-primary);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

/* AI Loading States */
.ai-loading {
  position: relative;
  overflow: hidden;
}

.ai-loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
  animation: aiLoading 1.5s ease-in-out infinite;
}

@keyframes aiLoading {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* Responsive AI Features */
@media (max-width: 768px) {
  .ai-chat-panel {
    width: 300px;
    height: 400px;
    bottom: 70px;
    right: -10px;
  }

  .ai-search-widget {
    display: none;
  }

  .ai-notification {
    max-width: 280px;
    right: 10px;
  }

  .ai-chat-toggle {
    width: 50px;
    height: 50px;
  }

  .ai-icon {
    font-size: 20px;
  }
}

/* AI Theme Adaptations */
html.light .ai-chat-toggle {
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2);
}

html.light .ai-chat-panel {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

html.light .ai-notification-content {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* AI Accessibility */
.ai-chat-widget [role="button"] {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.ai-chat-widget [role="button"]:focus {
  outline-color: var(--primary);
}

/* AI Performance Optimizations */
.ai-chat-panel {
  will-change: transform, opacity;
}

.ai-message {
  will-change: transform, opacity;
}

.ai-notification {
  will-change: transform, opacity;
}/* =
==== ENHANCED AI CHATBOT STYLES ===== */

/* AI Chat Widget */
.ai-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  font-family: 'Inter', sans-serif;
}

.ai-chat-toggle {
  position: relative;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 
    0 8px 32px rgba(102, 126, 234, 0.4),
    0 0 0 0 rgba(102, 126, 234, 0.7);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: aiPulse 3s ease-in-out infinite;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.ai-chat-toggle:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 
    0 16px 48px rgba(102, 126, 234, 0.6),
    0 0 0 8px rgba(102, 126, 234, 0.1);
}

.ai-chat-toggle.active {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  transform: scale(0.95);
}

.ai-icon {
  font-size: 28px;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.ai-chat-toggle:hover .ai-icon {
  transform: scale(1.1);
}

.ai-pulse {
  position: absolute;
  inset: -6px;
  border: 2px solid rgba(102, 126, 234, 0.6);
  border-radius: 50%;
  opacity: 0;
  animation: aiPulseRing 3s ease-in-out infinite;
}

@keyframes aiPulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 
      0 8px 32px rgba(102, 126, 234, 0.4),
      0 0 0 0 rgba(102, 126, 234, 0.7);
  }
  50% { 
    transform: scale(1.02);
    box-shadow: 
      0 12px 40px rgba(102, 126, 234, 0.5),
      0 0 0 4px rgba(102, 126, 234, 0.1);
  }
}

@keyframes aiPulseRing {
  0% { 
    transform: scale(1); 
    opacity: 0.8; 
  }
  100% { 
    transform: scale(1.4); 
    opacity: 0; 
  }
}

.ai-tooltip {
  position: absolute;
  bottom: 75px;
  right: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
  color: #1a202c;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(102, 126, 234, 0.2);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.ai-chat-toggle:hover .ai-tooltip {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ai-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 24px;
  border: 8px solid transparent;
  border-top-color: rgba(255,255,255,0.95);
}

/* Enhanced AI Chat Panel */
.ai-chat-panel {
  position: absolute;
  bottom: 85px;
  right: 0;
  width: 380px;
  height: 550px;
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(30px);
  box-shadow: 
    0 25px 80px rgba(0,0,0,0.15),
    0 0 0 1px rgba(255,255,255,0.1);
  transform: translateY(20px) scale(0.9);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ai-chat-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

/* Enhanced Chat Header */
.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.ai-chat-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: headerShine 3s ease-in-out infinite;
}

@keyframes headerShine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.ai-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.ai-avatar-small {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  animation: avatarPulse 2s ease-in-out infinite;
}

@keyframes avatarPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.ai-header-text h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.ai-status {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: statusBlink 2s ease-in-out infinite;
}

@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.ai-close-btn {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.ai-close-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1) rotate(90deg);
}

/* Enhanced Chat Messages */
.ai-chat-messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: linear-gradient(180deg, rgba(248,250,252,0.5), rgba(241,245,249,0.3));
}

.ai-chat-messages::-webkit-scrollbar {
  width: 6px;
}

.ai-chat-messages::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: 3px;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 3px;
}

.ai-message {
  display: flex;
  gap: 12px;
  max-width: 85%;
  animation: messageSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ai-message-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-message-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ai-message-user .ai-message-avatar {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.ai-message-content {
  background: white;
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  position: relative;
}

.ai-message-user .ai-message-content {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.ai-message-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}

.ai-message-user .ai-message-content p {
  color: white;
}

/* Enhanced Quick Actions */
.ai-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.ai-quick-btn {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #667eea;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-quick-btn:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Enhanced Chat Input */
.ai-chat-input {
  padding: 20px 24px;
  background: white;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.ai-input-container {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 25px;
  padding: 4px;
  transition: all 0.3s ease;
}

.ai-input-container:focus-within {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

#ai-message-input {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 20px;
  padding: 12px 16px;
  font-size: 14px;
  color: #374151;
  outline: none;
  font-family: 'Inter', sans-serif;
}

#ai-message-input::placeholder {
  color: #9ca3af;
}

.ai-send-btn {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ai-send-btn:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.ai-send-btn:active {
  transform: scale(0.95);
}

.send-icon {
  font-size: 16px;
  margin-left: 2px;
}

/* Enhanced Typing Indicator */
.ai-typing-indicator {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 20px;
  color: #667eea;
  font-size: 12px;
  font-weight: 500;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: #667eea;
  border-radius: 50%;
  animation: typingDot 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { 
    transform: translateY(0); 
    opacity: 0.4; 
  }
  30% { 
    transform: translateY(-8px); 
    opacity: 1; 
  }
}

/* Enhanced Notifications */
.ai-notification {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10001;
  max-width: 380px;
  animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-notification.fade-out {
  animation: slideOutRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideInRight {
  from { 
    transform: translateX(100%) scale(0.9); 
    opacity: 0; 
  }
  to { 
    transform: translateX(0) scale(1); 
    opacity: 1; 
  }
}

@keyframes slideOutRight {
  from { 
    transform: translateX(0) scale(1); 
    opacity: 1; 
  }
  to { 
    transform: translateX(100%) scale(0.9); 
    opacity: 0; 
  }
}

.ai-notification-content {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(30px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.ai-notification-icon {
  font-size: 24px;
  flex-shrink: 0;
  animation: notificationBounce 2s ease-in-out infinite;
}

@keyframes notificationBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.ai-notification-text {
  flex: 1;
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
  font-weight: 500;
}

.ai-notification-close {
  background: rgba(102, 126, 234, 0.1);
  border: none;
  color: #667eea;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.ai-notification-close:hover {
  background: #667eea;
  color: white;
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .ai-chat-panel {
    width: calc(100vw - 48px);
    height: 500px;
    bottom: 75px;
    right: -12px;
  }
  
  .ai-notification {
    max-width: calc(100vw - 48px);
    right: 24px;
  }
  
  .ai-chat-toggle {
    width: 56px;
    height: 56px;
  }
  
  .ai-icon {
    font-size: 24px;
  }
}

/* Dark Theme Adaptations */
html.dark .ai-chat-panel {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border-color: rgba(102, 126, 234, 0.3);
}

html.dark .ai-message-content {
  background: rgba(30, 41, 59, 0.8);
  color: #e2e8f0;
  border-color: rgba(102, 126, 234, 0.2);
}

html.dark .ai-message-content p {
  color: #e2e8f0;
}

html.dark .ai-input-container {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(102, 126, 234, 0.3);
}

html.dark #ai-message-input {
  color: #e2e8f0;
}

html.dark #ai-message-input::placeholder {
  color: #64748b;
}

html.dark .ai-notification-content {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border-color: rgba(102, 126, 234, 0.3);
}

html.dark .ai-notification-text {
  color: #e2e8f0;
}
/*
 Advanced AI Features */
.ai-voice-btn, .ai-file-btn {
  width: 36px;
  height: 36px;
  background: var(--card-glass);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 14px;
}

.ai-voice-btn:hover, .ai-file-btn:hover {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.1);
}

.ai-voice-btn.listening {
  background: var(--gradient-accent);
  animation: pulse 1s ease-in-out infinite;
}

/* Smart Suggestions Dropdown */
.ai-suggestions-dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
  margin-bottom: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.ai-suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--border);
}

.ai-suggestion-item:last-child {
  border-bottom: none;
}

.ai-suggestion-item:hover {
  background: var(--gradient-primary);
  color: white;
}

/* File Modal */
.ai-file-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(10px);
}

.ai-file-modal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ai-file-modal-content h3 {
  margin: 0 0 16px 0;
  color: var(--text);
  font-size: 18px;
}

.ai-file-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.ai-file-item {
  padding: 16px;
  background: var(--card-glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-file-item:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-2px);
}

.ai-file-desc {
  font-size: 12px;
  opacity: 0.8;
}

.ai-file-close {
  width: 100%;
  padding: 12px;
  background: var(--gradient-secondary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.ai-file-close:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

/* AI Notifications */
.ai-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1500;
  max-width: 350px;
  animation: slideInRight 0.3s ease;
}

.ai-notification-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
}

.ai-notification-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.ai-notification-text {
  flex: 1;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

.ai-notification-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.ai-notification-close:hover {
  color: var(--text);
}

.ai-notification.fade-out {
  animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Enhanced Message Styling */
.ai-message-time {
  font-size: 10px;
  opacity: 0.6;
  margin-top: 4px;
}

/* Responsive Enhancements */
@media (max-width: 480px) {
  .ai-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .ai-file-modal-content {
    margin: 20px;
    width: calc(100% - 40px);
  }
  
  .ai-quick-actions {
    grid-template-columns: 1fr 1fr;
  }
}

/* Performance Optimizations */
.ai-chatbot-widget * {
  will-change: transform, opacity;
}

.ai-chat-panel {
  contain: layout style paint;
}

.ai-chat-messages {
  contain: layout style;
}/* 
Export Button */
.ai-export-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  margin-right: 8px;
}

.ai-export-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Theme Adaptations */
.ai-chatbot-widget[data-theme="light"] .ai-chat-panel {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
}

.ai-chatbot-widget[data-theme="light"] .ai-chat-messages {
  background: rgba(248, 250, 252, 0.8);
}

.ai-chatbot-widget[data-theme="light"] .ai-message-bot .ai-message-content {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a202c;
}

/* Keyboard Shortcut Hint */
.ai-keyboard-hint {
  position: absolute;
  bottom: -30px;
  right: 0;
  font-size: 10px;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.ai-chatbot-widget:hover .ai-keyboard-hint {
  opacity: 1;
}

/* Enhanced Animations */
@keyframes chatbotPulse {
  0%, 100% {
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.6);
  }
}

.ai-chat-toggle:not(.active) {
  animation: chatbotPulse 3s ease-in-out infinite;
}

/* Accessibility Improvements */
.ai-chatbot-widget [role="button"]:focus,
.ai-chatbot-widget button:focus,
.ai-chatbot-widget input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .ai-chat-toggle {
    border: 2px solid var(--text);
  }
  
  .ai-chat-panel {
    border: 2px solid var(--text);
  }
  
  .ai-message-content {
    border: 1px solid var(--text);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .ai-chat-toggle,
  .ai-chat-panel,
  .ai-message,
  .ai-typing-dot {
    animation: none !important;
    transition: none !important;
  }
}/
* Additional Header Fixes for All Pages */
.header-inner {
  width: 100%;
  box-sizing: border-box;
}

.site-header {
  width: 100%;
  box-sizing: border-box;
}

/* Ensure proper container behavior */
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Fix any potential flexbox issues */
.site-nav {
  min-width: 0; /* Prevent flex item from overflowing */
}

.nav-menu {
  flex-wrap: nowrap;
  overflow: hidden;
}

/* Ensure logo doesn't shrink too much */
.logo-section {
  min-width: 120px;
}

/* Fix header actions alignment */
.header-actions {
  white-space: nowrap;
}

/* Additional mobile fixes */
@media (max-width: 768px) {
  .header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .nav-menu {
    width: 100%;
    left: 0;
    right: 0;
  }
}

/* Ensure header is always on top */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
}

/* Fix any potential overflow issues */
body {
  overflow-x: hidden;
}

.header-inner * {
  box-sizing: border-box;
}/
* Enhanced Animations and Interactions */

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Enhanced reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations */
[data-reveal="fade-up"] {
  transform: translateY(40px);
}

[data-reveal="fade-left"] {
  transform: translateX(-40px);
}

[data-reveal="fade-right"] {
  transform: translateX(40px);
}

[data-reveal="fade-in"] {
  transform: scale(0.9);
}

[data-reveal].visible {
  transform: translateY(0) translateX(0) scale(1);
}

/* Enhanced button animations */
.btn, .cta-button {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.btn::before, .cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before, .cta-button:hover::before {
  left: 100%;
}

/* Enhanced card animations */
.card, .feature-card, .portfolio-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.card:hover, .feature-card:hover, .portfolio-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(59, 130, 246, 0.1);
}

/* Enhanced navigation animations */
.nav-link {
  position: relative;
  overflow: hidden;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Enhanced form animations */
input, textarea, select {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus, textarea:focus, select:focus {
  transform: scale(1.02);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Enhanced loading animations */
@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

/* Enhanced hover effects for images */
img {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card img:hover,
.portfolio-card img:hover,
.feature-card img:hover {
  transform: scale(1.05);
  filter: brightness(1.1) saturate(1.2);
}

/* Enhanced text animations */
.typing-text {
  overflow: hidden;
  border-right: 2px solid var(--primary);
  white-space: nowrap;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--primary); }
}

/* Enhanced progress animations */
.progress-bar {
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-image: linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    transparent 75%,
    transparent
  );
  background-size: 50px 50px;
  animation: move 2s linear infinite;
}

@keyframes move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}

/* Enhanced floating animations */
.floating-element {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Enhanced glow effects */
.glow-on-hover {
  transition: all 0.3s ease;
}

.glow-on-hover:hover {
  box-shadow: 
    0 0 20px rgba(59, 130, 246, 0.3),
    0 0 40px rgba(59, 130, 246, 0.2),
    0 0 60px rgba(59, 130, 246, 0.1);
}

/* Enhanced pulse animations */
.pulse-element {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Enhanced bounce animations */
.bounce-element {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -30px, 0);
  }
  70% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

/* Enhanced performance optimizations */
.card, .feature-card, .portfolio-card, .btn, .nav-link {
  will-change: transform, box-shadow;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Enhanced focus states for accessibility */
*:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Enhanced selection styles */
::selection {
  background: var(--primary);
  color: white;
}

::-moz-selection {
  background: var(--primary);
  color: white;
}/* Enha
nced Sticky Header Support */

/* Ensure sticky positioning works in all browsers */
.site-header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
}

/* Fix for Safari sticky positioning */
@supports (-webkit-backdrop-filter: blur(1px)) {
  .site-header {
    -webkit-backdrop-filter: blur(24px) saturate(180%);
  }
}

/* Ensure header stays above all content */
.site-header {
  z-index: 9999 !important;
}

/* Fix for mobile Safari sticky issues */
@supports (-webkit-touch-callout: none) {
  .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
  }
  
  /* Add padding to body to compensate for fixed header */
  body {
    padding-top: 70px;
  }
  
  /* Adjust main content */
  main {
    margin-top: 0;
  }
}

/* Enhanced header transitions */
.site-header {
  transition: 
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
}

/* Smooth hide/show animation */
.site-header.hidden {
  transform: translateY(-100%);
}

.site-header:not(.hidden) {
  transform: translateY(0);
}

/* Ensure header content doesn't shift */
.header-inner {
  transition: none;
}

/* Fix for header flickering */
.site-header * {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Enhanced backdrop blur for better visibility */
.site-header.scrolled {
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(1px)) {
  .site-header {
    background: rgba(10, 14, 26, 0.95) !important;
  }
  
  html.light .site-header {
    background: rgba(255, 255, 255, 0.95) !important;
  }
}

/* Fix header on print */
@media print {
  .site-header {
    position: static !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }
}

/* Ensure header works with CSS Grid and Flexbox layouts */
.site-header {
  grid-area: header;
  flex-shrink: 0;
}

/* Fix for header in full-screen mode */
.site-header:-webkit-full-screen {
  position: static !important;
}

.site-header:-moz-full-screen {
  position: static !important;
}

.site-header:fullscreen {
  position: static !important;
}/* For
ce Sticky Header - Override any conflicts */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
}

/* Ensure parent containers don't interfere */
body, html {
  overflow-x: hidden;
}

/* Make sure no parent has overflow hidden that could break sticky */
* {
  /* Don't set overflow: hidden on containers that contain sticky elements */
}

/* Specific sticky positioning for different browsers */
@supports (position: sticky) {
  .site-header {
    position: sticky !important;
  }
}

@supports (position: -webkit-sticky) {
  .site-header {
    position: -webkit-sticky !important;
  }
}

/* Fallback for browsers that don't support sticky */
@supports not (position: sticky) {
  .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
  }
  
  /* Add top margin to body to compensate */
  body {
    margin-top: 70px;
  }
}/* A
dvanced Projects Page Enhancements */

/* Search Container */
.search-container {
  margin: 2rem 0;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 12px 50px 12px 16px;
  border: 2px solid var(--border);
  border-radius: 25px;
  background: var(--card);
  color: var(--text);
  font-size: 16px;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

.search-btn, .clear-search {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.clear-search {
  right: 40px;
}

.search-btn:hover, .clear-search:hover {
  background: var(--card-glass);
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  margin-top: 4px;
}

.suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.suggestion-item:hover {
  background: var(--card-glass);
}

.suggestion-title {
  font-weight: 500;
  color: var(--text);
}

.suggestion-category {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sorting and View Controls */
.sorting-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.sort-options {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.view-options {
  display: flex;
  gap: 8px;
}

.view-btn {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Enhanced Project Grid Views */
.projects-grid.view-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.projects-grid.view-list .project-card {
  display: flex;
  flex-direction: row;
  max-width: none;
}

.projects-grid.view-list .project-image {
  width: 200px;
  flex-shrink: 0;
}

.projects-grid.view-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

/* Enhanced Project Modal */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.modal-container {
  position: relative;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.project-modal.active .modal-container {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--gradient-primary);
  color: white;
}

.modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.modal-content {
  max-height: calc(90vh - 100px);
  overflow-y: auto;
}

.modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.modal-body {
  padding: 0;
}

.project-hero {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.project-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.project-badges {
  display: flex;
  gap: 8px;
}

.badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.featured {
  background: var(--gradient-accent);
  color: white;
}

.badge.difficulty {
  background: var(--gradient-secondary);
  color: white;
}

.badge.status {
  background: var(--gradient-primary);
  color: white;
}

.project-details {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  padding: 2rem;
}

.info-section {
  margin-bottom: 2rem;
}

.info-section h3 {
  margin: 0 0 1rem 0;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 600;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

.tech-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tech-category h4 {
  margin: 0 0 8px 0;
  color: var(--text);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-tag {
  padding: 4px 8px;
  background: var(--card-glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 12px;
  color: var(--text);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.metric-item {
  text-align: center;
  padding: 1rem;
  background: var(--card-glass);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.metric-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.testimonial {
  background: var(--card-glass);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 0 12px 12px 0;
  margin: 0;
}

.testimonial p {
  margin: 0 0 1rem 0;
  font-style: italic;
  color: var(--text);
}

.testimonial cite {
  color: var(--muted);
  font-size: 14px;
}

.project-sidebar {
  background: var(--card-glass);
  border-radius: 12px;
  padding: 1.5rem;
  height: fit-content;
  border: 1px solid var(--border);
}

.project-meta {
  margin-bottom: 2rem;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.meta-item:last-child {
  border-bottom: none;
}

.meta-label {
  font-size: 14px;
  color: var(--muted);
}

.meta-value {
  font-weight: 500;
  color: var(--text);
}

.project-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  justify-content: center;
}

.action-btn.primary {
  background: var(--gradient-primary);
  color: white;
}

.action-btn.secondary {
  background: var(--gradient-secondary);
  color: white;
}

.action-btn.tertiary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Project Card Enhancements */
.project-card {
  position: relative;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s ease;
}

.project-card.animate-in {
  transform: translateY(0);
  opacity: 1;
}

.compare-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.compare-btn:hover {
  background: var(--primary);
  transform: scale(1.1);
}

/* Ripple Effect */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Bookmark States */
.bookmark-btn.bookmarked {
  background: var(--gradient-accent) !important;
  color: white !important;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-container {
    width: 95%;
    max-height: 95vh;
  }
  
  .project-details {
    grid-template-columns: 1fr;
  }
  
  .project-sidebar {
    order: -1;
  }
  
  .modal-header {
    padding: 1rem;
  }
  
  .modal-title {
    font-size: 1.2rem;
  }
}

/* Enhanced Filter Buttons */
.filter-btn {
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.filter-btn:hover::before {
  left: 100%;
}

/* Notification Styles */
.notification {
  animation: slideInRight 0.3s ease;
}

.notification.success {
  border-left: 4px solid var(--secondary);
}

.notification.error {
  border-left: 4px solid #ef4444;
}

.notification.info {
  border-left: 4px solid var(--primary);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}/* Adv
anced Portfolio Features CSS */

/* Command Palette */
.command-palette {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.command-palette.active {
  opacity: 1;
  visibility: visible;
}

.palette-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.palette-container {
  position: relative;
  width: 90%;
  max-width: 600px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.command-palette.active .palette-container {
  transform: scale(1);
}

.palette-header {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.palette-input {
  flex: 1;
  border: none;
  background: none;
  color: var(--text);
  font-size: 1.1rem;
  outline: none;
}

.palette-input::placeholder {
  color: var(--muted);
}

.palette-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.palette-close:hover {
  background: var(--card-glass);
  color: var(--text);
}

.palette-content {
  max-height: 400px;
  overflow-y: auto;
  padding: 1rem;
}

.palette-section {
  margin-bottom: 1.5rem;
}

.palette-section h3 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.command-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.command-item:hover {
  background: var(--card-glass);
}

.command-icon {
  font-size: 1.2rem;
}

.command-text {
  flex: 1;
  color: var(--text);
  font-weight: 500;
}

.command-shortcut {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--card-glass);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Progress Indicator */
.progress-indicator {
  cursor: pointer;
}

.progress-circle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring {
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 0.3s ease;
}

.progress-text {
  position: absolute;
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
}

/* Skip Links */
.skip-links {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 10000;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 6px;
}

/* Developer Mode */
.dev-panel {
  font-family: 'Courier New', monospace;
}

.dev-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--gradient-primary);
  color: white;
}

.dev-header h3 {
  margin: 0;
  font-size: 1rem;
}

.dev-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
}

.dev-content {
  padding: 1rem;
  height: calc(100% - 60px);
  overflow-y: auto;
}

.dev-section {
  margin-bottom: 1rem;
}

.dev-section h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text);
}

#perf-display {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Screenshot Mode */
.screenshot-mode .ai-chatbot-widget,
.screenshot-mode .progress-indicator,
.screenshot-mode .offline-indicator,
.screenshot-mode .dev-panel {
  display: none !important;
}

/* Shortcuts Modal */
.shortcuts-modal {
  position: fixed;
  inset: 0;
  z-index: 15000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.shortcuts-modal.active {
  opacity: 1;
  visibility: visible;
}

.shortcuts-modal .modal-container {
  width: 90%;
  max-width: 500px;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.shortcuts-modal.active .modal-container {
  transform: scale(1);
}

.shortcuts-grid {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.shortcut-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

kbd {
  background: var(--card-glass);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text);
}

/* Print Styles */
@media print {
  .site-header,
  .ai-chatbot-widget,
  .progress-indicator,
  .command-palette,
  .dev-panel,
  .skip-links {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .card,
  .feature-card,
  .project-card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}

/* Accessibility Enhancements */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --bg: #000000;
    --text: #ffffff;
    --border: #ffffff;
    --card: #1a1a1a;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .progress-ring {
    transition: none !important;
  }
}

/* Focus Indicators */
*:focus {
  outline: 2px solid var(--primary) !important;
  outline-offset: 2px !important;
}

/* Interactive Elements */
[role="button"]:focus,
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary) !important;
  outline-offset: 2px !important;
}

/* Offline Indicator Animation */
.offline-indicator {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100px);
  }
  to {
    transform: translateY(0);
  }
}

/* Enhanced Tooltips */
[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  margin-bottom: 8px;
  animation: tooltipFadeIn 0.3s ease;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Performance Optimizations */
.command-palette,
.project-modal,
.shortcuts-modal {
  will-change: opacity, visibility;
}

.palette-container,
.modal-container {
  will-change: transform;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .command-palette {
    padding-top: 5vh;
  }
  
  .palette-container {
    width: 95%;
  }
  
  .shortcuts-grid {
    grid-template-columns: 1fr;
  }
  
  .dev-panel {
    width: calc(100% - 40px) !important;
    height: 300px !important;
    left: 20px !important;
    bottom: 20px !important;
  }
}