/* ==========================================
   ABDALRHMAN AHMED - Digital Marketing Expert
   Premium Dark Theme Design System
   Brand Guidelines V3.1 Aligned
   ========================================== */

/* ==========================================
   1. IMPORTS & RESET
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800;900&display=swap');

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

/* ==========================================
   2. CSS CUSTOM PROPERTIES
   Brand Colors: Electric Blue #2E4BF2 + Violet #5B3FE8
   Neutrals: Deep Black #0B0B0D, Near Black #111317, Graphite #1D1F23
   Text: Soft White #F5F6F8, Cool Gray #8A8D93
   ========================================== */
:root {
  --bg-primary: #0B0B0D;
  --bg-secondary: #111317;
  --bg-tertiary: #1D1F23;
  --bg-card: rgba(17, 19, 23, 0.85);
  --bg-glass: rgba(17, 19, 23, 0.6);
  --bg-glass-border: rgba(46, 75, 242, 0.12);

  --accent-primary: #2E4BF2;
  --accent-secondary: #5B3FE8;
  --accent-tertiary: #4338CA;
  --accent-gradient: linear-gradient(135deg, #2E4BF2, #5B3FE8);
  --accent-gradient-hover: linear-gradient(135deg, #4060FF, #7054F0);
  --accent-gradient-text: linear-gradient(135deg, #2E4BF2, #5B3FE8, #2E4BF2);
  --accent-gradient-orange: linear-gradient(135deg, #2E4BF2, #5B3FE8);

  --text-primary: #F5F6F8;
  --text-secondary: #8A8D93;
  --text-muted: #555860;

  --border-color: rgba(46, 75, 242, 0.12);
  --border-glow: rgba(46, 75, 242, 0.4);

  --glow-primary: rgba(46, 75, 242, 0.25);
  --glow-secondary: rgba(91, 63, 232, 0.25);
  --glow-tertiary: rgba(67, 56, 202, 0.25);

  --font-en: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ar: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: var(--font-en);
  --font-body: var(--font-body-en);

  --nav-height: 80px;
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px var(--glow-primary);
  --shadow-glow-sm: 0 0 20px var(--glow-primary);
}

html[lang="ar"] {
  --font-display: var(--font-ar);
  --font-body: var(--font-ar);
}

/* ==========================================
   3. BASE STYLES
   ========================================== */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

section[id], header[id] {
  scroll-margin-top: calc(var(--nav-height) + 15px);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a:hover {
  color: var(--accent-primary);
}

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

ul, ol {
  list-style: none;
}

::selection {
  background: var(--accent-primary);
  color: #fff;
}

/* ==========================================
   4. TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.gradient-text {
  background: var(--accent-gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

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

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

/* ==========================================
   5. LAYOUT
   ========================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 7rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-secondary);
  margin-bottom: 1rem;
  position: relative;
  padding: 0.4rem 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: var(--bg-glass);
}

.section-title {
  margin-bottom: 1rem;
}

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

/* ==========================================
   6. BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px var(--glow-primary);
}

.btn-primary:hover {
  background: var(--accent-gradient-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--glow-primary);
  color: #fff;
}

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

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

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--glow-primary);
}

.btn-orange {
  background: var(--accent-gradient-orange);
  color: #fff;
  box-shadow: 0 4px 20px var(--glow-tertiary);
}

.btn-orange:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--glow-tertiary);
  color: #fff;
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 1.1rem 2.8rem;
  font-size: 1.1rem;
}

/* ==========================================
   7. NAVBAR
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(11, 11, 13, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  position: relative;
}

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

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

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

.navbar-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.25rem;
  gap: 0.15rem;
}

.lang-btn {
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  background: transparent;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  font-family: var(--font-display);
}

.lang-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 2px 10px var(--glow-primary);
}

/* Hamburger */
.navbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.navbar-hamburger span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
  border-radius: 2px;
}

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

.navbar-hamburger.active span:nth-child(2) {
  opacity: 0;
}

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

/* ==========================================
   8. HERO SECTION
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(46, 75, 242, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(91, 63, 232, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 80%, rgba(67, 56, 202, 0.08) 0%, transparent 50%);
  animation: heroGradient 15s ease infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg-primary) 100%);
  pointer-events: none;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-secondary);
  width: fit-content;
  backdrop-filter: blur(10px);
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 10px #00ff88;
  animation: pulse 2s ease infinite;
}

.hero-name {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.1;
}

.hero-title {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: var(--text-secondary);
}

.hero-title .typing-text {
  color: var(--accent-secondary);
  font-weight: 600;
  border-right: 3px solid var(--accent-secondary);
  padding-right: 4px;
  animation: blink 0.8s infinite;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.8;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Hero Image */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo-wrapper {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo-wrapper::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent-gradient);
  z-index: -1;
  animation: rotateGlow 6s linear infinite;
}

.hero-photo-wrapper::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: var(--accent-gradient);
  z-index: -2;
  opacity: 0.15;
  filter: blur(30px);
  animation: pulseGlow 4s ease infinite;
}

.hero-photo-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-primary);
}

