* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --bg: #0a0a0f;
  --bg-gradient: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
  --surface: #151521;
  --surface2: #1e1e2e;
  --surface3: #2a2a3e;
  --border: #2a2a3e;
  --border-light: #3a3a4e;
  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --muted: #94a3b8;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.6);
}

body { 
  background: var(--bg-gradient); 
  color: var(--text); 
  font-family: 'Inter', system-ui, sans-serif; 
  line-height: 1.6; 
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* NAV */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 2rem; background: rgba(21, 21, 33, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); 
  position: sticky; top: 0; z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.nav-logo { 
  font-size: 1.4rem; 
  font-weight: 800; 
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.nav-logo span { 
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a { 
  color: var(--muted); 
  font-size: 0.95rem; 
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.nav-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}
.nav-links a:hover { 
  color: var(--text);
  transform: translateY(-1px);
}
.nav-links a:hover::before {
  opacity: 0.1;
}

/* HERO */
.hero {
  text-align: center; 
  padding: 6rem 2rem 4rem;
  background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at bottom, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
              linear-gradient(135deg, var(--bg) 0%, var(--surface) 100%);
  position: relative;
  overflow: hidden;
  z-index: 1;
  perspective: 1000px;
  transform-style: preserve-3d;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
  z-index: -1;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}
.hero h1 { 
  font-size: clamp(2.5rem, 6vw, 4rem); 
  font-weight: 900; 
  margin-bottom: 1.5rem; 
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  transform: translateZ(50px);
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateZ(50px) rotateX(0deg) rotateY(0deg); }
  25% { transform: translateZ(80px) rotateX(2deg) rotateY(2deg); }
  50% { transform: translateZ(60px) rotateX(-1deg) rotateY(-1deg); }
  75% { transform: translateZ(70px) rotateX(1deg) rotateY(-2deg); }
}

.hero h1 span { 
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  transform: translateZ(20px);
  animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.3)); }
  50% { filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.5)); }
}

.hero p { 
  color: var(--text-secondary); 
  font-size: 1.2rem; 
  max-width: 600px; 
  margin: 0 auto 2.5rem; 
  line-height: 1.7;
  font-weight: 400;
  position: relative;
  z-index: 1;
  transform: translateZ(30px);
  animation: paraFloat 8s ease-in-out infinite;
}

@keyframes paraFloat {
  0%, 100% { transform: translateZ(30px) translateY(0); }
  50% { transform: translateZ(40px) translateY(-5px); }
}
.badge { 
  display: inline-flex; 
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.2));
  color: var(--primary-light); 
  border: 1px solid var(--border-light); 
  padding: 0.5rem 1.2rem; 
  border-radius: 999px; 
  font-size: 0.85rem; 
  font-weight: 600;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
  animation: pulse 2s ease-in-out infinite;
  transform: translateZ(25px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}
@keyframes pulse {
  0%, 100% { transform: translateZ(25px) scale(1); }
  50% { transform: translateZ(35px) scale(1.05); }
}

/* 3D PARTICLES */
.particles-3d {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.particle-3d {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, var(--primary), var(--secondary));
  border-radius: 50%;
  left: var(--x);
  top: var(--y);
  transform: translateZ(var(--z));
  animation: float3d 8s ease-in-out infinite;
  animation-delay: var(--delay);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

@keyframes float3d {
  0%, 100% { 
    transform: translateZ(var(--z)) translateY(0) rotateX(0deg) rotateY(0deg);
    opacity: 0.3;
  }
  25% { 
    transform: translateZ(calc(var(--z) + 20px)) translateY(-20px) rotateX(10deg) rotateY(15deg);
    opacity: 0.8;
  }
  50% { 
    transform: translateZ(calc(var(--z) + 10px)) translateY(-10px) rotateX(-5deg) rotateY(-10deg);
    opacity: 0.6;
  }
  75% { 
    transform: translateZ(calc(var(--z) + 15px)) translateY(-15px) rotateX(5deg) rotateY(-5deg);
    opacity: 0.4;
  }
}

/* BUTTONS */
.btn {
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem; 
  border-radius: var(--radius); 
  font-size: 1rem;
  font-weight: 600; 
  cursor: pointer; 
  border: none; 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transform-style: preserve-3d;
  transform: translateZ(0);
}
.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;
}
.btn:hover::before {
  left: 100%;
}
.btn-primary { 
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); 
  color: white; 
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  transform: translateZ(10px);
}
.btn-primary:hover { 
  transform: translateZ(20px) translateY(-3px) rotateX(-5deg);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}
