:root {
  --primary: #00d4ff;
  --primary-dark: #0099cc;
  --secondary: #7c3aed;
  --accent: #06b6d4;
  --accent-purple: #a855f7;
  --bg-darker: #000000;
  --bg-dark: #0a0a0f;
  --bg-card: #13131a;
  --bg-card-hover: #1a1a24;
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #1e293b;
  --glow-blue: rgba(0, 212, 255, 0.4);
  --glow-purple: rgba(124, 58, 237, 0.4);
}

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

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

/* Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 255, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(124, 58, 237, 0.1), transparent);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle 300px at 20% 80%, rgba(168, 85, 247, 0.08), transparent),
    radial-gradient(circle 400px at 90% 10%, rgba(6, 182, 212, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 30px); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
  background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

h2 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-top: 2rem;
  font-weight: 600;
}

h4 {
  font-size: 1.35rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-purple);
  text-shadow: 0 0 20px var(--glow-blue);
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-title {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: -0.02em;
}

.site-title:hover {
  filter: brightness(1.2);
  text-shadow: 0 0 30px var(--glow-blue);
}

.site-nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.site-nav a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.site-nav a:hover {
  color: var(--primary);
  text-shadow: 0 0 20px var(--glow-blue);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.4s ease;
  box-shadow: 0 0 10px var(--glow-blue);
}

.site-nav a:hover::after {
  width: 100%;
}

/* Main Content */
main.container {
  padding-top: 4rem;
  padding-bottom: 4rem;
  min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 5rem 0 4rem;
  margin-bottom: 4rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--glow-blue), transparent 70%);
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite;
}

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

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease;
  text-shadow: 0 0 40px var(--glow-blue);
}

.hero h2 {
  font-size: 1.8rem;
  margin-top: 0;
  opacity: 0.9;
  font-weight: 500;
  animation: fadeInUp 1s ease 0.2s backwards;
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 900px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  animation: fadeInUp 1s ease 0.4s backwards;
}

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

/* Glassmorphism Cards */
.glass-card {
  background: rgba(19, 19, 26, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

.glass-card:hover::before {
  left: 100%;
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 60px rgba(0, 212, 255, 0.2),
    0 0 80px rgba(124, 58, 237, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.3);
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card {
  background: rgba(19, 19, 26, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 2.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

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

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow:
    0 24px 64px rgba(0, 212, 255, 0.25),
    0 0 80px rgba(124, 58, 237, 0.2);
  border-color: rgba(0, 212, 255, 0.4);
}

.feature-card h3 {
  margin-top: 0;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Lists */
ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

ul li::marker {
  color: var(--primary);
}

/* Horizontal Rule */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
  margin: 3rem 0;
}

/* Post/Article Styling */
.post, article {
  background: rgba(19, 19, 26, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 3.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 0.6s ease;
}

.post h1, article h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 40px var(--glow-blue);
}

.meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.content {
  line-height: 1.9;
  font-size: 1.05rem;
}

/* Post List */
.post-list {
  list-style: none;
  margin-left: 0;
  display: grid;
  gap: 1.5rem;
}

.post-list li, .post-item {
  background: rgba(19, 19, 26, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.post-list li::before, .post-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.post-list li:hover::before, .post-item:hover::before {
  transform: scaleY(1);
}

.post-list li:hover, .post-item:hover {
  transform: translateX(12px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 212, 255, 0.2),
    0 0 40px rgba(124, 58, 237, 0.1);
}

.post-list a, .post-item a {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-block;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.post-list a:hover, .post-item a:hover {
  color: var(--accent-purple);
  text-shadow: 0 0 20px var(--glow-purple);
}

.post-list .muted, .post-item .text-muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
  position: relative;
  overflow: hidden;
}

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

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

.btn:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 40px rgba(0, 212, 255, 0.4),
    0 0 60px rgba(124, 58, 237, 0.3);
  color: white;
}

/* Contact Info */
.contact-info {
  background: rgba(19, 19, 26, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-left: 4px solid var(--primary);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 2rem 0;
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15);
}

.contact-info h3 {
  margin-top: 0;
}

/* Section Dividers */
.section-divider {
  text-align: center;
  margin: 5rem 0;
  position: relative;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
}

/* Footer */
.site-footer {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 0;
  margin-top: 6rem;
  position: relative;
  z-index: 1;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 0;
}

/* Blockquote */
blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 2rem;
  margin: 2.5rem 0;
  font-style: italic;
  color: var(--text-secondary);
  background: rgba(0, 212, 255, 0.05);
  padding: 1.5rem 2rem;
  border-radius: 8px;
}

/* Code */
code {
  background: rgba(0, 212, 255, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.9em;
  color: var(--primary);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

pre {
  background: rgba(10, 10, 15, 0.9);
  padding: 2rem;
  border-radius: 16px;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

pre code {
  background: none;
  padding: 0;
  color: var(--text-secondary);
  border: none;
}

/* Accent Elements */
.accent-text {
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 968px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .site-nav {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  .post, article {
    padding: 2rem 1.5rem;
  }

  .glass-card, .feature-card {
    padding: 2rem;
  }

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

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .site-nav {
    font-size: 0.9rem;
  }

  .container {
    padding: 0 1rem;
  }

  .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

/* Image Styles */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hero-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 24px;
  margin: 3rem 0;
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

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

.page-header-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 24px;
  margin-bottom: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-overlay {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.image-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}

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

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

/* Scroll Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Selection */
::selection {
  background: rgba(0, 212, 255, 0.3);
  color: var(--text-primary);
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--secondary), var(--primary));
}
