/* ===================================
   Modern Responsive Design v3.0 - Ultra Enhanced
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #a5b4fc;
  --secondary: #8b5cf6;
  --accent: #f59e0b;
  --accent-secondary: #ec4899;
  --success: #10b981;
  --error: #ef4444;
  --bg: #f8fafc;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #ede9fe 100%);
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(99, 102, 241, 0.15), 0 4px 6px -2px rgba(99, 102, 241, 0.1);
  --shadow-lg: 0 25px 50px -12px rgba(99, 102, 241, 0.25);
  --shadow-xl: 0 35px 60px -15px rgba(99, 102, 241, 0.35);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --max-width: 1280px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
--transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg-gradient);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Background Effects */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Selection */
::selection {
  background: var(--primary);
  color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--border-light);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary), var(--secondary));
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.875rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.025em;
}

.logo span {
  color: var(--text);
}

.nav {
  display: flex;
  gap: 0.25rem;
}

.nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.08);
}

/* Hero */
.hero {
  text-align: center;
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent-secondary) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M40 40c0 11-9 20-20 20S0 51 0 40 9 20 20 20s20 9 20 20zm0 0c0-11 9-20 20-20s20 9 20 20-9 20-20 20-20-9-20-20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  animation: float 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
  animation: slideUp 0.8s ease-out;
}

.hero p {
  font-size: 1.5rem;
  opacity: 0.95;
  margin-bottom: 0.5rem;
  animation: slideUp 0.8s ease-out 0.1s both;
}

.hero .experience {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  display: inline-block;
  font-weight: 600;
  margin-top: 1.5rem;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  animation: slideUp 0.8s ease-out 0.2s both;
}

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

/* Page Title */
.page-title {
  text-align: center;
  padding: 3.5rem 0 2rem;
}

.page-title h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
  color: var(--text);
}

.page-title p {
  color: var(--text-light);
  font-size: 1.125rem;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filters a {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.625rem 1.25rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: var(--transition);
}

.filters a:hover,
.filters a.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.category-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

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

.category-card h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.category-card p {
  color: var(--text-light);
  font-size: 1rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(var(--primary), var(--secondary), var(--accent-secondary));
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

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

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

.service-card:hover h3 {
  color: var(--primary);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.service-card p {
  color: var(--text-light);
  font-size: 1rem;
  flex-grow: 1;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.service-card .price {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
}

.service-card .order-btn {
  display: inline-block;
  background: var(--primary) !important;
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
  margin-top: 1rem;
  transition: var(--transition);
  position: relative;
  z-index: 10;
  cursor: pointer;
}

.service-card .order-btn:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-2px);
}

/* CTA Section */
.cta {
  text-align: center;
  padding: 3.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  border-radius: var(--radius-lg);
  margin: 3rem 0;
  border: none;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2.5l1.5 1.5L20 20.5z' fill='%23ffffff' fill-opacity='0.1'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: white;
  font-weight: 700;
}

.cta p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: 0.5s;
}

.btn:hover {
  background: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.3);
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: translateY(-1px) scale(1.02);
}
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Back Link */
.back-link {
  display: inline-block;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

/* Services List (Detailed) */
.services-list {
  margin: 2rem 0;
}

.services-list h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.5rem;
  color: var(--text);
}

.services-list h2:first-child {
  margin-top: 0;
}

.services-list p {
  color: var(--text-light);
}

.services-list .price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0.5rem;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: white;
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 4rem;
  border-top: 4px solid var(--primary);
}

.footer a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: white;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
  }
  
  .nav a {
    font-size: 0.875rem;
    padding: 0.375rem 0.625rem;
  }
  
  .hero {
    padding: 3rem 1rem;
  }
  
  .hero h1 {
    font-size: 1.875rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero .experience {
    font-size: 0.875rem;
  }
  
  .categories-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .page-title h1 {
    font-size: 1.75rem;
  }
  
  .cta {
    padding: 2rem 1.5rem;
  }
  
  .cta h2 {
    font-size: 1.375rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .logo {
    font-size: 1.375rem;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
}
  
  .nav {
    gap: 1rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .categories-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .filters {
    gap: 0.5rem;
  }
  
  .filters a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero {
    padding: 2rem 0;
  }
  
  .page-title {
    padding: 2rem 0 1rem;
  }
}

/* ===================================
   BLOG STYLES
   =================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

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

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card a {
  display: block;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
}

.blog-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.blog-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.blog-meta time::before {
  content: "📅 ";
}

.blog-meta span {
  background: var(--primary);
  color: white;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-size: 0.75rem;
}

/* Article Page */
.article {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.article-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin-bottom: 1rem;
}

.article-content ul, 
.article-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-light);
}

.article-content .lead {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 2rem;
}

.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-posts ul {
  list-style: none;
  padding: 0;
}

.related-posts li {
  margin-bottom: 0.5rem;
}

.related-posts a {
  color: var(--primary);
  text-decoration: none;
}

.related-posts a:hover {
  text-decoration: underline;
}

/* Blog index header */
.blog .page-title {
  text-align: center;
  padding: 3rem 0 1rem;
}

/* RSS link */
.rss-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #ff9900;
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  margin-top: 1rem;
}

.rss-link:hover {
  background: #e68a00;
}

/* Sitemap Styles */
.sitemap-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.sitemap-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.sitemap-section h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--text);
}

.sitemap-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.5rem;
}

.sitemap-list li {
  padding: 0.25rem 0;
}

.sitemap-list a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.sitemap-list a:hover {
  color: var(--primary);
}

/* ===================================
   Animations v3.0
   =================================== */

/* Fade In */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Slide Up */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scale In */
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Stagger Animation Delays */
.services-grid .service-card:nth-child(1) { animation: slideUp 0.5s ease-out 0.1s both; }
.services-grid .service-card:nth-child(2) { animation: slideUp 0.5s ease-out 0.2s both; }
.services-grid .service-card:nth-child(3) { animation: slideUp 0.5s ease-out 0.3s both; }
.services-grid .service-card:nth-child(4) { animation: slideUp 0.5s ease-out 0.4s both; }
.services-grid .service-card:nth-child(5) { animation: slideUp 0.5s ease-out 0.5s both; }
.services-grid .service-card:nth-child(6) { animation: slideUp 0.5s ease-out 0.6s both; }
.services-grid .service-card:nth-child(7) { animation: slideUp 0.5s ease-out 0.7s both; }
.services-grid .service-card:nth-child(8) { animation: slideUp 0.5s ease-out 0.8s both; }

.categories-grid .category-card:nth-child(1) { animation: slideUp 0.5s ease-out 0.1s both; }
.categories-grid .category-card:nth-child(2) { animation: slideUp 0.5s ease-out 0.15s both; }
.categories-grid .category-card:nth-child(3) { animation: slideUp 0.5s ease-out 0.2s both; }
.categories-grid .category-card:nth-child(4) { animation: slideUp 0.5s ease-out 0.25s both; }
.categories-grid .category-card:nth-child(5) { animation: slideUp 0.5s ease-out 0.3s both; }
.categories-grid .category-card:nth-child(6) { animation: slideUp 0.5s ease-out 0.35s both; }
.categories-grid .category-card:nth-child(7) { animation: slideUp 0.5s ease-out 0.4s both; }
.categories-grid .category-card:nth-child(8) { animation: slideUp 0.5s ease-out 0.45s both; }

/* Glow Effect */
.glow {
  box-shadow: var(--shadow-glow);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Float Animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float {
  animation: float 3s ease-in-out infinite;
}

.rss-link:hover {
  background: #e68a00;
}