.btn-outline { 
  background: transparent; 
  color: var(--text); 
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  transform: translateZ(5px);
}
.btn-outline:hover { 
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  transform: translateZ(15px) translateY(-2px) rotateX(-3deg);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);
}
.btn-success { 
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%); 
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transform: translateZ(10px);
}
.btn-success:hover { 
  transform: translateZ(20px) translateY(-3px) rotateX(-5deg);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}
.btn-lg { 
  padding: 1.1rem 2.5rem; 
  font-size: 1.1rem; 
  font-weight: 700;
  transform: translateZ(15px);
}
.btn-lg:hover {
  transform: translateZ(25px) translateY(-4px) rotateX(-6deg);
}

/* SECTION */
.section { 
  padding: 5rem 1rem; 
  max-width: 1400px; 
  margin: 0 auto; 
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 2rem;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
  opacity: 0.5;
}
.section-title { 
  font-size: 2.5rem; 
  font-weight: 800; 
  margin-bottom: 1rem; 
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.section-sub { 
  color: var(--text-secondary); 
  margin-bottom: 3rem; 
  font-size: 1.2rem;
  text-align: center;
  font-weight: 500;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* GRID */
.projects-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
  gap: 2rem; 
  position: relative;
}

/* CARD */
.card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%); 
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); 
  overflow: hidden; 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: var(--shadow-md);
  transform-style: preserve-3d;
  transform: translateZ(0);
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover { 
  transform: translateY(-12px) translateZ(30px) rotateX(8deg) rotateY(-5deg); 
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}
.card:hover::before {
  transform: scaleX(1);
}
.card-thumb { 
  width: 100%; 
  height: 220px; 
  object-fit: cover; 
  display: block; 
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(10px);
}
.card:hover .card-thumb {
  transform: translateZ(20px) scale(1.05);
}
.card-body { 
  padding: 1.8rem; 
  position: relative;
  z-index: 1;
  transform: translateZ(15px);
}
.card-title { 
  font-size: 1.3rem; 
  font-weight: 700; 
  margin-bottom: 0.6rem; 
  color: var(--text);
  line-height: 1.3;
}
.card-desc { 
  color: var(--text-secondary); 
  font-size: 0.95rem; 
  margin-bottom: 1.5rem; 
  line-height: 1.6; 
  font-weight: 400;
}
.card-tech { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 0.6rem; 
  margin-bottom: 1.5rem; 
}
.tech-tag {
  background: linear-gradient(135deg, var(--surface3), var(--surface2)); 
  color: var(--primary-light); 
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem; 
  border-radius: 999px; 
  border: 1px solid var(--border-light);
  font-weight: 500;
  transition: all 0.3s;
  transform: translateZ(5px);
}
.tech-tag:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  transform: translateZ(10px) translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.card-footer { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  transform: translateZ(10px);
}
.price-container { 
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateZ(8px);
}
.discount-badge {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  display: inline-block;
  align-self: flex-start;
  animation: pulse 2s ease-in-out infinite;
  transform: translateZ(5px);
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}
.price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.price-current {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.price-original {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: line-through;
  opacity: 0.7;
}
.price-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 400;
  opacity: 0.8;
}
.card-actions { 
  display: flex; 
  gap: 0.8rem; 
  z-index: 2;
  position: relative;
  transform: translateZ(12px);
}

