@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
  --primary-dark: #0a0f1e;
  --accent-blue: #00aaff;
  --bg-light: #ffffff;
  --bg-gray: #f5f7fa;
  --text-dark: #1a1a2e;
  --text-light: #ffffff;
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.logo {
  color: var(--text-light);
  font-size: 1.75rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo-accent {
  color: var(--accent-blue);
  background: linear-gradient(90deg, #00aaff, #00ffcc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-links a:not(.btn) {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--accent-blue);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:not(.btn):hover {
  color: var(--accent-blue);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  background-color: var(--accent-blue);
  color: var(--text-light);
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: linear-gradient(135deg, #00aaff 0%, #0077ff 100%);
  box-shadow: 0 4px 15px rgba(0, 170, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 170, 255, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* Enhanced Hero Section */
.hero {
  position: relative;
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 10rem 5% 8rem; /* Increased padding due to fixed nav */
  text-align: center;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 170, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 255, 204, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 170, 255, 0.2) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(0, 170, 255, 0.1);
  border: 1px solid rgba(0, 170, 255, 0.2);
  border-radius: 30px;
  color: var(--accent-blue);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -1.5px;
}

.text-gradient {
  background: linear-gradient(90deg, #00aaff, #00ffcc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin-inline: auto;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 800px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1;
}

.stat-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

/* Categories Section */
.categories {
  background-color: var(--bg-gray);
  padding: 5rem 5%;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 3rem;
}

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

.card {
  background-color: var(--bg-light);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, border-top 0.3s;
  text-align: center;
  border-top: 4px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: translateY(-4px);
  border-top: 4px solid var(--accent-blue);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.card-desc {
  color: #666;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
}

.card-link:hover {
  text-decoration: underline;
}

/* How It Works */
.how-it-works {
  background-color: var(--bg-light);
  padding: 5rem 5%;
  text-align: center;
}

.steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 2rem;
}

.step {
  flex: 1;
  text-align: center;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--accent-blue);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1rem;
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.step-desc {
  color: #666;
}

/* CTA Banner */
.cta-banner {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 5rem 5%;
  text-align: center;
}

.cta-banner h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: #ccc;
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 3rem 5% 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--text-light);
}

.footer-bottom {
  text-align: center;
  color: #888;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 992px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* simple mobile nav for now */
  }
  .grid, .steps {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .hero-title {
    font-size: 3rem;
  }
  .hero-cta-group {
    flex-direction: column;
  }
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  .stat-divider {
    width: 60px;
    height: 1px;
  }
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Category Page Specific */
.category-hero {
  padding: 4rem 5%;
}

.category-hero .card-icon {
  margin-bottom: 0.5rem;
}

.breadcrumb {
  background-color: var(--bg-gray);
  color: #666;
  padding: 7rem 5% 1rem; /* Added padding for fixed white navbar */
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.breadcrumb a {
  color: var(--accent-blue);
  text-decoration: none;
}

.project-card {
  padding: 0;
  overflow: hidden;
  align-items: flex-start;
  text-align: left;
}

.project-card .card-content {
  padding: 24px;
  width: 100%;
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-weight: 600;
}

.project-card .card-title {
  font-size: 1.25rem;
}

.project-card .btn {
  margin-top: 1rem;
}
