/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  :root {
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --primary-light: #3384ff;
    --accent: #00d4ff;
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #1a1a1d;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #666668;
    --border: #2a2a2d;
    --border-light: #3a3a3d;
    --success: #00ff88;
    --warning: #ffaa00;
    --error: #ff4444;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-dark: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.25);
  }
  
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  
  /* Header */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
  }
  
  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
  }
  
  .logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .logo .accent {
    color: var(--accent);
  }
  
  .tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: -0.25rem;
  }
  
  .nav {
    display: flex;
    gap: 2rem;
  }
  
  .nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
  }
  
  .nav-link:hover,
  .nav-link.active {
    color: var(--text-primary);
  }
  
  .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
  }
  
  /* Main Content */
  .main {
    margin-top: 5rem;
  }
  
  /* Hero Section */
  .hero {
    padding: 4rem 0 6rem;
    position: relative;
    overflow: hidden;
  }
  
  .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  
  .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }
  
  .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
  }
  
  .hero-stats {
    display: flex;
    gap: 3rem;
  }
  
  .stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
  }
  
  .stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
  }
  
  .hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
  }
  
  .server-rack {
    position: relative;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
  }
  
  .hero-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
  }
  
  .floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
  }
  
  .floating-card {
    position: absolute;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(8px);
    animation: float 3s ease-in-out infinite;
  }
  
  .floating-card.cpu {
    top: 10%;
    right: -20%;
    animation-delay: 0s;
  }
  
  .floating-card.storage {
    bottom: 30%;
    right: -25%;
    animation-delay: 1s;
  }
  
  .floating-card.network {
    top: 60%;
    left: -25%;
    animation-delay: 2s;
  }
  
  .floating-card .icon {
    font-size: 1.25rem;
  }
  
  .floating-card .label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
  }
  
  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
  }
  
  /* Blog Posts Section */
  .blog-posts {
    padding: 4rem 0;
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 3rem;
  }
  
  .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
  }
  
  .section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
  }
  
  /* Post Cards */
  .post-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
  }
  
  .post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-light);
  }
  
  .post-card.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 3rem;
  }
  
  .post-image {
    position: relative;
    overflow: hidden;
  }
  
  .post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .post-card:hover .post-img {
    transform: scale(1.05);
  }
  
  .post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .post-content {
    padding: 2rem;
  }
  
  .post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
  }
  
  .post-date {
    color: var(--accent);
    font-weight: 500;
  }
  
  .post-status {
    background: var(--warning);
    color: var(--bg-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
  }
  
  .post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
  }
  
  .post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .post-title a:hover {
    color: var(--primary);
  }

  .post-card.featured .post-title {
    font-size: 2rem;
  }
  
  .post-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }
  
  .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  
  .tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border);
  }
  
  .post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
  }
  
  .read-more:hover {
    color: var(--primary-light);
  }
  
  .post-engagement {
    display: flex;
    gap: 1rem;
  }
  
  .like-btn,
  .share-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  
  .like-btn:hover,
  .share-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
  }
  
  /* Posts Grid */
  /* Ensure posts grid works correctly */
  .posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
  }

  /* Featured post spans full width */
  .post-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }

  /* Regular post cards */
  .post-card:not(.featured) {
    display: block;
  }

  /* Fix for post content layout */
  .post-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .post-actions {
    margin-top: auto;
  }
  
  .post-card.upcoming {
    opacity: 0.8;
    border-style: dashed;
  }
  
  .post-card.upcoming .post-content {
    padding: 1.5rem;
  }
  
  .post-card.upcoming .post-title {
    font-size: 1.25rem;
  }
  
  /* Load More */
  .load-more {
    text-align: center;
  }
  
  .load-more-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .load-more-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
  }
  
/* Newsletter */
.newsletter {
  background: var(--gradient-dark);
  padding: 4rem 0;
  margin: 4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
 }
 
 .newsletter-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
 }
 
 .newsletter-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
 }
 
 .newsletter-description {
  color: var(--text-secondary);
  font-size: 1.125rem;
 }
 
 .newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 400px;
  width: 100%;
 }
 
 .newsletter-input {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 1rem;
  border-radius: 12px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
 }
 
 .newsletter-input:focus {
  outline: none;
  border-color: var(--primary);
 }
 
 .cf-turnstile {
  align-self: center;
  width: fit-content;
 }
 
 .newsletter-btn {
  background: var(--gradient-primary);
  border: none;
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease;
  width: 100%;
 }
 
 .newsletter-btn:hover {
  transform: translateY(-2px);
 }
 
 .newsletter-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
 }
 
 .newsletter-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 500;
 }
 
 .newsletter-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
 }
 
 .newsletter-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
 }
 
 /* Mobile responsive */
 @media (max-width: 768px) {
  .newsletter-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .newsletter-form {
    min-width: unset;
    max-width: 100%;
  }
  
  .cf-turnstile {
    transform: scale(0.85);
    transform-origin: center;
  }
 }
 
 @media (max-width: 480px) {
  .newsletter {
    padding: 3rem 0;
    margin: 3rem 0;
  }
  
  .newsletter-title {
    font-size: 1.75rem;
  }
  
  .newsletter-description {
    font-size: 1rem;
  }
  
  .cf-turnstile {
    transform: scale(0.75);
  }
  
  .newsletter-input,
  .newsletter-btn {
    font-size: 16px; /* Prevents zoom on iOS */
  }
 }
  
  /* Footer */
  .footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
  }
  
  .footer-brand h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }
  
  .footer-brand p {
    color: var(--text-secondary);
  }
  
  .footer-links {
    display: flex;
    gap: 3rem;
  }
  
  .footer-section h5 {
    font-weight: 600;
    margin-bottom: 1rem;
  }
  
  .footer-section a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
  }
  
  .footer-section a:hover {
    color: var(--text-primary);
  }
  
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
  }
  
  .footer-bottom a {
    color: var(--primary);
    text-decoration: none;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .container {
      padding: 0 1rem;
    }
    
    .header-content {
      flex-direction: column;
      gap: 1rem;
    }
    
    .nav {
      gap: 1.5rem;
    }
    
    .hero-content {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 2rem;
    }
    
    .hero-title {
      font-size: 2.5rem;
    }
    
    .hero-stats {
      justify-content: center;
    }
    
    .floating-card {
      display: none;
    }
    
    .post-card.featured {
      grid-template-columns: 1fr;
    }
    
    .posts-grid {
      grid-template-columns: 1fr;
    }
    
    .newsletter-content {
      flex-direction: column;
      text-align: center;
    }
    
    .newsletter-form {
      min-width: auto;
      width: 100%;
    }
    
    .footer-content {
      grid-template-columns: 1fr;
    }
    
    .footer-bottom {
      flex-direction: column;
      gap: 1rem;
    }
  }