/* PROJECT DETAIL PAGE */
.detail-hero { 
  padding: 4rem 1rem; 
  max-width: 1400px; 
  margin: 0 auto; 
}
.detail-grid { 
  display: grid; 
  grid-template-columns: 1fr 380px; 
  gap: 3rem; 
  align-items: start; 
}
.demo-frame { 
  width: 100%; 
  height: 450px; 
  border-radius: var(--radius-lg); 
  border: 1px solid var(--border); 
  background: var(--surface2); 
  box-shadow: var(--shadow-lg);
}
.detail-sidebar { 
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%); 
  border: 1px solid var(--border); 
  border-radius: var(--radius-lg); 
  padding: 2rem; 
  position: sticky; 
  top: 100px; 
  box-shadow: var(--shadow-md);
}
.detail-price { 
  font-size: 2.5rem; 
  font-weight: 900; 
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem; 
}
.feature-list { 
  list-style: none; 
  margin: 1.5rem 0; 
}
.feature-list li { 
  padding: 0.6rem 0; 
  color: var(--text-secondary); 
  font-size: 0.95rem; 
  display: flex; 
  align-items: center; 
  gap: 0.8rem; 
  font-weight: 400;
}
.feature-list li::before { 
  content: '✓'; 
  color: var(--success); 
  font-weight: 700; 
  font-size: 1rem;
}
.divider { 
  border: none; 
  border-top: 1px solid var(--border); 
  margin: 1.5rem 0; 
}

/* MODAL */
.modal-overlay {
  display: none; 
  position: fixed; 
  inset: 0; 
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  z-index: 1000; 
  align-items: center; 
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-overlay.active { display: flex; }
.modal {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%); 
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); 
  padding: 2.5rem; 
  max-width: 600px; 
  width: 90%;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal h2 { 
  margin-bottom: 0.8rem; 
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}
.modal p { 
  color: var(--text-secondary); 
  font-size: 0.95rem; 
  margin-bottom: 2rem; 
  line-height: 1.6;
}
.modal-actions { 
  display: flex; 
  gap: 1rem; 
  justify-content: flex-end; 
}

/* SUCCESS PAGE */
.success-container { 
  max-width: 720px; 
  margin: 5rem auto; 
  padding: 3rem; 
  text-align: center; 
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.success-icon { 
  font-size: 5rem; 
  margin-bottom: 2rem; 
  animation: bounce 1s ease-in-out;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}
.download-box {
  background: linear-gradient(135deg, var(--surface2) 0%, var(--surface3) 100%); 
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); 
  padding: 2rem; 
  margin: 2.5rem 0; 
  text-align: left;
  box-shadow: var(--shadow-md);
}
.instructions-box {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%); 
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); 
  padding: 2rem; 
  text-align: left;
  font-family: 'Courier New', monospace; 
  font-size: 0.9rem; 
  white-space: pre-wrap; 
  color: var(--text);
  max-height: 350px; 
  overflow-y: auto;
  box-shadow: var(--shadow-sm);
}

/* STATS */
.stats { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; padding: 2rem; }
.stat { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-label { color: var(--muted); font-size: 0.85rem; }

/* FOOTER */
footer { 
  border-top: 1px solid var(--border); 
  padding: 3rem 2rem; 
  text-align: center; 
  color: var(--text-secondary); 
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  margin-top: 5rem;
}
footer p {
  margin: 0.5rem 0;
  font-weight: 400;
}
footer p:first-child {
  font-weight: 600;
  color: var(--text);
}

.nav-links a.active {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

/* PROJECT FILTERS AND SORTING */
.projects-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(21, 21, 33, 0.4);
  border: 1px solid rgba(42, 42, 62, 0.3);
  border-radius: var(--radius-lg);
  gap: 2rem;
  flex-wrap: wrap;
  backdrop-filter: blur(10px);
}

.filter-group,
.sort-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.filter-group label,
.sort-group label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
}

.filter-btn {
  background: rgba(42, 42, 62, 0.4);
  border: 1px solid rgba(74, 74, 94, 0.3);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
  backdrop-filter: blur(5px);
}

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

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: var(--primary);
  color: white;
}

.sort-select {
  background: rgba(42, 42, 62, 0.4);
  border: 1px solid rgba(74, 74, 94, 0.3);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  backdrop-filter: blur(5px);
}

.sort-select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
}

/* CONTACT PAGE STYLES */
.contact-container {
  max-width: 1400px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form-section {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.9rem 1.2rem;
  background: var(--surface3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.contact-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: all 0.3s;
  box-shadow: var(--shadow-md);
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.contact-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  flex-shrink: 0;
}

.contact-details h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.contact-details p {
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
  font-weight: 500;
}

.contact-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
}

.faq-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}

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

