:root {
  --white: #ffffff;
  --gray-50: #fafbfc;
  --gray-100: #f4f6f8;
  --gray-200: #e4e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-dark: #1d4ed8;
  --green: #10b981;
  --orange: #f59e0b;
  --red: #ef4444;
  --purple: #8b5cf6;
  --indigo: #6366f1;
  
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-tertiary: var(--gray-500);
  --background: var(--white);
  --background-secondary: var(--gray-50);
  --border: var(--gray-200);
  --border-light: var(--gray-100);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

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

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--background);
  overflow-x: hidden;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  height: 72px;
}

.logo {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  text-decoration: none;
  letter-spacing: -0.015em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  letter-spacing: -0.005em;
}

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

/* Hero Section */
.hero {
  padding: 100px 0 40px;
  background: var(--background);
  text-align: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--indigo) 100%);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-md);
  letter-spacing: -0.01em;
}

.badge-icon {
  font-size: 0.9rem;
}

.badge-accent {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.title-gradient {
  background: linear-gradient(135deg, var(--blue) 0%, var(--indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

.feature-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 1rem;
}

/* SQL Formatter */
.formatter-section {
  background: var(--background-secondary);
  padding: 40px 0 80px;
}

.formatter-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.formatter-tool {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.formatter-header {
  text-align: center;
  padding: 2rem 2rem 1rem;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--border);
}

.formatter-title {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
}

.formatter-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

.formatter-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.input-section,
.output-section {
  display: flex;
  flex-direction: column;
}

.input-section {
  border-right: 1px solid var(--border);
}

.section-header {
  padding: 1.25rem 2rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-700);
  letter-spacing: -0.01em;
}

.format-btn {
  background: var(--blue);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
}

.format-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.code-area {
  flex: 1;
  padding: 2rem;
}

.code-input,
.code-output {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  background: transparent;
  resize: none;
  color: var(--gray-900);
}

.code-input::placeholder {
  color: var(--gray-400);
  font-style: italic;
}

.code-output {
  background: var(--gray-50);
  color: var(--gray-700);
}

/* About Section */
.about {
  padding: 80px 0;
  background: var(--background-secondary);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--orange) 0%, var(--red) 100%);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.about-title {
  font-family: var(--font-sans);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.about-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat {
  text-align: left;
}

.stat-number {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  display: block;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

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

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
}

.social-btn.linkedin {
  background: #0077b5;
  color: white;
}

.social-btn.linkedin:hover {
  background: #005885;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.social-btn.youtube {
  background: #ff0000;
  color: white;
}

.social-btn.youtube:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.about-image {
  display: flex;
  justify-content: center;
}

.profile-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid var(--border);
  max-width: 300px;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 3px solid var(--background-secondary);
}

.profile-name {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
}

.profile-role {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.profile-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.specialty-tag {
  background: var(--blue);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Content Section */
.content {
  padding: 80px 0;
  background: var(--white);
}

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

.content-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title-large {
  font-family: var(--font-sans);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.content-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.content-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.video-container {
  width: 100%;
  height: 200px;
  background: var(--gray-100);
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.video-container iframe {
  border-radius: 12px 12px 0 0;
}

.card-content {
  padding: 2rem;
}

.card-title {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.card-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.card-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s ease;
}

.card-link:hover {
  gap: 0.8rem;
}

/* Blog Section */
.blog {
  padding: 80px 0;
  background: var(--white);
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.blog-header {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

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

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.blog-category {
  background: var(--blue);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.blog-date {
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.blog-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.blog-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.blog-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-item {
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.blog-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s ease;
}

.blog-link:hover {
  gap: 0.8rem;
}

.blog-cta {
  text-align: center;
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--border);
  padding: 0.8rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--blue);
  color: var(--blue);
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 60px 0 20px;
}

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

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

.footer-brand {
  max-width: 350px;
}

.footer-logo {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.footer-description {
  color: var(--gray-300);
  line-height: 1.6;
  margin-bottom: 2rem;
}

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

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.social-icon.linkedin {
  background: #0077b5;
}

.social-icon.youtube {
  background: #ff0000;
}

.social-icon.twitter {
  background: #1da1f2;
}

.social-icon:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-title {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.footer-list {
  list-style: none;
  padding: 0;
}

.footer-list li {
  margin-bottom: 0.8rem;
}

.footer-list a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

.footer-list a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright p,
.footer-credits p {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin: 0;
}

.footer-credits {
  text-align: right;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .formatter-body {
      grid-template-columns: 1fr;
  }

  .input-section {
      border-right: none;
      border-bottom: 1px solid var(--border);
  }

  .about-container {
      grid-template-columns: 1fr;
      gap: 3rem;
      text-align: center;
  }

  .about-stats {
      justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
      display: none;
  }

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

  .hero-features {
      gap: 1rem;
  }

  .feature-item {
      padding: 0.6rem 1rem;
      font-size: 0.9rem;
  }

  .section-title-large {
      font-size: 2rem;
  }

  .content-grid,
  .blog-grid {
      grid-template-columns: 1fr;
  }

  .about-stats {
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
  }

  .footer-content {
      grid-template-columns: 1fr;
      gap: 2rem;
      text-align: center;
  }

  .footer-links {
      grid-template-columns: 1fr;
      gap: 1.5rem;
  }

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

  .footer-credits {
      text-align: center;
  }

  .about-links {
      justify-content: center;
  }

  .social-btn {
      flex: 1;
      justify-content: center;
      max-width: 200px;
  }

  .formatter-container {
      padding: 0 1rem;
  }

  .code-area {
      padding: 1rem;
  }

  .code-input,
  .code-output {
      min-height: 300px;
  }
}

@media (max-width: 480px) {
  .nav-container {
      padding: 1rem;
  }

  .hero {
      padding: 90px 0 30px;
  }

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

  .formatter-tool {
      border-radius: 16px;
  }

  .formatter-header {
      padding: 1.5rem 1rem 1rem;
  }

  .section-header {
      padding: 1rem;
  }

  .hero-features {
      gap: 0.5rem;
  }

  .feature-item {
      padding: 0.4rem 0.6rem;
      font-size: 0.8rem;
  }

  .footer-content {
      grid-template-columns: 1fr;
      gap: 2rem;
      text-align: center;
  }

  .footer-links {
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
  }
}