/* Hero Stats */
.hero-stats {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

/* ==========================================
   9. GLASS CARDS
   ========================================== */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.glass-card:hover {
  border-color: rgba(46, 75, 242, 0.3);
  box-shadow: 0 8px 32px rgba(46, 75, 242, 0.1);
  transform: translateY(-5px);
}

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

/* ==========================================
   10. SERVICE CARDS
   ========================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-base);
  transform-origin: left;
}

.service-card:hover {
  border-color: rgba(108, 99, 255, 0.25);
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(108, 99, 255, 0.12);
}

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

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  transition: all var(--transition-base);
}

.service-card:hover .service-icon {
  background: var(--accent-gradient);
  border-color: transparent;
  box-shadow: 0 0 20px var(--glow-primary);
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================
   11. PORTFOLIO CARDS
   ========================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(108, 99, 255, 0.15);
  border-color: rgba(108, 99, 255, 0.3);
}

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

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-image .portfolio-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.8rem;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.portfolio-content p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.portfolio-stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-secondary);
  padding: 0.3rem 0.7rem;
  background: rgba(0, 212, 255, 0.08);
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 212, 255, 0.15);
}

/* Portfolio Detail Page */
.portfolio-detail {
  padding-top: calc(var(--nav-height) + 3rem);
}

.portfolio-detail-header {
  margin-bottom: 3rem;
}

.portfolio-detail-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.portfolio-detail-tag {
  padding: 0.4rem 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.portfolio-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 3rem 0;
}

.portfolio-detail-section h3,
.portfolio-detail-section h4 {
  margin-bottom: 1rem;
  color: var(--accent-secondary);
  font-size: 1.2rem;
}

.portfolio-detail-section ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.portfolio-detail-section ul li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.portfolio-detail-section ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

.tools-used {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.tool-tag {
  padding: 0.4rem 1rem;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 500;
}

/* ==========================================
   12. BLOG CARDS
   ========================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(108, 99, 255, 0.1);
  border-color: rgba(108, 99, 255, 0.25);
}

.blog-card-image {
  height: 200px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-card-category {
  color: var(--accent-primary);
  font-weight: 600;
}

.blog-card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  transition: color var(--transition-fast);
}

.blog-card:hover .blog-card-content h3 {
  color: var(--accent-secondary);
}

.blog-card-content p {
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition-fast);
}

.blog-card:hover .read-more {
  gap: 0.8rem;
}

/* ==========================================
   13. CONSULTATION / PRICING
   ========================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  transition: all var(--transition-base);
  position: relative;
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--accent-primary);
  transform: scale(1.05);
  box-shadow: 0 0 60px var(--glow-primary);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 1.5rem;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: 0 12px 40px rgba(108, 99, 255, 0.12);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.pricing-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.pricing-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 1rem 0;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  -webkit-text-fill-color: var(--text-secondary);
}

.pricing-features {
  text-align: left;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ==========================================
   14. FORMS
   ========================================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--glow-primary);
}

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

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

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239999bb' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* ==========================================
   15. CTA SECTION
   ========================================== */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 30% 50%, rgba(108, 99, 255, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-box h2 {
  position: relative;
  margin-bottom: 1rem;
}

.cta-box p {
  position: relative;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.cta-buttons {
  position: relative;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ==========================================
   16. EXPERIENCE TIMELINE
   ========================================== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 15px var(--glow-primary);
  z-index: 1;
}

.timeline-content {
  width: 45%;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--accent-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.timeline-content h4 {
  font-size: 0.95rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 0.9rem;
}

/* ==========================================
   17. CONTACT SECTION
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

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

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.contact-card:hover {
  border-color: var(--accent-primary);
  transform: translateX(5px);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-card h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.contact-card p,
.contact-card a {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-form {
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px var(--glow-primary);
}

/* ==========================================
   18. FOOTER
   ========================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 0;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
}

.footer-brand p {
  font-size: 0.95rem;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--accent-primary);
  padding-left: 5px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}


/* ==========================================
   20. FILTER BUTTONS
   ========================================== */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
}

/* ==========================================
   21. TESTIMONIALS
   ========================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--accent-primary);
  opacity: 0.2;
  line-height: 1;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.testimonial-author h4 {
  font-size: 0.95rem;
}

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

/* ==========================================
   22. FAQ / ACCORDION
   ========================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item.active {
  border-color: var(--accent-primary);
}

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

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent-primary);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

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

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ==========================================
   23. SKILLS & TOOLS
   ========================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.skill-group {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.skill-group h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--accent-secondary);
}

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

.skill-group ul li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-group ul li::before {
  content: '▸';
  color: var(--accent-primary);
  font-size: 0.7rem;
}

/* ==========================================
   24. MOBILE MENU OVERLAY
   ========================================== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 13, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu .navbar-link {
  font-size: 1.5rem;
  font-weight: 600;
}

/* ==========================================
   25. SCROLL TO TOP
   ========================================== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  border: none;
  box-shadow: 0 4px 20px var(--glow-primary);
}

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

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--glow-primary);
}

/* ==========================================
   26. RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-content {
    align-items: center;
  }

  .hero-photo-wrapper {
    width: 280px;
    height: 280px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-content {
    width: calc(100% - 50px);
    margin-left: 50px !important;
  }

  .portfolio-detail-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.2rem;
  }

  .navbar-menu {
    display: none;
  }

  .navbar-hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 2rem;
  }

  .hero-container {
    gap: 1.5rem;
  }

  .hero-image {
    order: -1;
  }

  .hero-photo-wrapper {
    width: 200px;
    height: 200px;
  }

  .hero-name {
    font-size: 2rem;
    letter-spacing: -1px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 2rem 1.2rem 0;
  }

  .stat-item {
    padding: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .services-grid,
  .portfolio-grid,
  .blog-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .cta-box {
    padding: 2.5rem 1.5rem;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    gap: 0.4rem;
  }

  .filter-btn {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
  }

  .navbar-actions .btn {
    display: none;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

/* ==========================================
   27. DIGITAL PRODUCTS PAGE
   ========================================== */

/* Products Hero Enhancements */
.products-hero {
  position: relative;
}

.products-hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(46, 75, 242, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: pulseGlow 4s ease infinite;
}

.products-hero-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.product-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.product-hero-badge:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-sm);
}

.product-hero-badge-icon {
  font-size: 1.2rem;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(46, 75, 242, 0.18), 0 0 40px rgba(91, 63, 232, 0.12);
  border-color: rgba(46, 75, 242, 0.4);
}

/* Product Badges */
.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: badgePulse 3s ease infinite;
}

.product-badge-popular {
  background: var(--accent-gradient);
  color: #fff;
}

.product-badge-new {
  background: linear-gradient(135deg, #00d4ff, #0091ff);
  color: #fff;
}

.product-badge-bundle {
  background: linear-gradient(135deg, #ff6b35, #ff3366);
  color: #fff;
}

.product-badge-free {
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  color: #0a0a0f;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(46, 75, 242, 0.3); }
  50% { box-shadow: 0 4px 20px rgba(46, 75, 242, 0.5); }
}

/* Product Image */
.product-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 260px;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover .product-image-wrapper img {
  transform: scale(1.08);
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover .product-image-placeholder {
  transform: scale(1.08);
}

.product-placeholder-icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 0 20px rgba(46, 75, 242, 0.5));
}

.product-placeholder-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 13, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(4px);
}

.product-card:hover .product-image-overlay {
  opacity: 1;
}

.product-preview-btn {
  transform: translateY(20px);
  transition: transform var(--transition-base) !important;
}

.product-card:hover .product-preview-btn {
  transform: translateY(0);
}

/* Product Info */
.product-info {
  padding: 1.5rem;
}

.product-category-tag {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  margin-bottom: 0.8rem;
}

.product-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  transition: color var(--transition-fast);
}