.faq-question {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-question:hover {
  background: var(--surface2);
}

.faq-answer {
  padding: 0 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ENHANCED FOOTER STYLES */
footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  padding: 0;
  margin-top: 5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 600;
}

.social-links a:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  transform: translateY(-2px);
  border-color: var(--primary);
}

.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-section ul li a::before {
  content: '→';
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s;
}

.footer-section ul li a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.footer-section ul li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-content p {
  color: var(--text);
  font-weight: 600;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* STEPS GRID */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  background: rgba(21, 21, 33, 0.6);
  border: 1px solid rgba(42, 42, 62, 0.5);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  transform: translateZ(0);
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover {
  transform: translateY(-12px) translateZ(25px) rotateX(5deg) rotateY(-3deg);
  border-color: var(--primary);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.3);
}

.step-card:hover::before {
  transform: scaleX(1);
}

.step-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
}

.step-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
  animation: bounce3d 2s ease-in-out infinite;
  transform: translateZ(15px);
}

.step-card:nth-child(2) .step-icon {
  animation-delay: 0.3s;
}

.step-card:nth-child(3) .step-icon {
  animation-delay: 0.6s;
}

@keyframes bounce3d {
  0%, 20%, 50%, 80%, 100% { transform: translateZ(15px) translateY(0) rotateX(0deg); }
  40% { transform: translateZ(25px) translateY(-10px) rotateX(5deg); }
  60% { transform: translateZ(20px) translateY(-5px) rotateX(2deg); }
}

.step-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.3;
}

.step-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.step-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.step-features span {
  color: var(--primary-light);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-features span::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

/* MOBILE MENU STYLES */
.mobile-menu-btn {
  display: none;
}

.nav-links.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1rem;
  gap: 0.5rem;
  box-shadow: var(--shadow-lg);
}

/* Add smooth transitions for all navigation links */
.nav-links a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Add loading animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Add fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .projects-grid { grid-template-columns: 1fr; }
  nav { padding: 1rem; }
  .nav-links { gap: 1rem; }
  .hero { padding: 4rem 1rem 2rem; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .section { padding: 3rem 1rem; }
  .section-title { font-size: 1.8rem; }
  .modal { padding: 1.5rem; }
  .success-container { margin: 2rem 1rem; padding: 2rem 1.5rem; }
  
  /* Contact page responsive */
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-form-section { padding: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-content { padding: 3rem 1.5rem 2rem; }
  .footer-bottom-content { flex-direction: column; text-align: center; }
  
  /* Filters responsive */
  .projects-controls { flex-direction: column; gap: 1rem; }
  .filter-group, .sort-group { width: 100%; justify-content: space-between; }
  
  /* Steps responsive */
  .steps-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .step-card { padding: 2rem; }
  .step-icon { font-size: 2.5rem; }
  .step-title { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
  .hero { padding: 2.5rem 1rem 1.5rem; }
  .hero h1 { font-size: clamp(1.4rem, 8vw, 2rem); }
  .hero p { font-size: 0.88rem; }
  .badge { font-size: 0.75rem; padding: 0.3rem 0.8rem; }
  .btn { padding: 0.7rem 1.2rem; font-size: 0.85rem; }
  .btn-lg { padding: 0.85rem 1.5rem; font-size: 0.9rem; }

  /* 2 cards per row on mobile */
  .projects-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .card-thumb { height: 120px; }
  .card-body { padding: 0.7rem; }
  .card-title { font-size: 0.82rem; margin-bottom: 0.3rem; }
  .card-desc { font-size: 0.72rem; margin-bottom: 0.6rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card-tech { gap: 0.3rem; margin-bottom: 0.6rem; }
  .tech-tag { font-size: 0.65rem; padding: 0.15rem 0.5rem; }
  .card-footer { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding-top: 0.6rem; }
  .price-current { font-size: 1.1rem; }
  .price-original { font-size: 0.75rem; }
  .discount-badge { font-size: 0.6rem; }
  .card-actions { width: 100%; }
  .card-actions .btn { flex: 1; justify-content: center; padding: 0.5rem 0.3rem; font-size: 0.75rem; }

  .detail-sidebar { padding: 1.5rem; }
  .video-filters { gap: 0.3rem; }
  .filter-btn { font-size: 0.75rem; padding: 0.3rem 0.8rem; }
  .section { padding: 1.5rem 0.75rem; }
  .section-title { font-size: 1.3rem; }
  .section-sub { font-size: 0.9rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-content { padding: 2rem 1rem 1.5rem; }
  .stats { gap: 1rem; padding: 1rem; }
  .projects-controls { flex-direction: column; gap: 0.75rem; padding: 1rem; }
  .filter-group, .sort-group { width: 100%; justify-content: space-between; }
}

/* Disable heavy 3D transforms on touch devices to prevent jank */
@media (hover: none) {
  .card:hover { transform: none; box-shadow: var(--shadow-md); }
  .btn-primary:hover { transform: none; }
  .btn-outline:hover { transform: none; }
  .btn-success:hover { transform: none; }
  .btn-lg:hover { transform: none; }
  .step-card:hover { transform: translateY(-4px); }
  .hero h1 { animation: none; transform: none; }
  .hero p { animation: none; transform: none; }
  .badge { animation: none; transform: none; }
}

/* ── LEARN / VIDEO SECTION ─────────────────────────────────── */
.video-filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem;
}
.filter-btn {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); padding: 0.4rem 1rem; border-radius: 999px;
  font-size: 0.85rem; cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary); border-color: var(--primary); color: white;
}

.videos-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem;
}

