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

:root {
  --primary: #1a1a2e;
  --secondary: #0f3460;
  --accent: #e94560;
  --light: #f5f5f5;
  --text: #333;
  --border: #e0e0e0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: white;
}

/* Header */
header {
  background: var(--primary);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* --- CStaks Animated Tech Logo --- */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

#cstaks-logo {
  height: 48px; /* Scale down for nav header */
  width: auto;
  overflow: visible;
  filter: drop-shadow(0 0 12px rgba(233, 69, 96, 0.3));
  transition: filter 0.3s ease;
}

#cstaks-logo:hover {
  filter: drop-shadow(0 0 16px rgba(233, 69, 96, 0.6));
}

/* Text Animation */
.animated-text {
  opacity: 0;
  transform: translateX(20px);
  animation: fadeSlideText 0.6s ease-out 0.2s forwards;
}

/* Keyframes */
@keyframes fadeSlideText {
  0% {
    opacity: 0;
    transform: translateX(20px) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
  display: inline-block;
}

.logo:hover {
  opacity: 0.8;
}

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

nav a {
  color: white;
  text-decoration: none;
  margin-left: 2rem;
  font-size: 0.95rem;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent);
}

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

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

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid var(--accent);
}

.cta-button:hover {
  background: transparent;
  transform: translateY(-2px);
}

/* Section */

section {
  padding: 4rem 2rem;
}

section h2 {
  font-size: 2.2rem;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--primary);
}

/* About */
#about {
  background: var(--light);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}

.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 16px rgba(233, 69, 96, 0.1);
  transform: translateY(-4px);
}

.product-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.product-card p {
  color: #666;
  font-size: 0.95rem;
}

/* Community */
#community {
  background: var(--light);
}

.community-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.community-content p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: white;
  color: var(--primary);
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid var(--primary);
  font-weight: 600;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--primary);
  color: white;
}

/* Footer */
footer {
  background: var(--primary);
  color: white;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

footer p {
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  nav a {
    margin: 0.5rem 0;
    display: inline-block;
  }

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

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

  section h2 {
    font-size: 1.8rem;
  }

  section {
    padding: 2rem 1rem;
  }
}