.product-card:hover .product-info h3 {
  color: var(--accent-secondary);
}

.product-info > p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

/* Product Features Tags */
.product-features {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.product-feature {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  background: rgba(46, 75, 242, 0.08);
  border: 1px solid rgba(46, 75, 242, 0.15);
  border-radius: var(--radius-sm);
  color: var(--accent-primary);
  transition: all var(--transition-fast);
}

.product-card:hover .product-feature {
  background: rgba(46, 75, 242, 0.15);
  border-color: rgba(46, 75, 242, 0.3);
}

/* Product Footer / Pricing */
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.product-price-current {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-price-original {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-price-free {
  font-size: 1.6rem;
  font-weight: 800;
  color: #00ff88;
}

/* Why My Products Grid */
.products-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-why-card {
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.product-why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-base);
  transform-origin: center;
}

.product-why-card:hover {
  transform: translateY(-8px);
  border-color: rgba(46, 75, 242, 0.3);
  box-shadow: 0 12px 40px rgba(46, 75, 242, 0.1);
}

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

.product-why-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.product-why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.product-why-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================
   27.5 PRODUCT DETAILS MODAL
   ========================================== */

.product-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 14, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.product-modal-dialog {
  background: var(--bg-card);
  border: 1px solid rgba(46, 75, 242, 0.25);
  border-radius: var(--radius-xl);
  max-width: 940px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.85), 0 0 60px rgba(46, 75, 242, 0.2);
  transform: scale(0.92) translateY(24px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) var(--bg-card);
}

.product-modal-backdrop.active .product-modal-dialog {
  transform: scale(1) translateY(0);
}

.product-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  transition: all var(--transition-base);
}