.video-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: transform 0.2s, border-color 0.2s;
}
.video-card:hover { transform: translateY(-4px); border-color: var(--primary); }

.video-thumb-wrap {
  position: relative; cursor: pointer; overflow: hidden;
}
.video-thumb {
  width: 100%; height: 180px; object-fit: cover; display: block;
  transition: transform 0.3s;
}
.video-card:hover .video-thumb { transform: scale(1.04); }

.play-btn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.35); color: white; font-size: 2.5rem;
  opacity: 0; transition: opacity 0.2s;
}
.video-thumb-wrap:hover .play-btn { opacity: 1; }

.video-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.75); color: white; font-size: 0.75rem;
  padding: 0.15rem 0.5rem; border-radius: 4px;
}

.video-info { padding: 1rem; }
.video-category {
  font-size: 0.75rem; color: var(--primary); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.video-title { font-size: 1rem; font-weight: 700; margin: 0.3rem 0 0.4rem; }
.video-desc { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }

/* VIDEO MODAL */
.video-modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); width: 90%; max-width: 860px; overflow: hidden;
}
.video-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--border);
  font-weight: 600; font-size: 0.95rem;
}
.video-close-btn {
  background: none; border: none; color: var(--muted); font-size: 1.1rem;
  cursor: pointer; padding: 0.2rem 0.5rem; border-radius: 4px; transition: color 0.2s;
}
.video-close-btn:hover { color: var(--text); }
.video-embed-wrap {
  position: relative; padding-bottom: 56.25%; height: 0;
}
.video-embed-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
}

/* QR PAYMENT MODAL */
.pay-modal { max-width: 420px; width: 90%; }
.qr-img {
  width: 220px; height: 220px; object-fit: contain;
  border-radius: var(--radius); border: 2px solid var(--border);
  background: white; padding: 8px;
}
.txn-input {
  width: 100%; padding: 0.75rem 1rem; background: white;
  border: 1px solid var(--border); border-radius: 8px;
  color: #111; font-size: 1rem; outline: none;
  transition: border-color 0.2s;
}
.txn-input::placeholder { color: #888; }
.txn-input:focus { border-color: var(--primary); }

/* ── BLOG CARDS ─────────────────────────────────────────────── */
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.blog-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.35s;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.2);
}

.blog-card:hover::before { transform: scaleX(1); }

.blog-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.blog-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.blog-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}

.blog-card-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

@media (max-width: 600px) {
  .blog-preview-grid { grid-template-columns: 1fr; }
}

/* ── FLOATING WHATSAPP BUTTON ── */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.6);
}
.wa-float svg { width: 30px; height: 30px; }
