/* ===================== CSS VARIABLES ===================== */
:root {
  --bg-primary: #030712;
  --bg-secondary: #0a0f1a;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(99, 102, 241, 0.5);
  --border-glow: rgba(59, 130, 246, 0.6);
  --text-primary: #FFFFFF;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --accent-blue: #3B82F6;
  --accent-violet: #6366F1;
  --accent-cyan: #06B6D4;
  --accent-gradient: linear-gradient(135deg, #3B82F6 0%, #6366F1 50%, #8B5CF6 100%);
  --accent-gradient-subtle: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.1));
  --accent-glow: rgba(59, 130, 246, 0.4);
  --accent-glow-strong: rgba(99, 102, 241, 0.6);
  --whatsapp: #25D366;
  --github-bg: #24292e;
  --instagram-gradient: linear-gradient(135deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d, #f56040);
  --email-color: #EA4335;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
  --shadow-glow-strong: 0 0 60px rgba(99, 102, 241, 0.25);
}

/* ===================== RESET & BASE ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}

/* ===================== CUSTOM CURSOR ===================== */
.custom-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-violet);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
}

.cursor-circle {
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent-blue);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  opacity: 0.8;
}

.cursor-circle.hovered {
  width: 60px;
  height: 60px;
  border-color: var(--accent-violet);
  opacity: 1;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

/* Hide default cursor on interactive elements */
a:not(.btn-demo-final), button:not(.btn-demo-final), .service-card, .project-card, .nav-links a, .btn:not(.btn-demo-final), input, textarea {
  cursor: none !important;
}

/* Exception for active demo buttons to allow clicking */
.btn-demo-final.active {
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 9999 !important;
  position: relative;
}

/* ===================== GLOW BACKGROUND ===================== */
.glow-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
  animation: float-glow 20s ease-in-out infinite;
}

.glow-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-blue);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.glow-orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-violet);
  bottom: -150px;
  right: -150px;
  animation-delay: -7s;
}

.glow-orb-3 {
  width: 400px;
  height: 400px;
  background: var(--accent-cyan);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes float-glow {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 40px) scale(0.95);
  }
}

/* ===================== CANVAS BACKGROUND ===================== */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

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

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(3, 7, 18, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(3, 7, 18, 0.9);
  border-bottom-color: var(--border-hover);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  position: relative;
  transition: var(--transition);
}

.logo-image {
  height: 32px;
  width: auto;
  display: block;
  max-width: 150px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
}

.logo-highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient-subtle);
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: var(--transition);
}

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

.nav-links a:hover::before {
  opacity: 1;
}

.nav-cta {
  background: var(--accent-gradient);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: var(--transition);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow-strong);
}

.nav-cta:hover::before {
  opacity: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================== HERO SECTION ===================== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 100px;
  text-align: center;
}

.hero-content {
  max-width: 960px;
  animation: fadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 28px;
  padding-bottom: 8px;
  letter-spacing: -0.04em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 60px rgba(99, 102, 241, 0.3));
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  font-family: var(--font-family);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--accent-glow-strong);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient-subtle);
  opacity: 0;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover::before {
  opacity: 1;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-whatsapp::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover::before {
  opacity: 1;
}

.btn-sm {
  padding: 12px 24px;
  font-size: 0.9rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===================== PROJECT CARD BUTTONS ===================== */
.btn-project {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  border: none;
  font-family: var(--font-family);
  cursor: none !important;
}

.btn-project.active {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-project.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  border-color: var(--accent-violet);
  color: var(--accent-violet);
}

.btn-project.disabled {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  pointer-events: none;
}

/* ===================== SECTIONS ===================== */
section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 48px;
  text-align: center;
  letter-spacing: -0.02em;
}

/* ===================== SERVICES SECTION ===================== */
.services {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient-subtle);
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--radius-lg);
}

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

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

.service-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--surface), var(--surface-hover));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--accent-blue);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  color: var(--accent-violet);
  border-color: var(--border-hover);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

/* ===================== PROJECTS SECTION ===================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
  position: relative;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  display: flex;
  flex-direction: column;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient-subtle);
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--radius-lg);
  z-index: 0;
}

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

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

.project-preview {
  height: 220px;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.project-icon {
  font-size: 4.5rem;
  opacity: 0.9;
  filter: drop-shadow(0 4px 20px rgba(99, 102, 241, 0.3));
}

.project-info {
  padding: 36px;
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.project-info p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
  font-size: 1rem;
}

/* ===================== PROCESS SECTION ===================== */
.process {
  background: var(--bg-secondary);
}