html[dir="rtl"] .product-modal-close {
  right: auto;
  left: 1.25rem;
}

.product-modal-close:hover {
  background: var(--accent-primary);
  color: #fff;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 20px rgba(46, 75, 242, 0.6);
}

.product-modal-body {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2.5rem;
  padding: 2.5rem;
}

/* Modal Media Column */
.product-modal-media {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product-modal-image-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  aspect-ratio: 1 / 1;
}

.product-modal-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-modal-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

html[dir="rtl"] .product-modal-badge {
  left: auto;
  right: 1rem;
}

.product-modal-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.product-spec-item {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.product-spec-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-spec-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.product-guarantee-box {
  background: rgba(0, 255, 136, 0.05);
  border: 1px dashed rgba(0, 255, 136, 0.35);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.product-guarantee-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

/* Modal Content Column */
.product-modal-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product-modal-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-modal-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.product-modal-category {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-modal-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.product-modal-rating-stars {
  color: #ffb800;
  font-size: 0.95rem;
}

.product-modal-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
}

.product-modal-subtitle {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.5;
}

.product-modal-price-card {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: fit-content;
}

.product-modal-price-current {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-modal-price-current.is-free {
  color: #00ff88;
  -webkit-text-fill-color: #00ff88;
}

.product-modal-price-original {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-modal-discount-pill {
  background: rgba(0, 255, 136, 0.15);
  color: #00ff88;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.product-modal-description {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.product-modal-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-modal-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
}

.product-modal-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.product-modal-feature-icon {
  color: #00ff88;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 3px;
}

.product-modal-audience {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent-primary);
}

html[dir="rtl"] .product-modal-audience {
  border-left: none;
  border-right: 3px solid var(--accent-primary);
}

.product-modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.product-modal-actions .btn {
  flex: 1;
  min-width: 170px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-size: 0.95rem;
}

.btn-whatsapp-product {
  background: #25D366 !important;
  color: #ffffff !important;
  border: none !important;
}

.btn-whatsapp-product:hover {
  background: #1fa851 !important;
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.45);
  transform: translateY(-2px);
}

/* Responsive Modal */
@media (max-width: 860px) {
  .product-modal-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1.25rem 1.5rem;
  }

  .product-modal-image-box {
    max-height: 280px;
  }

  .product-modal-close {
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }

  html[dir="rtl"] .product-modal-close {
    right: auto;
    left: 1rem;
  }
}

/* ==========================================
   28. ENHANCED PORTFOLIO ANIMATIONS
   ========================================== */

/* Portfolio card 3D tilt hover */
.portfolio-card {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.portfolio-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, transparent 40%, rgba(46, 75, 242, 0.08) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 1;
  pointer-events: none;
}

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

/* Glow line on top of portfolio card on hover */
.portfolio-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: left;
  z-index: 2;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.portfolio-card:hover::after {
  transform: scaleX(1);
}

/* Portfolio stats chips animate on hover */
.portfolio-stat {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portfolio-card:hover .portfolio-stat {
  background: rgba(46, 75, 242, 0.15);
  border-color: rgba(46, 75, 242, 0.3);
  transform: translateY(-2px);
}

/* Portfolio category badge glow on hover */
.portfolio-card:hover .portfolio-category {
  box-shadow: 0 4px 15px rgba(46, 75, 242, 0.4);
}

/* Products page responsive */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .products-why-grid {
    grid-template-columns: 1fr;
  }

  .products-hero-badges {
    flex-direction: column;
    align-items: center;
  }
}

/* ==========================================
   29. UTILITY CLASSES
   ========================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.hidden { display: none !important; }
.visible { display: block !important; }
