/* assets/css/web-design.css */

:root {
  --wd-primary: #4F46E5;
  --wd-primary-hover: #4338CA;
  --wd-dark: #0f172a;
  --wd-dark-muted: #1e293b;
  --wd-light: #f8fafc;
  --wd-gray: #64748b;
  --wd-glass-bg: rgba(255, 255, 255, 0.7);
  --wd-glass-border: rgba(255, 255, 255, 0.4);
  --wd-glass-dark-bg: rgba(15, 23, 42, 0.7);
  --wd-shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
  --wd-radius: 16px;
  --wd-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-1: linear-gradient(135deg, #4F46E5 0%, #06b6d4 100%);
  --gradient-2: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

/* Base resets for WD pages */
.wd-page {
  font-family: 'Inter', sans-serif;
  color: var(--wd-dark);
  background-color: var(--wd-light);
  line-height: 1.6;
}

/* Heroes */
.wd-hero-bold {
  background: var(--wd-dark);
  color: white;
  padding: 120px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.wd-hero-bold h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.wd-hero-bold p {
  font-size: 1.25rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 40px;
}

.wd-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 120px 5%;
  background: linear-gradient(to right, #f8fafc, #e2e8f0);
}
.wd-hero-split h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--wd-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}
.wd-hero-split p {
  font-size: 1.125rem;
  color: var(--wd-gray);
  margin-bottom: 32px;
}
.wd-hero-image img {
  width: 100%;
  border-radius: var(--wd-radius);
  box-shadow: var(--wd-shadow);
  transform: translateY(0);
  transition: var(--wd-transition);
}
.wd-hero-image img:hover {
  transform: translateY(-10px);
}

/* Glassmorphism Cards */
.wd-glass-section {
  padding: 100px 5%;
  background: url('https://www.transparenttextures.com/patterns/cubes.png'), var(--gradient-1);
  position: relative;
}
.wd-glass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.wd-glass-card {
  background: var(--wd-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--wd-glass-border);
  padding: 40px;
  border-radius: var(--wd-radius);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  transition: var(--wd-transition);
}
.wd-glass-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.85);
}
.wd-glass-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--wd-dark);
  font-weight: 700;
}

/* Masonry Layout */
.wd-masonry-section {
  padding: 100px 5%;
  background: white;
}
.wd-masonry-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
}
.wd-masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: 200px;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.wd-masonry-item {
  background: var(--wd-light);
  border-radius: var(--wd-radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: var(--wd-transition);
  border: 1px solid #e2e8f0;
}
.wd-masonry-item:hover {
  border-color: var(--wd-primary);
  box-shadow: var(--wd-shadow);
}
.wd-masonry-item:nth-child(1) { grid-row: span 2; background: var(--wd-dark); color: white; }
.wd-masonry-item:nth-child(1) h3 { color: white; }
.wd-masonry-item:nth-child(2) { grid-row: span 1; }
.wd-masonry-item:nth-child(3) { grid-row: span 1; }
.wd-masonry-item:nth-child(4) { grid-row: span 2; background: var(--gradient-2); color: white; }
.wd-masonry-item:nth-child(4) h3 { color: white; }
.wd-masonry-item h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

/* Before / After Table */
.wd-table-section {
  padding: 100px 5%;
  background: #f1f5f9;
}
.wd-table-container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: var(--wd-radius);
  overflow: hidden;
  box-shadow: var(--wd-shadow);
}
.wd-table {
  width: 100%;
  border-collapse: collapse;
}
.wd-table th, .wd-table td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
.wd-table th {
  background: var(--wd-dark);
  color: white;
  font-weight: 600;
}
.wd-table tr:last-child td {
  border-bottom: none;
}
.wd-table td.wd-before { color: #ef4444; font-weight: 500; }
.wd-table td.wd-after { color: #10b981; font-weight: 600; }

/* Grid Cards (Replaces Bullet Points) */
.wd-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin: 40px 0;
}
.wd-feature-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  transition: var(--wd-transition);
  position: relative;
  overflow: hidden;
}
.wd-feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--wd-primary);
}
.wd-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--wd-shadow);
}
.wd-feature-card strong {
  display: block;
  font-size: 1.125rem;
  color: var(--wd-dark);
  margin-bottom: 8px;
}

/* Premium Buttons */
.wd-btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--wd-transition);
  border: none;
  cursor: pointer;
}
.wd-btn-primary {
  background: var(--wd-primary);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}
.wd-btn-primary:hover {
  background: var(--wd-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.23);
}

@media (max-width: 768px) {
  .wd-hero-split { grid-template-columns: 1fr; padding: 60px 5%; }
  .wd-hero-bold h1 { font-size: 2.5rem; }
  .wd-masonry-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .wd-masonry-item:nth-child(n) { grid-row: auto; }
}