.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.step-number {
  width: 80px;
  height: 80px;
  background: rgba(99, 102, 241, 0.1);
  border: 2px solid var(--accent-violet);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-violet);
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.step-content {
  flex: 1;
  padding-top: 8px;
}

.step-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.step-content p {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 1.05rem;
}

/* ===================== FAQ SECTION ===================== */
.faq {
  background: var(--bg-primary);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-details {
  width: 100%;
}

.faq-question {
  padding: 24px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  color: var(--accent-violet);
}

.faq-question i {
  transition: var(--transition);
  color: var(--accent-blue);
}

.faq-details[open] .faq-question i {
  transform: rotate(180deg);
  color: var(--accent-violet);
}

.faq-answer {
  padding: 0 32px 24px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 1rem;
  animation: fadeIn 0.3s ease;
}

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

/* ===================== CONTACT SECTION ===================== */
.contact {
  background: var(--bg-secondary);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-size: 1.1rem;
  line-height: 1.75;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient-subtle);
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--radius-lg);
}

.contact-form:hover::before {
  opacity: 0.5;
}

.form-group {
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-status {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  display: none;
  position: relative;
  z-index: 1;
}

.form-status.success {
  display: block;
  background: rgba(37, 211, 102, 0.1);
  color: var(--whatsapp);
  border: 1px solid rgba(37, 211, 102, 0.2);
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ===================== ABOUT CARD STYLES ===================== */
.about-wrapper {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 48px;
  align-items: start;
}

.about-photo {
  width: 100%;
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.about-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient-subtle);
  opacity: 0.5;
}

.about-photo-placeholder {
  font-size: 4rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.about-skills {
  margin-top: 32px;
}

.about-skills h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.skill-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}

.skill-item i {
  color: var(--accent-violet);
  flex-shrink: 0;
  margin-top: 2px;
}

.skill-item div {
  flex: 1;
}

.skill-item:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.skill-item strong {
  color: var(--text-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.skill-item span {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  display: block;
}

.about-story p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.about-story strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-specializations {
  margin-top: 32px;
}

.specialization-group {
  margin-bottom: 24px;
}

.specialization-group h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 8px 16px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-violet);
  transition: var(--transition);
}

.skill-tag:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent-violet);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

@media (max-width: 1024px) {
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ===================== CARD FOOTER ===================== */
.card-footer {
  padding: 24px 36px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  z-index: 1;
}

/* ===================== DEMO CARD FOOTER ===================== */
.demo-card-footer {
    margin-top: auto;
    padding-top: 20px;
    width: 100%;
}

.btn-demo-final {
    width: 100%;
    padding: 10px 15px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    color: #ffffff;
    cursor: none !important;
}

.btn-demo-final.active {
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer !important;
    pointer-events: auto;
}

.btn-demo-final.active:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-demo-final.disabled {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.3);
    border-style: dashed;
    cursor: not-allowed;
}

/* ===================== SOCIAL BUTTONS ===================== */
.contact-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  border: none;
  font-family: var(--font-family);
  position: relative;
  overflow: hidden;
  cursor: none !important;
}

.btn-social::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn-social:hover::before {
  opacity: 1;
}

.btn-github {
  background: var(--github-bg);
  color: #fff;
  box-shadow: 0 4px 16px rgba(36, 41, 46, 0.3);
}

.btn-github:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(36, 41, 46, 0.5), 0 0 30px rgba(255, 255, 255, 0.1);
}

.btn-instagram {
  background: var(--instagram-gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(193, 53, 132, 0.3);
}

.btn-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(193, 53, 132, 0.5), 0 0 30px rgba(131, 58, 180, 0.4);
}

.btn-email {
  background: var(--email-color);
  color: #fff;
  box-shadow: 0 4px 16px rgba(234, 67, 53, 0.3);
}

.btn-email:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(234, 67, 53, 0.5), 0 0 30px rgba(234, 67, 53, 0.4);
}

/* ===================== FOOTER ===================== */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
}

/* ===================== REVEAL ANIMATION ===================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .hero-content {
    animation: none;
  }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  section {
    padding: 80px 0;
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .nav-container {
    padding: 12px 16px;
  }

  .nav-logo {
    font-size: 1.2rem;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .service-card,
  .project-info {
    padding: 24px;
  }
}
