:root {
  /* Canva Brand Colors */
  --primary-color: #8b3dff; /* Purple */
  --secondary-color: #00c4cc; /* Cyan */
  --gradient-primary: linear-gradient(135deg, #00c4cc 0%, #7d2ae8 100%);
  --gradient-hover: linear-gradient(135deg, #00d4dd 0%, #8b3dff 100%);
  
  /* Neutral Colors */
  --bg-color: #f4f5f7;
  --surface-color: #ffffff;
  --text-main: #0e1318;
  --text-muted: #5e6d7d;
  --border-color: #e5e7eb;
  
  /* Shadows & Radius (Soft and modern like Canva) */
  --shadow-sm: 0 2px 4px rgba(14, 19, 24, 0.05);
  --shadow-md: 0 4px 12px rgba(14, 19, 24, 0.08);
  --shadow-lg: 0 12px 24px rgba(14, 19, 24, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --card-gradient-bg: linear-gradient(to top, rgba(14,19,24,0.95) 0%, rgba(14,19,24,0.8) 60%, transparent 100%);
  --mobile-nav-bg: rgba(255, 255, 255, 0.9);
  --orb-1-bg: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  --orb-2-bg: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 60%);
  --mesh-bg: 
    radial-gradient(at 0% 0%, rgba(139, 61, 255, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(0, 196, 204, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(139, 61, 255, 0.05) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(0, 196, 204, 0.05) 0px, transparent 50%);
}

[data-theme="dark"] {
  --primary-color: #a78bfa;
  --secondary-color: #2dd4bf;
  --gradient-primary: linear-gradient(135deg, #2dd4bf 0%, #a78bfa 100%);
  --gradient-hover: linear-gradient(135deg, #34d399 0%, #c084fc 100%);
  
  --bg-color: #0f172a;
  --surface-color: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);
  --card-gradient-bg: linear-gradient(to top, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.8) 60%, transparent 100%);
  --mobile-nav-bg: rgba(15, 23, 42, 0.9);
  --orb-1-bg: radial-gradient(circle, rgba(167, 139, 250, 0.15) 0%, transparent 60%);
  --orb-2-bg: radial-gradient(circle, rgba(45, 212, 191, 0.15) 0%, transparent 60%);
  --mesh-bg: 
    radial-gradient(at 0% 0%, rgba(167, 139, 250, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(45, 212, 191, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(167, 139, 250, 0.08) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(45, 212, 191, 0.08) 0px, transparent 50%);
}

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

body {
  font-family: 'Hind Siliguri', 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  background-image: var(--mesh-bg);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 0;
}



main {
  flex: 1;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

img:hover {
  filter: grayscale(0%);
}

.navbar-brand img, .footer-logo img {
  filter: none !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  background-color: var(--surface-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.navbar-brand {
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a.nav-item {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-links a.nav-item:hover, .nav-links a.nav-item.active {
  color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 15px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 10px rgba(125, 42, 232, 0.2);
}

.btn-primary:hover {
  background: var(--gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(125, 42, 232, 0.35);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: #faf5ff;
}

/* Hero Section */
.hero {
  padding: 100px 0;
  text-align: center;
  background: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Cards */
.card {
  background: var(--surface-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
  border: 1px solid #d1d5db; /* Thin gray line */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Little bit of shadow */
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #d8b4fe;
}

.card:hover .card-img {
  transform: scale(0.95);
  filter: grayscale(0%);
}

.card-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background-color: #e2e8f0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: grayscale(100%);
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 24px 24px;
  display: flex;
  flex-direction: column;
  background: var(--card-gradient-bg);
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-content {
  transform: translateY(0);
}

.card-title {
  font-size: 20px;
  margin-bottom: 8px;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.card-meta {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

/* Grid Layouts */
.grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.grid-cols-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Section */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 36px;
  margin-bottom: 48px;
  text-align: center;
  letter-spacing: -0.5px;
}

/* Footer */
.footer {
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  margin-top: 60px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-main);
}
.footer-copyright {
  color: var(--text-muted);
  font-size: 14px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--primary-color);
}

/* Mobile App-like Bottom Navigation */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--mobile-nav-bg);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  padding: 10px 24px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.mobile-nav-item.active {
  color: var(--primary-color);
}

.mobile-nav-item svg {
  width: 24px;
  height: 24px;
  stroke-width: 2px;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .nav-links {
    display: none !important; /* Hide desktop nav on mobile */
  }
  
  .mobile-bottom-nav {
    display: flex !important; /* Show bottom nav on mobile */
  }

  body {
    padding-bottom: 70px; /* Space for bottom nav */
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 15px;
    padding: 0 16px;
  }

  .grid-cols-3, .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .card-content {
    padding: 20px 12px 12px;
    transform: translateY(0); /* Always show text on mobile */
    background: var(--card-gradient-bg);
  }
  
  .card-title {
    font-size: 14px;
    margin-bottom: 4px;
  }
  
  .card-meta {
    font-size: 12px;
    margin-bottom: 12px;
  }
  
  .card .btn {
    font-size: 12px;
    padding: 6px 0;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .footer {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .grid-cols-3, .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr); /* Keep 2 columns on very small screens for app-feel */
  }
}

