:root {
  --primary: #00d2ff;
  --secondary: #3a7bd5;
  --bg-dark: #0a0e14;
  --card-bg: rgba(255, 255, 255, 0.05);
  --text: #e0e6ed;
  --text-dim: #94a3b8;
  --glass: rgba(10, 14, 20, 0.8);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Animation */
.bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, #1a2a44 0%, #0a0e14 100%);
  z-index: -1;
}

/* Header & Glassmorphism */
header {
  position: sticky;
  top: 0;
  padding: 1.5rem 5%;
  background: var(--glass);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-container img {
  height: 48px;
  width: auto;
  object-fit: contain;
}



/* News Ticker */
.news-ticker {
  flex: 1;
  margin: 0 4rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  max-width: 600px;
  height: 40px;
  backdrop-filter: blur(5px);
  box-shadow: inset 0 0 20px rgba(0, 210, 255, 0.05);
}

.news-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-content-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.news-content {
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
  display: inline-block;
  animation: ticker 40s linear infinite;
}

.news-content:hover {
  animation-play-state: paused;
}

.news-date {
  color: var(--primary);
  font-weight: 600;
  margin-right: 0.8rem;
  font-family: 'monospace';
}

@keyframes ticker {
  0% {
    transform: translateX(600px);
  }

  100% {
    transform: translateX(-100%);
  }
}

nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  transition: color 0.3s;
}

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

/* Hero Section */
.hero {
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-image: linear-gradient(rgba(10, 14, 20, 0.7), rgba(10, 14, 20, 0.7)), url('assets/hero.png');
  background-size: cover;
  background-position: center;
  padding: 0 10%;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #fff, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.5rem;
  color: var(--text-dim);
  max-width: 800px;
}

/* Sections */
section {
  padding: 5rem 10%;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

/* Grid Layouts */
.software-grid,
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 12px;
  transition: transform 0.3s, background 0.3s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
}

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

.card .tagline {
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.card ul {
  list-style: none;
  margin-top: 1.5rem;
}

.card li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Tutorials */
.tutorial-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: 0.3s;
}

.tutorial-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(10px);
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--primary);
  color: #000;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1.5rem;
  transition: background 0.3s;
}

.btn:hover {
  background: #00b8e6;
}

.btn-small {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-small:hover {
  background: var(--primary);
  color: #000;
}

footer {
  text-align: center;
  padding: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
}

/* Filters */
.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 0.6rem 1.2rem;
  margin: 0 0.5rem;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  padding: 3rem;
  border-radius: 15px;
  position: relative;
  overflow-y: auto;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-dim);
}

.close-btn:hover {
  color: #fff;
}

#modal-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
  /* Preserve text formatting */
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  nav,
  .news-ticker {
    display: none;
  }

  .modal-content {
    padding: 1.5rem;
  }
}

/* Visitor Counter Styling (Simplified) */
.visitor-counter {
  position: fixed;
  bottom: 10px;
  right: 15px;
  opacity: 0.5;
  /* Subtle transparency */
  z-index: 1000;
  pointer-events: none;
}

.counter-value {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--text-dim);
}