:root {
  /* Light Theme */
  --primary: #4a6fa5;
  --primary-light: #687a96;
  --primary-dark: #9ba9be;
  --primary-gradient: linear-gradient(135deg, var(--primary), var(--primary-light));
  --secondary: #5cb85c;
  --accent: #ff6b6b;
  --light-gray: #224568;
  --medium-gray: #e9ecef;
  --dark-gray: #6c757d;
  --dark: #212529;
  --code-bg: #f8f9fa;
  --code-text: #b4a7a7;
  --bg-color: #ffffff;
  --text-color: #212529;
  --card-bg: #c0aeae;
  --border-color: #dee2e6;
  --header-bg: rgba(255, 255, 255, 0.95);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --nav-link: #495057;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;

  /* Spacing */
  --space-xxs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: cubic-bezier(0.68, -0.6, 0.32, 1.6);

  /* Blur effects */
  --blur-sm: blur(4px);
  --blur-md: blur(8px);
  --blur-lg: blur(16px);
}

/* ===== Dark Mode ===== */
.dark-mode {
  --primary: #7c8ca5;
  --primary-light: #616b79;
  --primary-dark: #756f5a;
  --primary-gradient: linear-gradient(135deg, var(--primary), var(--primary-light));
  --secondary: #7cc47c;
  --accent: #ff8e8e;
  --light-gray: #342138;
  --medium-gray: #4a5568;
  --dark-gray: #556479;
  --dark: #554f5f;
  --code-bg: #1b222e;
  --code-text: #5c6064;
  --bg-color: #1a202c;
  --text-color: #9299a0;
  --card-bg: #2d3748;
  --border-color: #4a5568;
  --header-bg: rgba(56, 72, 99, 0.95);
  --glass-bg: rgba(45, 55, 72, 0.85);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
  --nav-link: #657386;
}

/* ===== Base Styles with Modern Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-weight: 600;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  color: #163849;
  font-size: 110%;
}
header p{
  font-size: medium !important;
}
.dark-mode p {
  color: #627f8d;
  font-size: 110%;
}

h1 {
  font-size: clamp(1.6rem, 4vw, 2rem);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h5 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

h6 {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

p {
  margin-bottom: var(--space-sm);
  font-size: 1.05rem;
  line-height: 1.7;

}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

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

/* ===== Glassmorphism Effect ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}


/* ===== Navigation with Hover Effects ===== */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

.nav-link {
  color: var(--nav-link);
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  position: relative;
  transition: all var(--transition-fast);
  border-radius: var(--radius-sm);
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary);
  background-color: rgba(74, 111, 165, 0.1);
}

.nav-link:hover::before {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-link.active::before {
  width: 100%;
}

/* ===== Advanced Theme Toggle ===== */
.theme-toggle-container {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-left: var(--space-md);
}

.theme-toggle-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.theme-toggle {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  margin: 0 var(--space-xs);
}

.theme-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--medium-gray);
  transition: var(--transition-normal);
  border-radius: var(--radius-full);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: var(--transition-normal) var(--transition-bounce);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.toggle-slider {
  background: var(--primary-gradient);
}

input:checked+.toggle-slider:before {
  transform: translateX(30px);
}

.toggle-icon {
  font-size: 1.2rem;
  color: var(--dark-gray);
  transition: color var(--transition-fast);
}

.dark-mode .toggle-icon.sun {
  color: var(--warning);
}

.light-mode .toggle-icon.moon {
  color: var(--primary);
}


/* ===== Main Content ===== */
.main {
  flex: 1;
  padding: var(--space-xl) 0;
  position: relative;
}

.main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 75% 25%, rgba(74, 111, 165, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.dark-mode .main::before {
  background-image: radial-gradient(circle at 75% 25%, rgba(107, 140, 188, 0.05) 0%, transparent 50%);
}

.grid-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
}

.content-area {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* ===== Advanced Sidebar ===== */
.sidebar {
  position: sticky;
  top: calc(80px + var(--space-xl));
  align-self: start;
  height: calc(100vh - 140px);
  overflow-y: auto;
  padding-right: var(--space-sm);
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--light-gray);
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: var(--light-gray);
  border-radius: var(--radius-full);
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.sidebar-item {
  position: relative;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  color: var(--text-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  font-weight: 500;
}

.sidebar-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  transform: scaleY(0);
  transform-origin: center top;
  transition: transform var(--transition-normal);
}

.sidebar-link:hover {
  background-color: rgba(74, 111, 165, 0.1);
  padding-left: calc(var(--space-md) + var(--space-sm));
}

.sidebar-link:hover::before {
  transform: scaleY(1);
}

.sidebar-link.active {
  background-color: rgba(74, 111, 165, 0.15);
  color: var(--primary);
  font-weight: 600;
  padding-left: calc(var(--space-md) + var(--space-sm));
}

.sidebar-link.active::before {
  transform: scaleY(1);
}

.sidebar-icon {
  margin-right: var(--space-sm);
  color: var(--dark-gray);
  transition: color var(--transition-fast);
}

.sidebar-link:hover .sidebar-icon,
.sidebar-link.active .sidebar-icon {
  color: var(--primary);
}

/* ===== Advanced Sections ===== */
.section {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.section:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(74, 111, 165, 0.03) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.section-content {
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: 2rem;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--dark-gray);
  font-size: 1.1rem;
  font-weight: 400;
  max-width: 80%;
}

/* ===== Language Meta Grid ===== */
.language-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.meta-item {
  background-color: var(--light-gray);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.meta-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
}

.meta-icon {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.meta-item h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.meta-item p {
  color: var(--text-color);
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ===== Features List with Animated Bullets ===== */
.language-features ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.language-features li {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-lg);
  position: relative;
  transition: all var(--transition-fast);
}

.language-features li:hover {
  transform: translateX(5px);
}

.language-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 12px;
  height: 12px;
  background: var(--primary-gradient);
  border-radius: 50%;
  transform: scale(0);
  transition: transform var(--transition-normal) var(--transition-bounce);
}

.language-features li:hover::before {
  transform: scale(1);
}

.language-features strong {
  color: var(--primary);
  font-weight: 600;
}

/* ===== Use Cases Grid with 3D Effect ===== */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.use-case-card {
  background-color: var(--light-gray);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  perspective: 1000px;
}

.use-case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(74, 111, 165, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.use-case-card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-color: var(--primary);
}

.use-case-card:hover::before {
  opacity: 1;
}

.use-case-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: var(--space-md);
  transition: transform var(--transition-normal) var(--transition-bounce);
}

.use-case-card:hover .use-case-icon {
  transform: rotate(15deg) scale(1.2);
}

.use-case-card h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
}

.use-case-card:hover h3 {
  color: var(--primary-light);
}

.use-case-card p {
  color: var(--text-color);
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ===== Advanced Code Blocks ===== */
.code-block {
  background-color: var(--code-bg);
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin: var(--space-lg) 0;
  box-shadow: var(--shadow-md);
}

.code-header {
  background-color: var(--medium-gray);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.code-title {
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  color: var(--text-color);
  font-weight: 500;
}

.code-actions {
  display: flex;
  gap: var(--space-xs);
}

.code-btn {
  background: none;
  border: none;
  color: var(--dark-gray);
  cursor: pointer;
  padding: var(--space-xxs) var(--space-xs);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: var(--space-xxs);
}

.code-btn:hover {
  color: var(--primary);
  background-color: rgba(74, 111, 165, 0.1);
}

.code-content {
  padding: var(--space-md);
  overflow-x: auto;
}

pre {
  margin: 0;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  tab-size: 4;
  white-space: pre-wrap;
}

/* Syntax Highlighting */
.token.comment {
  color: #6a9955;
}

.token.keyword {
  color: #569cd6;
  font-weight: bold;
}

.token.string {
  color: #ce9178;
}

.token.function {
  color: #dcdcaa;
}

.token.punctuation {
  color: #d4d4d4;
}

.token.operator {
  color: #d4d4d4;
}

.token.number {
  color: #b5cea8;
}

.token.boolean {
  color: #569cd6;
}

.token.selector {
  color: #d7ba7d;
}

.token.property {
  color: #9cdcfe;
}

.token.tag {
  color: #569cd6;
}

.token.attr-name {
  color: #9cdcfe;
}

.token.attr-value {
  color: #ce9178;
}


/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
  .grid-layout {
    grid-template-columns: 240px 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 992px) {
  .grid-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    order: -1;
    padding-right: 0;
    margin-bottom: var(--space-xl);
  }

  .section {
    padding: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-color);
  }

  .theme-toggle-container {
    margin-left: 0;
    margin-top: var(--space-sm);
    width: 100%;
    justify-content: flex-end;
  }

  .language-features ul {
    grid-template-columns: 1fr;
  }


}

@media (max-width: 576px) {
  .section {
    padding: var(--space-md);
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    max-width: 100%;
  }

  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .language-meta {
    grid-template-columns: 1fr;
  }


}

/* ===== Animations ===== */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-fade {
  animation: fadeIn 0.6s ease forwards;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===== Utility Classes ===== */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.shadow-primary {
  box-shadow: 0 4px 20px rgba(74, 111, 165, 0.3);
}

.hover-scale {
  transition: transform var(--transition-normal);
}

.hover-scale:hover {
  transform: scale(1.05);
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

/* ===== Tooltip ===== */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 120px;
  background-color: var(--dark);
  color: white;
  text-align: center;
  border-radius: var(--radius-sm);
  padding: var(--space-xs);
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  font-size: 0.8rem;
}

.tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--dark) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
 header{
      background-color: #7740be !important;
 }
/* ===== CSS Variables ===== */
:root {
  /* Light Theme */
  --primary: #6c5ce7;
  --primary-light: #a29bfe;
  --primary-dark: #5649c0;
  --secondary: #00b894;
  --accent: #fd79a8;
  --light-gray: #d2d9e0;
  --medium-gray: #e9ecef;
  --dark-gray: #6c757d;
  --dark: #212529;
  --bg-color: #ffffff;
  --text-color: #7d888b;
  --card-bg: #ffffff;
  --header-bg: #b0d0d8f7;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-light));

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}


/* ===== Navigation ===== */
nav {
  margin-top: var(--space-sm);
  font-size: 12px;

  margin-left: 6%;
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  flex-wrap: wrap;
}

nav a {
  color: var(--dark-gray);
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-xs) 0;
  position: relative;
  transition: color var(--transition-fast);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-fast);
}

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

nav a:hover::after {
  width: 100%;
}

nav a.active {
  color: var(--primary);
  font-weight: 600;
}

nav a.active::after {
  width: 100%;
}

/* ===== Main Content ===== */
main {
  padding: var(--space-xl) 0;
}

section {
  margin-bottom: var(--space-xl);
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

/* ===== Category Grid ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.category-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid var(--medium-gray);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.category-card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.category-card h3::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

.category-card ul {
  list-style: none;
  display: grid;
  gap: var(--space-sm);
}

.category-card li a {
  color: var(--text-color);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: block;
}

.category-card li a:hover {
  background-color: rgba(108, 92, 231, 0.1);
  color: var(--primary);
  transform: translateX(4px);
}

/* ===== Framework Grid ===== */
.framework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.framework-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--medium-gray);
  text-decoration: none;
  color: var(--text-color);
  position: relative;
  overflow: hidden;
}

.framework-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 0;
}

.framework-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  color: white;
  border-color: transparent;
}

.framework-card:hover::before {
  opacity: 1;
}

.framework-card h3 {
  position: relative;
  z-index: 1;
  font-size: 1.4rem;
  margin-bottom: var(--space-xs);
  transition: color var(--transition-fast);
}

.framework-card p {
  position: relative;
  z-index: 1;
  color: var(--dark-gray);
  transition: color var(--transition-fast);
}

.framework-card:hover h3,
.framework-card:hover p {
  color: white;
}

/* Specific card colors */
.framework-card:nth-child(1):hover::before {
  background: linear-gradient(135deg, #61dafb, #00b4d8);
}

.framework-card:nth-child(2):hover::before {
  background: linear-gradient(135deg, #dd0031, #c3002f);
}

.framework-card:nth-child(3):hover::before {
  background: linear-gradient(135deg, #42b883, #35495e);
}

.framework-card:nth-child(4):hover::before {
  background: linear-gradient(135deg, #092e20, #0c4b33);
}

.framework-card:nth-child(5):hover::before {
  background: linear-gradient(135deg, #000000, #333333);
}

.framework-card:nth-child(6):hover::before {
  background: linear-gradient(135deg, #02569b, #13b9fd);
}

/* ===== Footer ===== */
/* ===== Footer ===== */
footer {
  background-color: rgba(5, 16, 58, 0.842);
  color: white;

  text-align: center;
  margin: 0;
  padding: 0;
  height: 80px;
  border-top: 9px inset rgb(168, 166, 179);
  border-top-left-radius: 160px 40%;
}


footer p {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-card,
.framework-card {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.category-card:nth-child(1) {
  animation-delay: 0.1s;
}

.category-card:nth-child(2) {
  animation-delay: 0.2s;
}

.category-card:nth-child(3) {
  animation-delay: 0.3s;
}

.category-card:nth-child(4) {
  animation-delay: 0.4s;
}

.framework-card:nth-child(1) {
  animation-delay: 0.2s;
}

.framework-card:nth-child(2) {
  animation-delay: 0.3s;
}

.framework-card:nth-child(3) {
  animation-delay: 0.4s;
}

.framework-card:nth-child(4) {
  animation-delay: 0.5s;
}

.framework-card:nth-child(5) {
  animation-delay: 0.6s;
}

.framework-card:nth-child(6) {
  animation-delay: 0.7s;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.5rem;
  }

  .category-grid,
  .framework-grid {
    grid-template-columns: 1fr;
  }

  nav ul {
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .category-card,
  .framework-card {
    padding: var(--space-md);
  }
}


/* ===== Enhanced Dark Mode ===== */
@media (prefers-color-scheme: dark) {
  :root {
    /* Dark Theme Color Palette */
    --primary: #7f9cf5;
    --primary-light: #a3bffa;
    --primary-dark: #5a67d8;
    --primary-gradient: linear-gradient(135deg, var(--primary), var(--primary-light));

    --secondary: #68d391;
    --accent: #f687b3;

    /* Grayscale Palette */
    --light-gray: #1a202c;
    --medium-gray: #2d3748;
    --dark-gray: #a0aec0;
    --dark: #829fb3;

    /* UI Colors */
    --bg-color: #0f172a;
    /* Deep navy blue background */
    --text-color: #7c8999;
    /* Soft white for text */
    --card-bg: #1e293b;
    /* Slightly lighter than background */
    --border-color: #2d3748;

    /* Special Elements */
    --header-bg: rgba(33, 53, 99, 0.95);
    --glass-bg: rgba(30, 41, 59, 0.85);
    --code-bg: #1a202c;
    --code-text: #637d99;

    /* Shadows - More pronounced in dark mode */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.8);

    /* Status Colors */
    --success: #48bb78;
    --warning: #f6ad55;
    --danger: #f56565;
    --info: #4299e1;
  }


  /* Text Contrast Adjustments */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: var(--dark);
  }

  /* Links */
  a {
    color: var(--primary-light);
  }

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

  /* Cards & Sections */
  .section,
  .card,
  .framework-card,
  .category-card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: var(--shadow-md);
  }

  /* Code Blocks */
  .code-block,
  pre,
  .code-header {
    background-color: var(--code-bg);
    color: var(--code-text);
    border-color: var(--border-color);
  }

  /* Syntax Highlighting for Dark Mode */
  .token.comment {
    color: #7fdbca;
  }

  .token.keyword {
    color: #ff7b72;
    font-weight: bold;
  }

  .token.string {
    color: #a5d6ff;
  }

  .token.function {
    color: #d2a8ff;
  }

  .token.number {
    color: #79c0ff;
  }

  .token.boolean {
    color: #ff7b72;
  }

  .token.selector {
    color: #7ee787;
  }

  .token.property {
    color: #79c0ff;
  }

  /* Navigation */
  .nav-link,
  .sidebar-link {
    color: var(--dark-gray);
  }

  .nav-link:hover,
  .sidebar-link:hover {
    color: var(--primary-light);
    background-color: rgba(127, 156, 245, 0.1);
  }

  /* Forms & Inputs */
  input,
  textarea,
  select {
    background-color: var(--medium-gray);
    color: var(--text-color);
    border-color: var(--border-color);
  }

  /* Tables */
  table {
    border-color: var(--border-color);
  }

  th,
  td {
    border-bottom-color: var(--border-color);
  }

  tr:hover {
    background-color: rgba(127, 156, 245, 0.05);
  }

  /* Special Effects */
  .glass {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* Dark Mode Specific Adjustments */
  .section-header::after,
  h2::after {
    background: var(--primary-gradient);
  }

  /* Footer */
  footer {

    color: var(--dark-gray);
  }

  footer a {
    color: var(--dark-gray);
  }

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

  /* Scrollbars (where supported) */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: var(--medium-gray);
  }

  ::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
  }
}

/* Apply to components */
.dark-mode .feature-card,
.dark-mode .language-card,
.dark-mode .editor-container,
.dark-mode .cheatsheet-item,
.dark-mode .quiz-question,
.dark-mode .quiz-result,
.dark-mode .tree-sidebar,
.dark-mode .quiz-option input {
  --text-color: var(--text-primary);
  /* Use brightest text */
}

.dark-mode .quiz-question,
.dark-mode .tree-sidebar {
  --text-color: var(--text-secondary);
}

.dark-mode #code-output {
  background-color: var(--code-bg);
}


.dark-mode #notepad-content {
  background-color: var(--card-bg);
}

.dark-mode .language-select,
.dark-mode .notepad-btn {
  color: var(--text-primary);
}

/* Special cases for colored text */
.dark-mode .quiz-result.correct {
  color: #50fa7b !important;
  /* Bright success green */
}

.dark-mode .quiz-result.incorrect {
  color: #ff6e6e !important;
  /* Bright error red */
}

/* ===== Dark Mode Styles for Specific Components ===== */
.dark-mode .feature-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

.dark-mode .feature-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dark-mode .language-card {
  background-color: var(--card-bg);
  border-color: var(--border-color);
}

.dark-mode .language-card:hover {
  border-color: var(--primary);
}

.dark-mode .editor-container {
  background-color: var(--code-bg);
  border-color: var(--border-color);
}

.dark-mode .language-select {
  background-color: var(--medium-gray);
  color: var(--text-color);
  border-color: var(--border-color);
}

.dark-mode .notepad-btn:hover {
  background-color: rgba(127, 156, 245, 0.2);
  color: var(--primary-light);
}

.dark-mode .quiz-question {
  background-color: var(--card-bg);
  border-color: var(--border-color);
}

.dark-mode .quiz-result.incorrect {
  background-color: rgba(245, 101, 101, 0.2);
  color: #feb2b2;
}

.dark-mode .quiz-result.correct {
  background-color: rgba(72, 187, 120, 0.2);
  color: #9ae6b4;
}

.dark-mode .cheatsheet-item {
  background-color: var(--card-bg);
  border-color: var(--border-color);
}

.dark-mode .cheatsheet-item h5 {
  color: var(--primary-light);
}



.dark-mode .tree-item>a {
  color: var(--dark-gray);
}

.dark-mode .tree-item>a:hover {
  background-color: rgba(127, 156, 245, 0.1);
  color: var(--primary-light);
}

.dark-mode .tree-item>a.active {
  background-color: rgba(127, 156, 245, 0.2);
  color: var(--primary);
}

.dark-mode .tree-submenu a {
  color: var(--dark-gray);
}

.dark-mode .tree-submenu a:hover {
  color: var(--primary-light);
}

.dark-mode header {
  background-color: rgb(34, 38, 88);
  backdrop-filter: blur(8px);
  border-bottom: 9px inset rgb(4, 1, 5);
  -webkit-backdrop-filter: blur(8px);

}

.dark-mode header h1 {
  color: var(--primary-light);
  background: none;
  -webkit-background-clip: text;
  background-clip: text;
}


.dark-mode button {
  background-color: var(--card-bg);
  color: var(--text-color);

  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);

}

* {
  color: rgb(114, 114, 155);

}

.dark-mode * {
  --primary: #7c8ca5;
  --primary-light: #616b79;
  --primary-dark: #756f5a;
  --primary-gradient: linear-gradient(135deg, var(--primary), var(--primary-light));
  --secondary: #7cc47c;
  --accent: #ff8e8e;
  --light-gray: #342138;
  --medium-gray: #4a5568;
  --dark-gray: #556479;
  --dark: #554f5f;
  --code-bg: #1b222e;
  --code-text: #5c6064;
  --bg-color: #1a202c;
  --text-color: #9299a0;
  --card-bg: #2d3748;
  --border-color: #4a5568;
  --header-bg: rgba(45, 55, 72, 0.95);
  --glass-bg: rgba(45, 55, 72, 0.85);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
  --nav-link: #657386;
}

@media only screen and (max-width: 768px) and (min-resolution: 300dpi) {
  :root {
    --sidebar-width: 220;
    --header-height: 40px;
  }


  .container {
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
  }

  /* Header adjustments */
  header {
    height: var(--header-height);
    padding: 0 15px;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .header-btn {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }

  /* Main content adjustments */
  main {
    margin-left: 0;
    padding: 1.5rem 0;
  }

  /* Hero section */
  .hero {
    padding: 2rem 1rem;
    border-radius: 8px;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

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

  /* Features grid */
  .features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  /* Language grid */
  .language-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Editor section */
  .editor-container {
    padding: 1rem;
  }

  .code-display {
    font-size: 0.85rem;
    min-height: 150px;
  }

  /* Sidebar - make it overlay */
  .tree-sidebar {
    width: 280px;
    transform: translateX(-100%);
    z-index: 1100;
  }

  .tree-sidebar.active {
    transform: translateX(0);
  }

  .tree-sidebar.collapsed {
    transform: translateX(-280px);
  }

  /* Footer adjustments */
  footer {
    padding: 2rem 0 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Section titles */
  .section-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  /* Buttons */
  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Code editor buttons */
  .code-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  /* Hide some elements if needed */
  .scroll-hint {
    display: none;
  }

  /* Ensure proper spacing */
  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .btn {
    width: 100%;
    max-width: 100%;
  }

  /* Notepad adjustments */
  #notepad-content {
    min-height: 250px;
  }

  /* Quiz options */
  .quiz-options {
    grid-template-columns: 1fr;
  }

  /* Cheatsheet categories */
  .cheatsheet-categories {
    padding-bottom: 0;
  }

  /* Make sure everything is properly aligned */
  .header-content,
  .hero-content,
  .features,
  .language-grid,
  .editor-container,
  .quiz-actions {
    width: 100%;
  }

  /* Touch target sizes */
  a,
  button,
  .tree-item>a,
  .cheatsheet-category {
    min-height: 44px;
    min-width: 44px;
  }

  /* Prevent horizontal scrolling */
  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }
}




/* Base Styles */
:root {
  --angular-red: #a06800;
  --angular-dark: #01060c;
  --angular-light: #3b2c0354;
  --angular-accent: #ffd740;
  --text-dark: #212121;
  --text-light: #200707;
  --gray-light: #3f0f0f;
  --gray-medium: #e0e0e0;
  --gray-dark: #757575;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background: linear-gradient(135deg, var(--angular-dark), var(--angular-light));
  color: white;
  padding: 1.2rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border-bottom-left-radius: 40%;
  border-bottom: 6px inset rgb(41, 36, 51);
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="white" stroke-width="0.5" stroke-dasharray="5,5" opacity="0.2"/></svg>');
  opacity: 0.3;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  align-items: baseline;
  display: grid;
  justify-content: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  animation: fadeInDown 0.8s ease;
}

header p {
  display: grid;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0.9;
  position: relative;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

/* Navigation */
nav {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  position: relative;
  animation: fadeIn 0.8s ease 0.4s forwards;
  opacity: 0;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-weight: 500;
  padding: 3px 7px;
  position: relative;
  transition: var(--transition);
  border-bottom: #9c672b 2px solid;
  background-color: rgba(112, 40, 40, 0.1);
  border-radius: 10px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--angular-accent);
  transition: var(--transition);
}

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

nav a:hover::after {
  width: 100%;
}

/* Main Content */
main {
  padding: 3rem 0;
}

section {
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

section:nth-child(1) {
  animation-delay: 0.6s;
}

section:nth-child(2) {
  animation-delay: 0.7s;
}

section:nth-child(3) {
  animation-delay: 0.8s;
}

section:nth-child(4) {
  animation-delay: 0.9s;
}

section:nth-child(5) {
  animation-delay: 1.0s;
}

h2 {
  font-size: 2rem;
  color: var(--angular-dark);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--angular-red), var(--angular-accent));
}

h3 {
  font-size: 1.3rem;
  color: var(--angular-dark);
  margin-bottom: 0.8rem;
}

/* Framework Intro */
.framework-intro p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.framework-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.meta-item {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--angular-red);
  transition: var(--transition);
}

.meta-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.meta-item h3 {
  color: var(--angular-red);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Framework Features */
.framework-features ul {
  list-style: none;
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.dark-mode .framework-features ul {

  background-color: #ffffff0e;

}

.framework-features li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.framework-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--angular-red);
  font-weight: bold;
}

.framework-features strong {
  color: var(--angular-dark);
}

/* Use Cases */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.use-case-card {
  background-color: rgb(228, 228, 248);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 3px solid var(--angular-light);
}

.use-case-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--angular-red);
}

.use-case-card h3 {
  color: var(--angular-dark);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.use-case-card h3::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--angular-accent);
  margin-right: 0.5rem;
  border-radius: 50%;
}

.use-case-card p {
  color: var(--gray-dark);
  line-height: 1.6;
}

/* Code Example */
.code-block {
  background-color: #f3f3f3;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  overflow-x: auto;
  position: relative;
}

.dark-mode .code-block {
  background-color: #263238;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  overflow-x: auto;
  position: relative;
}

.code-block::before {
  content: 'Example';
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--angular-red);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 0 0 8px 0;
  font-size: 0.8rem;
  font-weight: 500;
}

pre {
  white-space: pre-wrap;
  font-family: 'Roboto Mono', monospace;
  color: #eceff1;
  line-height: 1.5;
  margin-top: 1.5rem;
}

code {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9rem;
}

/* Resources */
.framework-resources ul {
  list-style: none;
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.dark-mode .framework-resources ul {
  list-style: none;

  background-color: #4944555d;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.framework-resources li {
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--gray-medium);
}

.framework-resources li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.framework-resources a {
  color: var(--angular-dark);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.framework-resources a:hover {
  color: var(--angular-red);
}

.framework-resources a::before {
  content: '🔗';
  margin-right: 0.5rem;
  font-size: 0.8rem;
}

/* Footer */
footer {

  color: white;
  padding: 2rem 0;
  text-align: center;
}

footer p {
  color: rgba(255, 255, 255, 0.8);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header h1 {
  font-size: 3rem;
  display: flex;

}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    background-color: #7740be;

    height: 140px;
    border-bottom: 9px inset rgb(2, 2, 3);
    border-bottom-left-radius: 20%;

  }

  .footer-bottom {
    background-color: #533e6e !important;
    border-top: 4px inset #425c81 !important;
    height: 70px !important;
    border-top: 9px inset rgba(157, 176, 180, 0.315);
    border-top-left-radius: 20%;

  }

  header h1 {
    font-size: 2.2rem;
    display: flex;

  }

  header p {
    margin: 0;
    font-size: 0.75rem;

  }

  nav ul {
    gap: 0.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .framework-meta {
    grid-template-columns: 1fr;
  }
}

/* Responsive Design */
@media (max-width: 500px) {
  header {
    background-color: #7740be;

    height: 145px;
    border-bottom: 9px inset rgb(2, 2, 3);
    border-bottom-left-radius: 20%;

  }

  .footer-bottom {
    background-color: #533e6e !important;
    border-top: 4px inset #425c81 !important;
    height: 70px !important;
    border-top: 9px inset rgba(157, 176, 180, 0.315);
    border-top-left-radius: 20%;

  }

  header h1 {

    display: flex;

  }

  header p {
    margin: 0;
    font-size: 0.8rem;

  }

  nav ul {
    gap: 0.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .framework-meta {
    grid-template-columns: 1fr;
  }
}

:root {
  --bg-color: #f5f5f5;
  --text-color: #333;
  --card-bg: #fff;
  --border-color: #ddd;
  --neon-blue: #00f5ff;
}

.dark-mode {
  --bg-color: #1a1a2e;
  --text-color: #e6f7ff;
  --card-bg: #16213e;
  --border-color: #2a3a5e;
}

.footer {

  color: white;
  padding: 3rem 1rem 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
}

.footer-column h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #f5f5f5;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column li {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: #ccc;
}

.footer-column li:hover {
  color: #00f5ff;
  cursor: pointer;
  transition: 0.2s;
}

/* Optional: Make links look better on hover */
.footer-column a {
  color: inherit;
  text-decoration: none;
}

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

/* ===== CORE ANIMATIONS ===== */
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes gradientPulse {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ===== ELEMENT-SPECIFIC ANIMATIONS ===== */
/* Header entrance */
.header {
  animation: slideIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

/* Main content stagger */
main {
  opacity: 0;
  animation: fadeIn 0.6s 0.3s ease-out forwards;
}

section {
  opacity: 0;
  transform: translateY(20px);
  animation: slideIn 0.6s ease-out forwards;
}

section:nth-child(1) {
  animation-delay: 0.4s;
}

section:nth-child(2) {
  animation-delay: 0.5s;
}

section:nth-child(3) {
  animation-delay: 0.6s;
}

section:nth-child(4) {
  animation-delay: 0.7s;
}

/* Card animations */
.card,
.framework-card,
.use-case-card,
.meta-item {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  animation:
    slideIn 0.6s ease-out forwards,
    scaleIn 0.4s ease-out forwards;
}

.card:nth-child(1) {
  animation-delay: 0.4s;
}

.card:nth-child(2) {
  animation-delay: 0.5s;
}

.card:nth-child(3) {
  animation-delay: 0.6s;
}

.framework-card:nth-child(1) {
  animation-delay: 0.5s;
}

.framework-card:nth-child(2) {
  animation-delay: 0.6s;
}

.framework-card:nth-child(3) {
  animation-delay: 0.7s;
}

/* Gradient pulse for primary elements */
.header,
.btn-primary {
  background-size: 200% auto;
  animation: gradientPulse 8s ease infinite;
}

/* ===== HOVER EFFECTS ===== */
/* Card hover effects */
.card:hover,
.framework-card:hover,
.use-case-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Button hover effects */
.btn {
  transition: all 0.3s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  animation: gradientPulse 4s ease infinite;
}

/* Link underline animation */
nav a {
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

nav a:hover::after {
  width: 100%;
}

/* ===== SPECIAL EFFECTS ===== */
/* Floating elements */
.floating {
  animation: float 4s ease-in-out infinite;
}

/* Pulsing attention-grabber */
.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* Background video treatment */
#bgVideo {
  opacity: 0;
  animation: fadeIn 2s 0.5s ease-out forwards;
  transition: opacity 1s ease;
}

/* ===== DARK MODE TRANSITIONS ===== */
body,
.card,
.header {
  transition:
    background-color 0.6s ease,
    color 0.6s ease,
    border-color 0.6s ease;
}

/* ===== SCROLL-BASED ANIMATIONS ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

[data-animate="visible"] {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {

  /* Keep essential animations */
  #bgVideo {
    animation: fadeIn 1s ease-out forwards;
  }

  /* Touch-friendly hover states */
  .btn:active {
    transform: scale(0.98);
  }
}

/* ===== UTILITY CLASSES ===== */
.animate-delay-100 {
  animation-delay: 0.1s;
}

.animate-delay-200 {
  animation-delay: 0.2s;
}

.animate-delay-300 {
  animation-delay: 0.3s;
}

.animate-delay-400 {
  animation-delay: 0.4s;
}

.animate-duration-500 {
  animation-duration: 0.5s;
}

.animate-duration-700 {
  animation-duration: 0.7s;
}

.animate-duration-1000 {
  animation-duration: 1s;
}


.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

header p {
  color: #a2a4aa;
  margin: auto;
}

[class*="meta"] {
  background-color: #f5f5fc;
  /* your custom color */
  color: #352b2b;
  padding: 1rem;
  border-radius: 6px;
}

[class*="meta"] {
  background-color: var(--meta-bg-color);

  padding: 1rem;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tutorial-details {
  background-color: #dfe1e4;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tutorial-details h3 {
  color: #2c3e50;
  margin-top: 0;
}

.topic-list {
  columns: 2;
  column-gap: 30px;
}

.topic-list li {
  margin-bottom: 8px;
  break-inside: avoid;
}

.dark-mode .tutorial-details {
  background-color: #1e2531;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dark-mode .tutorial-details h3,
h2 {
  color: #716099;
  margin-top: 0;
}

.dark-mode .topic-list {
  columns: 2;
  column-gap: 30px;
}

.dark-mode .topic-list li {
  margin-bottom: 8px;
  break-inside: avoid;
}

@media (max-width: 768px) {
  .topic-list {
    columns: 1;
  }
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #495057;
  color: #adb5bd;
  font-size: 0.9rem;
}

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

.social-links a {
  color: #adb5bd;
  font-size: 1.2rem;
  transition: color 0.2s;
}

.social-links a:hover {
  color: white;
}

@media (max-width: 500px) {
  footer {
    padding: 1.5rem 0.5rem 1rem;
  }

  .footer-content {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
  }

  .footer-column {
    display: table-cell;
    vertical-align: top;
    padding: 0 0.3rem;
    width: 33.33%;
    /* 3 columns */
  }

  .footer-column h4 {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    color: white;
    text-align: center;
  }

  .footer-column ul {
    padding-left: 0;
    margin: 0;
  }

  .footer-column li {
    margin-bottom: 0.3rem;
    text-align: center;
    list-style: none;
  }

  .footer-column a {
    font-size: 0.65rem;
    color: #adb5bd;
    text-decoration: none;
    display: block;
    padding: 0.1rem 0;
  }

  .footer-bottom {
    font-size: 0.6rem;
    padding-top: 0.8rem;
  }

  .social-links {
    margin-top: 0.5rem;
  }

  .social-links a {
    font-size: 0.9rem;
    padding: 0 0.2rem;
  }
}

/* Adjust for very small screens */
@media (max-width: 350px) {
  .footer-column {
    width: 50%;
    /* 2 columns */
  }

  .footer-column:nth-child(3) {
    display: none;
    /* Hide third column */
  }

  .footer-column a {
    font-size: 0.6rem;
  }

  .footer-bottom {
    font-size: 0.55rem;
  }
}

/* Resources Section Styles */
/* Resources Section Styles */
.resource-card,
.book-card,
.course-card,
.blog-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover,
.book-card:hover,
.course-card:hover,
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.resource-meta,
.book-meta,
.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #666;
}

.tags,
.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag,
.topic {
  background: #f0f0f0;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Book specific styles */
.book-card {
  display: flex;
  gap: 1.5rem;
}

.book-cover {
  flex: 0 0 120px;
}

.book-cover img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.book-details {
  flex: 1;
}

.book-author {
  color: #666;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.level {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
}

.level.beginner {
  background: #e3f2fd;
  color: #1976d2;
}

.level.intermediate {
  background: #e8f5e9;
  color: #388e3c;
}

.level.advanced {
  background: #fce4ec;
  color: #c2185b;
}

/* Course specific styles */
.course-header {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.platform {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
}

.platform.coursera {
  background: #0056d2;
  color: white;
}

.platform.udemy {
  background: #a435f0;
  color: white;
}

.platform.edx {
  background: #0a2d66;
  color: white;
}

.platform.free {
  background: #4caf50;
  color: white;
}

.free-badge {
  background: #ff9800;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
}

.rating {
  color: #ffc107;
  font-size: 0.9rem;
}

.rating span {
  color: #666;
  margin-left: 0.5rem;
}

/* Blog specific styles */
.blog-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.category {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
}

.category.frontend {
  background: #e3f2fd;
  color: #1976d2;
}

.category.backend {
  background: #f3e5f5;
  color: #8e24aa;
}

.category.devops {
  background: #e0f7fa;
  color: #00acc1;
}

.category.data {
  background: #f1f8e9;
  color: #7cb342;
}

.category.mobile {
  background: #fff3e0;
  color: #fb8c00;
}

.frequency {
  color: #666;
  font-size: 0.8rem;
}

.rss-link {
  color: #ff9800;
  margin-left: 1rem;
}

/* Filter controls */
.filter-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-select {
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: white;
}

.platform-tabs,
.blog-categories {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tab-btn,
.category-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  background: #f0f0f0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.tab-btn:hover,
.category-btn:hover {
  background: #e0e0e0;
}

.tab-btn.active,
.category-btn.active {
  background: #2196f3;
  color: white;
}

/* Search and newsletter */
.search-container {
  display: flex;
  margin-bottom: 1.5rem;
}

.search-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}

.search-button {
  padding: 0 1rem;
  background: #2196f3;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.newsletter-section {
  background: #f5f5f5;
  padding: 2rem;
  border-radius: 8px;
  margin-top: 2rem;
  text-align: center;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 1rem auto 0;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 0 1.5rem;
  background: #2196f3;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .book-card {
    flex-direction: column;
  }

  .book-cover {
    flex: 0 0 auto;
    margin-bottom: 1rem;
  }
}

/* Resource Page Specific Styles */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.category-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid rgb(51, 51, 50);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-card h3 {
  margin-top: 0;
  color: #2196f3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-card p {
  color: #555;
  margin: 0.5rem 0 1rem;
}

.resource-count {
  background: #f5f5f5;
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  text-align: center;
  font-weight: bold;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.framework-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.framework-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.resource-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #2196f3;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0 8px 0 4px;
  font-size: 0.75rem;
  font-weight: bold;
}

.framework-card h3 {
  margin-top: 0;
  color: #333;
}

.framework-card p {
  color: #666;
  margin: 0.5rem 0 1rem;
}

.resource-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #666;
}

.rating {
  color: #ff9800;
  font-weight: bold;
}

.type {
  background: #f5f5f5;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.section-footer {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
  text-align: center;
}

.section-footer h3 {
  margin-top: 0;
}


.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: #fff;
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {

  .category-grid,
  .framework-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Resource Finder Specific Styles */
.finder-container {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.finder-sidebar {
  flex: 0 0 350px;
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.finder-step {
  display: none;
}

.finder-step.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #2196f3;
  color: white;
  border-radius: 50%;
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.topic-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0.5rem;
  background: #f5f5f5;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.topic-btn i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #2196f3;
}

.topic-btn span {
  font-weight: 600;
}

.topic-btn:hover {
  background: #e3f2fd;
  transform: translateY(-3px);
}

.topic-btn.active {
  background: #2196f3;
  color: white;
}

.topic-btn.active i {
  color: white;
}

.level-options {
  margin-top: 1.5rem;
}

.level-card {
  padding: 1rem;
  margin-bottom: 1rem;
  background: #f5f5f5;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.level-card h4 {
  margin: 0 0 0.5rem;
}

.level-card p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

.level-progress {
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: #2196f3;
}

.level-card:hover {
  background: #e3f2fd;
}

.level-card.active {
  background: #2196f3;
  color: white;
}

.level-card.active p {
  color: rgba(255, 255, 255, 0.8);
}

.level-card.active .progress-bar {
  background: white;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.format-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #f5f5f5;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.format-btn i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #2196f3;
}

.format-btn span {
  font-weight: 600;
}

.format-btn small {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.25rem;
}

.format-btn:hover {
  background: #e3f2fd;
}

.format-btn.active {
  background: #2196f3;
  color: white;
}

.format-btn.active i,
.format-btn.active small {
  color: white;
}

.time-options {
  margin-top: 1.5rem;
}

.time-card {
  padding: 1.5rem 1rem;
  margin-bottom: 1rem;
  background: #f5f5f5;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.time-card h4 {
  margin: 0 0 0.5rem;
}

.time-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.time-icon {
  margin-top: 1rem;
  font-size: 1.5rem;
  color: #2196f3;
}

.time-card:hover {
  background: #e3f2fd;
}

.time-card.active {
  background: #2196f3;
  color: white;
}

.time-card.active p {
  color: rgba(255, 255, 255, 0.8);
}

.time-card.active .time-icon {
  color: white;
}

.finder-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.finder-results {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-height: 500px;
}

.results-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
  text-align: center;
}

.placeholder-content i {
  color: #e0e0e0;
  margin-bottom: 1rem;
}

.placeholder-content h3 {
  margin: 0.5rem 0;
}

.placeholder-content p {
  color: #666;
}

.results-container {
  padding: 1.5rem;
}

.results-header {
  margin-bottom: 1.5rem;
}

.results-summary {
  background: #f5f5f5;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.results-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.results-filter label {
  font-weight: 600;
}

.results-filter select {
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.resource-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.resource-type {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.resource-card h4 {
  margin: 0 0 0.5rem;
}

.resource-card p {
  margin: 0 0 1rem;
  color: #666;
  font-size: 0.9rem;
}

.resource-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #999;
}

.resource-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}

.resource-actions .btn {
  flex: 1;
  padding: 0.5rem;
  font-size: 0.8rem;
}

.results-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .finder-container {
    flex-direction: column;
  }

  .finder-sidebar {
    flex: 0 0 auto;
  }
}

@media (max-width: 576px) {

  .topic-grid,
  .format-grid {
    grid-template-columns: 1fr;
  }

  .finder-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .finder-nav .btn {
    flex: 1;
  }
}

/* Ultra Pro Design - 3D Cards and Glassmorphism for .tutorial-details */
.tutorial-details {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.1) inset;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  transition: all 0.4s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.tutorial-details:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4),
    0 5px 15px rgba(0, 0, 0, 0.3) inset;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Title and subtitle styles */
.tutorial-details h3 {
  font-size: 1.8rem;
  color: #20252e;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  transition: color 0.3s;
}

.dark-mode .tutorial-details h3 {
  color: #e3ecf7;
}

/* Glow effect on hover */
.tutorial-details:hover h3 {
  color: #a09472;
  text-shadow: 0 0 5px #00d4ff, 0 0 15px #00d4ff;
}

/* Description text */
.tutorial-details p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.dark-mode .tutorial-details p {
  color: #c5d1e1;
}

/* Topic List Styling */
.topic-list {
  columns: 2;
  column-gap: 30px;
  padding-left: 20px;
  margin-top: 15px;
}

.topic-list li {
  list-style: disc;
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: #555;
  transition: color 0.3s ease;
}

.tutorial-details:hover .topic-list li {
  color: #222;
}

.dark-mode .topic-list li {
  color: #adb8c7;
}

.dark-mode .tutorial-details:hover .topic-list li {
  color: #ffffff;
}

/* Ordered List inside Learning Paths */
.tutorial-details ol {
  padding-left: 25px;
  margin-top: 15px;
}

.tutorial-details ol li {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: #444;
}

.dark-mode .tutorial-details ol li {
  color: #c9d4e3;
}

/* Responsive columns */
@media (max-width: 768px) {
  .topic-list {
    columns: 1;
  }
}

/* 3D Animation on hover */
.tutorial-details:hover {
  animation: tilt 1.6s ease-in-out infinite alternate;
}

@keyframes tilt {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }

  100% {
    transform: rotateX(2deg) rotateY(2deg);
  }
}

:root {
  /* Color Variables */
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --accent-color: #e74c3c;
  --text-color: #2c3e50;
  --text-light: #7f8c8d;
  --bg-color: #ffffff;
  --card-bg: #ffffff;
  --border-color: #ecf0f1;
  --shadow-color: rgba(0, 0, 0, 0.1);

  /* Roadmap Colors */
  --frontend-color: #3498db;
  --backend-color: #8e44ad;
  --mobile-color: #f39c12;
  --devops-color: #16a085;
  --fullstack-color: #d35400;
  --ai-color: #e74c3c;

  /* Dark Theme */
  --dark-primary: #2980b9;
  --dark-secondary: #27ae60;
  --dark-accent: #c0392b;
  --dark-text: #ecf0f1;
  --dark-text-light: #bdc3c7;
  --dark-bg: #1a1a1a;
  --dark-card-bg: #2c3e50;
  --dark-border: #34495e;
  --dark-shadow: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] {
  --primary-color: var(--dark-primary);
  --secondary-color: var(--dark-secondary);
  --accent-color: var(--dark-accent);
  --text-color: var(--dark-text);
  --text-light: var(--dark-text-light);
  --bg-color: var(--dark-bg);
  --card-bg: var(--dark-card-bg);
  --border-color: var(--dark-border);
  --shadow-color: var(--dark-shadow);
}

/* Responsive Breakpoints */
@media (min-width: 1200px) {
  :root {
    --base-padding: 2rem;
    --title-size: 2.5rem;
    --step-padding: 1.5rem;
    --tab-padding: 0.8rem 1.5rem;
    --step-title-size: 1.3rem;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  :root {
    --base-padding: 1.5rem;
    --title-size: 2rem;
    --step-padding: 1.2rem;
    --tab-padding: 0.7rem 1.2rem;
    --step-title-size: 1.2rem;
  }
}

@media (max-width: 767px) {
  :root {
    --base-padding: 1rem;
    --title-size: 1.5rem;
    --step-padding: 1rem;
    --tab-padding: 0.6rem 1rem;
    --step-title-size: 1.1rem;
  }
}

/* Container */
.roadmap-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--base-padding);
  perspective: 1000px;
  transition: all 0.3s ease;
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  background: var(--primary-color);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--shadow-color);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(30deg);
}

/* Tabs */
.roadmap-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 1rem;
  transform-style: preserve-3d;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--border-color);
  /* Center the scroll container itself */
  width: fit-content;
  margin-left: auto;
  margin-right: auto;

  /* Scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--border-color);
}

.roadmap-tabs::-webkit-scrollbar {
  height: 6px;
}

.roadmap-tabs::-webkit-scrollbar-track {
  background: var(--border-color);
  border-radius: 10px;
}

.roadmap-tabs::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.roadmap-tab {
  padding: var(--tab-padding);
  background: var(--text-color);
  color: var(--bg-color);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
  font-weight: 500;
  box-shadow: 0 4px 6px var(--shadow-color);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  flex-shrink: 0;
}

.roadmap-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 50%);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.roadmap-tab:hover::before {
  transform: translateY(0);
}

.roadmap-tab.active {
  transform: scale(1.05) translateZ(20px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 6px 6px rgba(0, 0, 0, 0.1);
}

/* Roadmap-specific tab colors */
.roadmap-tab[data-roadmap="frontend"] {
  background: var(--frontend-color);
}

.roadmap-tab[data-roadmap="backend"] {
  background: var(--backend-color);
}

.roadmap-tab[data-roadmap="mobile"] {
  background: var(--mobile-color);
}

.roadmap-tab[data-roadmap="devops"] {
  background: var(--devops-color);
}

.roadmap-tab[data-roadmap="fullstack"] {
  background: var(--fullstack-color);
}

.roadmap-tab[data-roadmap="ai"] {
  background: var(--ai-color);
}

/* Content */
.roadmap-content {
  display: none;
  opacity: 0;
  transform: rotateY(20deg) translateY(20px);
  transform-origin: top center;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: blur(2px);
}

.roadmap-content.active {
  display: block;
  opacity: 1;
  transform: rotateY(0) translateY(0);
  filter: blur(0);
}

.roadmap-header {
  text-align: center;
  margin-bottom: 2rem;
}

.roadmap-title {
  font-size: var(--title-size);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.roadmap-title1 {
  font-size: var(--title-size);
  margin-bottom: 0.5rem;
  font-size: 3.2rem;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .roadmap-title1 {
    font-size: 2.3rem;
  }
}


.roadmap-description {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Tree Structure */
.roadmap-tree {
  position: relative;
  padding-left: 2rem;
  margin-left: 1rem;
  transform-style: preserve-3d;
}

/* Roadmap-specific tree colors */
#frontend-roadmap .roadmap-tree {
  border-left: 2px solid var(--frontend-color);
}

#backend-roadmap .roadmap-tree {
  border-left: 2px solid var(--backend-color);
}

#mobile-roadmap .roadmap-tree {
  border-left: 2px solid var(--mobile-color);
}

#devops-roadmap .roadmap-tree {
  border-left: 2px solid var(--devops-color);
}

#fullstack-roadmap .roadmap-tree {
  border-left: 2px solid var(--fullstack-color);
}

#ai-roadmap .roadmap-tree {
  border-left: 2px solid var(--ai-color);
}

/* Steps */
.roadmap-step {
  position: relative;
  padding: var(--step-padding);
  margin-bottom: 2rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 8px 20px var(--shadow-color);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  overflow: hidden;
  transform: translateZ(0);
  border: 1px solid var(--border-color);
}

.roadmap-step::before {
  content: '';
  position: absolute;
  left: -2.1rem;
  top: 2rem;
  width: 1rem;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s ease;
}

.roadmap-step::after {
  content: '';
  position: absolute;
  left: -2.7rem;
  top: 1.7rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--primary-color);
  border: 3px solid var(--bg-color);
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
  transition: all 0.3s ease;
  transform: translateZ(10px);
}

/* Roadmap-specific step markers */
#frontend-roadmap .roadmap-step::before,
#frontend-roadmap .roadmap-step::after {
  background: var(--frontend-color);
}

#backend-roadmap .roadmap-step::before,
#backend-roadmap .roadmap-step::after {
  background: var(--backend-color);
}

#mobile-roadmap .roadmap-step::before,
#mobile-roadmap .roadmap-step::after {
  background: var(--mobile-color);
}

#devops-roadmap .roadmap-step::before,
#devops-roadmap .roadmap-step::after {
  background: var(--devops-color);
}

#fullstack-roadmap .roadmap-step::before,
#fullstack-roadmap .roadmap-step::after {
  background: var(--fullstack-color);
}

#ai-roadmap .roadmap-step::before,
#ai-roadmap .roadmap-step::after {
  background: var(--ai-color);
}

.roadmap-step:hover {
  transform: translateY(-5px) translateZ(10px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

.roadmap-step.active {
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 10px 25px rgba(52, 152, 219, 0.2);
  transform: translateZ(20px);
}

.roadmap-step.completed {
  background: rgba(56, 60, 73, 0.096);
}

.roadmap-step.completed .step-title {
  color: var(--secondary-color);
}

.roadmap-step.completed::after {
  background: var(--secondary-color);
  content: '✓';
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

/* Step Content */
.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.step-title {
  font-size: var(--step-title-size);
  font-weight: 600;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: color 0.3s ease;
}

.step-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
  flex-shrink: 0;
}

/* Roadmap-specific icons */
#frontend-roadmap .step-icon {
  background: var(--frontend-color);
}

#backend-roadmap .step-icon {
  background: var(--backend-color);
}

#mobile-roadmap .step-icon {
  background: var(--mobile-color);
}

#devops-roadmap .step-icon {
  background: var(--devops-color);
}

#fullstack-roadmap .step-icon {
  background: var(--fullstack-color);
}

#ai-roadmap .step-icon {
  background: var(--ai-color);
}

.step-level {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.level-beginner {
  background: rgba(39, 174, 96, 0.1);
  color: var(--secondary-color);
}

.level-intermediate {
  background: rgba(52, 152, 219, 0.1);
  color: var(--primary-color);
}

.level-advanced {
  background: rgba(231, 76, 60, 0.1);
  color: var(--accent-color);
}

.step-content {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.step-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.roadmap-step.active .step-details {
  max-height: 500px;
  margin-top: 1rem;
}

.step-milestones {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
}

.milestone {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-light);
}

.milestone::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.milestone.completed {
  color: var(--secondary-color);
}

.milestone.completed::before {
  content: '✓';
  color: var(--secondary-color);
}

/* Progress Bar */
.roadmap-progress {
  height: 10px;
  background: var(--border-color);
  border-radius: 10px;
  margin-bottom: 3rem;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px var(--shadow-color);
  transform: translateZ(0);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  transform: translateZ(0);
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.3) 0%,
      rgba(255, 255, 255, 0) 50%,
      rgba(255, 255, 255, 0.3) 100%);
  animation: progressShine 2s infinite;
}

.progress-text {
  position: absolute;
  right: 0;
  top: -25px;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 600;
}

/* Actions */
.roadmap-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.action-btn {
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  border: none;
  transform: translateZ(0);
  box-shadow: 0 4px 6px var(--shadow-color);
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: all 0.6s ease;
}

.action-btn:hover::before {
  left: 100%;
}

.save-roadmap {
  background: var(--primary-color);
  color: white;
}

.save-roadmap:hover {
  background: var(--primary-color);
  transform: translateY(-3px) translateZ(10px);
  box-shadow: 0 8px 15px rgba(52, 152, 219, 0.3);
}

.roadmap-stats {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Badges */
.badges-container {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 4px var(--shadow-color);
}

.badge-skill {
  background: rgba(52, 152, 219, 0.1);
  color: var(--primary-color);
}

.badge-time {
  background: rgba(231, 76, 60, 0.1);
  color: var(--accent-color);
}

.badge-project {
  background: rgba(39, 174, 96, 0.1);
  color: var(--secondary-color);
}

/* Animations */
@keyframes roadmapIn {
  0% {
    opacity: 0;
    transform: rotateY(30deg) translateY(30px);
    filter: blur(5px);
  }

  100% {
    opacity: 1;
    transform: rotateY(0) translateY(0);
    filter: blur(0);
  }
}

@keyframes roadmapOut {
  0% {
    opacity: 1;
    transform: rotateY(0) translateY(0);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: rotateY(-30deg) translateY(30px);
    filter: blur(5px);
  }
}

.roadmap-content.animating-in {
  animation: roadmapIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.roadmap-content.animating-out {
  animation: roadmapOut 0.4s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

@keyframes progressShine {
  0% {
    transform: translateX(-100%);
  }

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

/* Responsive Adjustments */
@media (max-width: 1199px) {
  .roadmap-container {
    padding: 1.5rem;
  }

  .roadmap-title {
    font-size: 2rem;
  }

  .roadmap-step {
    padding: 1.2rem;
  }

  .step-title {
    font-size: 1.2rem;
  }

  .roadmap-tree {
    padding-left: 1.5rem;
    margin-left: 0.5rem;

  }

  .roadmap-step::before {
    left: -1.6rem;
    width: 0.8rem;
  }

  .roadmap-step::after {
    left: -1.9rem;
    width: 1rem;
    height: 1rem;
  }
}

@media (min-width: 800px) {
  .roadmap-tree {
    column-count: 2;
    column-gap: 2rem;
    /* adjust spacing between columns */
  }
}

@media (max-width: 767px) {
  .roadmap-container {
    padding: 1rem;
  }

  .roadmap-title {
    font-size: 1.5rem;
  }

  .roadmap-description {
    font-size: 1rem;
  }

  .roadmap-step {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .step-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .step-level {
    align-self: flex-start;
  }

  .roadmap-tree {
    padding-left: 1rem;
    margin-left: 0.5rem;
  }

  .roadmap-step::before {
    left: -1.1rem;
    top: 1.5rem;
  }

  .roadmap-step::after {
    left: -1.4rem;
    top: 1.2rem;
    width: 0.8rem;
    height: 0.8rem;
  }

  .roadmap-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .action-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .roadmap-tabs {
    gap: 0.5rem;
  }

  .roadmap-tab {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  .step-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .step-title {
    font-size: 1rem;
  }

  .roadmap-step::before {
    display: none;
  }

  .roadmap-step::after {
    display: none;
  }

  .roadmap-tree {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }
}

/* Viewport Transition Effects */
@media (prefers-reduced-motion: no-preference) {
  .roadmap-container {
    transition: all 0.4s ease;
  }

  .roadmap-tab,
  .roadmap-step,
  .action-btn {
    transition: all 0.3s ease;
  }

  @media (min-width: 768px) {
    .roadmap-step:hover {
      transform: translateY(-5px) translateZ(10px);
    }
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }

  .theme-toggle,
  .save-roadmap {
    display: none;
  }

  .roadmap-step {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .roadmap-content {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ===== FOOTER STYLES ===== */
.footer {
  border-top-left-radius: 120px;
  border-top-right-radius: 20px;
  background-color: #807fd8;
  color: white;
  padding: 3rem 1rem 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
}

.footer-column h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #f5f5f5;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column li {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: #ccc;
  transition: color 0.2s ease;
}

.footer-column li:hover {
  color: var(--neon-blue, #00f5ff);
  cursor: pointer;
}

.footer-column a {
  color: inherit;
  text-decoration: none;
}

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

.footer-bottom {
  text-align: center;

  border-top: 1px solid #495057;
  color: #adb5bd;
  font-size: 0.9rem;
}

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

.social-links a {
  color: #adb5bd;
  font-size: 1.2rem;
  transition: color 0.2s, transform 0.3s ease;
}

.social-links a:hover {
  color: white;
  transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 1000px) {
  .footer {
    padding: 1.2rem 0.2rem 0.5rem;
  }

  .footer-content {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
  }

  .footer-column {
    display: table-cell;
    vertical-align: top;
    padding: 0 0.3rem;
    width: 33.33%;
    /* 3 columns */
  }

  .footer-column h4 {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    color: white;
    text-align: center;
  }

  .footer-column ul {
    padding-left: 0;
    margin: 0;
  }

  .footer-column li {
    margin-bottom: 0.3rem;
    text-align: center;
    list-style: none;
    font-size: 0.65rem;
  }

  .social-links {
    margin-top: 0.5rem;
  }

  .social-links a {
    font-size: 0.9rem;
    padding: 0 0.2rem;
  }

  .footer-bottom {
    font-size: 0.6rem;
    padding-top: 0.8rem;
  }
}

/* Adjust for very small screens */
@media (max-width: 350px) {
  .footer-column {
    width: 50%;
    /* 2 columns */
  }

  .footer-column:nth-child(3) {
    display: none;
    /* Hide third column */
  }

  .footer-column a {
    font-size: 0.6rem;
  }

  .footer-bottom {
    font-size: 0.55rem;
  }
}

/* Dark mode adjustments */
.dark-mode .footer {
  background-color: #28292c2c;
}

.dark-mode .footer-column h4 {
  color: var(--text-light, #e6f7ff);
}

.dark-mode .footer-column li {
  color: var(--text-muted, #a0aec0);
}

.dark-mode .footer-column li:hover {
  color: var(--primary-light, #7f9cf5);
}

.dark-mode .footer-bottom {
  color: var(--text-muted, #a0aec0);
  border-top-color: var(--border-color, #a3a9b3);

}

.dark-mode .social-links a {
  color: var(--text-muted, #a0aec0);
}

.dark-mode .social-links a:hover {
  color: var(--primary-light, #7f9cf5);
}

.dark-mode .category-card {
  background-color: #342b3f;
}

.dark-mode .use-case-card {
  background-color: #2b223a;

}

.language-resources {
  margin-left: 5%;
}

.dark-mode .framework-card {
  background-color: #1e303362;

}

.dark-mode h3 {
  color: #426aa1;
}

.dark-mode .footer-bottom {
  background-color: #111831 !important;
  border-top-left-radius: 200px 50%;
  height: 60px;
  border-top: 9px inset rgb(71, 44, 167) !important;
}

.dark-mode .type {
  background-color: #282829;
  color: white;
}

.dark-mode .section-footer {
  background-color: #2e2f3d;
  border-top: 5px inset rgb(128, 133, 177);
}

.category-card {
  background: #a274ce33 !important;
  border-top: 5px solid #765ba1 !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  color: #3b3b3b !important;
  box-shadow: 0 5px 15px rgba(176, 104, 255, 0.1) !important;
  text-align: center !important;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.3s ease !important;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  perspective: 800px;
  cursor: pointer !important;

}

.category-card:hover {
  transform: scale(1.05) rotateX(4deg) rotateY(4deg) !important;
  box-shadow: 0 15px 40px rgba(176, 104, 255, 0.3) !important;
  background: #f8f0ff !important;
}

.category-card h3 {
  font-size: 1.5rem !important;
  margin-bottom: 1rem !important;
  color: #b068ff !important;
  /* Soft violet */
}

.category-card p {
  font-size: 1.05rem !important;
  color: #555 !important;
  line-height: 1.6 !important;
}

h2 {
  margin-top: 0;
  font-weight: bolder;
  font-size: 35px;
}


:root {
  /* Light Theme */
  --bg-color: #f6f8fa;
  --text-color: #24292e;
  --card-bg: #ffffff;
  --border-color: #d0d7de;
  --accent-color: #0969da;
  --button-bg: #d2dee7;
  --button-hover: #dce3ea;
  --editor-bg: #c6cfd81e;
  --console-bg: #d5e1ec91;
  --output-bg: #e2e2e907;
  --scrollbar-color: #c1c1c1;
}

.dark-mode {
  /* Dark Theme */
  --bg-color: #444955;
  --text-color: #c9d1d9;
  --card-bg: #080a0e;
  --border-color: #30363d;
  --accent-color: #58a6ff;
  --button-bg: #21262d;
  --button-hover: #30363d;
  --editor-bg: #201829;
  --console-bg: #090b0f;
  --output-bg: #1e2836;
  --scrollbar-color: #40464e;
}

/* Base transition for body */
body {
  transition: background-color 0.6s ease, color 0.6s ease;
  position: relative;
  overflow-x: hidden;
}

/* Fullscreen animation overlay */
#dark-mode-transition {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(circle, #00f5ff88 0%, #000000cc 100%);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

/* Trigger animation */
body.dark-mode #dark-mode-transition {
  animation: darkBoom 0.8s ease forwards;
}

/* Keyframes: Ultra Boom Animation */
@keyframes darkBoom {
  0% {
    opacity: 1;
    filter: blur(10px) brightness(2);
    transform: scale(1.1);
  }

  50% {
    opacity: 0.8;
    filter: blur(2px) brightness(1.5);
    transform: scale(1.05);
  }

  100% {
    opacity: 0;
    filter: none;
    transform: scale(1);
  }
}

body {
  transition: background-color 1s ease, color 1s ease, filter 1s ease;
}

body.dark-mode {
  animation: darkModeFade 1s ease-in-out;
}

@keyframes darkModeFade {
  0% {
    opacity: 0.4;
    filter: blur(3px) brightness(1.3);
  }

  100% {
    opacity: 1;
    filter: blur(0) brightness(1);
  }
}

h1,
.card,
.section-title {
  transition: all 1s ease;
}

body.dark-mode h1,
body.dark-mode .card,
body.dark-mode .section-title {
  transform: scale(1.01);
  text-shadow: 0 0 10px rgba(0, 255, 200, 0.3);
}

/* Login Popup Styles */
#login-popup-overlay {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Sidebar Logout Button */
.sidebar-footer {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logout-btn {
  width: 100%;
  padding: 10px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}

.sidebar-logout-btn:hover {
  background: #c0392b;
}

.sidebar-logout-btn i {
  font-size: 14px;
}

/* Light theme variables */
:root {
  --primary-color: #4a90e2;
  --secondary-color: #50e3c2;
  --bg-color: white;
  --card-bg: #ffffff;
  --text-color: #333333;
  --text-muted: #666666;
  --border-radius: 12px;
  --transition-speed: 0.3s;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

main.container {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.language-categories h2 {
  text-align: center;
  color: #716099;
  font-size: 2rem;
  margin-bottom: 2rem;

}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);

  }
}

@media (min-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.category-card {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(120deg,
      rgba(74, 144, 226, 0.1),
      rgba(80, 227, 194, 0.2),
      rgba(74, 144, 226, 0.1));
  transform: skewX(-20deg);
  transition: left var(--transition-speed);
  z-index: 0;
}

.category-card:hover::before {
  left: 0;
}

.category-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(74, 144, 226, 0.3);
}

.category-card h3 {
  margin-top: 0;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.category-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}



.category-card li a {
  display: inline-block;
  text-decoration-line: underline;
  position: relative;
  font-weight: 500;
  transition: color var(--transition-speed);
}

.category-card li a::after {
  content: "";
  display: block;
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width var(--transition-speed);
}

.category-card li a:hover {
  color: var(--text-color);
}

.category-card li a:hover::after {
  width: 100%;
}

main a {
  text-decoration-line: underline;
}

.bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: -1;
}


* {
  background: transparent;
}

.container {
  background: transparent !important;
}

:root {
  /* Light Theme */
  --bg-color: #ffffff;
  --text-color: #333333;
  --card-bg: #f8f9fa;
  --border-color: #e0e0e0;
  --accent-color: #4CAF50;
  --header-bg: #f5f5f5;
  --code-bg: #f0f0f0;
  --code-text: #333333;
  --primary: #4a6fa5;
  --primary-light: #687a96;
  --primary-dark: #9ba9be;
  --secondary: #5cb85c;
  --light-gray: #e9ecef;
  --medium-gray: #dee2e6;
  --dark-gray: #6c757d;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.dark-mode {
  /* Dark Theme */
  --bg-color: #1a1a2e;
  --text-color: #e6f7ff;
  --card-bg: #16213e;
  --border-color: #2a3a5e;
  --accent-color: #4CAF50;
  --header-bg: #0f3460;
  --code-bg: #1b222e;
  --code-text: #5c6064;
  --primary: #7c8ca5;
  --primary-light: #616b79;
  --primary-dark: #756f5a;
  --secondary: #7cc47c;
  --light-gray: #342138;
  --medium-gray: #4a5568;
  --dark-gray: #556479;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Header styles */
header {
  height: 10rem;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

/* Card styles */
.card {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

/* Code block styles */
pre {
  background-color: var(--code-bg);
  color: var(--code-text);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
}

/* Button styles */
button {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

button:hover {
  opacity: 0.9;
}

/* Link styles */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Dark mode toggle button */
.theme-toggle {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 1000;
}

/* Responsive design */
@media (max-width: 768px) {
  .card {
    padding: 1rem;
  }
}
/* Add this to your CSS or style section */
@media screen and (min-width: 1400px) {
  #treeSidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  }
  
  #treeSidebar.collapsed {
    transform: translateY(0);
  }
  
  #treeSidebar ul {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    max-height: 70vh;
  }
  
  #treeSidebar li {
    width: 25%; /* Adjust based on how many columns you want */
    padding: 10px;
    box-sizing: border-box;
  }
  
  #treeToggleBtn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
  }
}
/* Modern Color Palette */
:root {
  /* Light Theme */
  --primary: #6c5ce7;
  --primary-light: #a29bfe;
  --primary-dark: #5649c0;
  --secondary: #00b894;
  --accent: #fd79a8;
  --light-gray: #f5f6fa;
  --medium-gray: #dfe6e9;
  --dark-gray: #636e72;
  --dark: #2d3436;
  --bg-color: #ffffff;
  --text-color: #2d3436;
  --card-bg: #ffffff;
  --header-bg: #ffffff;
  --footer-bg: #f8f9fa;
  --border-color: #dfe6e9;
  --success: #00b894;
  --warning: #fdcb6e;
  --danger: #d63031;
  --info: #0984e3;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dark Theme */
[data-theme="dark"] {
  --primary: #a29bfe;
  --primary-light: #6c5ce7;
  --primary-dark: #5649c0;
  --secondary: #55efc4;
  --accent: #ff7675;
  --light-gray: #2d3436;
  --medium-gray: #636e72;
  --dark-gray: #b2bec3;
  --dark: #dfe6e9;
  --bg-color: #1e272e;
  --text-color: #f5f6fa;
  --card-bg: #2d3436;
  --header-bg: #1e272e;
  --footer-bg: #2d3436;
  --border-color: #636e72;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Times New Roman', Times, serifOxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: 2rem;
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-lg);
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
}

h3 {
  font-size: 1.5rem;
  color: var(--primary);
}

p {
  margin-bottom: var(--space-sm);
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.7;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Header */
header {
  background-color: var(--header-bg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color var(--transition-normal);
}

header h1 {
  text-align: center;
  margin-bottom: var(--space-xs);
}

/* Main Content */
main {
  padding: var(--space-xl) 0;
}

section {
  margin-bottom: var(--space-xl);
}

/* Framework Categories */
.framework-categories {
  margin-bottom: var(--space-xl);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.category-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid var(--border-color);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.category-card h3 {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.category-card h3::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
}

.category-card ul {
  list-style: none;
}

.category-card li {
  margin-bottom: var(--space-xs);
}

.category-card li a {
  display: block;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.category-card li a:hover {
  background-color: rgba(108, 92, 231, 0.1);
  color: var(--primary);
  transform: translateX(4px);
  text-decoration: none;
}

/* Popular Frameworks */
.framework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.framework-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-decoration: none;
  color: var(--text-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.framework-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 0;
}

.framework-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  color: white;
  border-color: transparent;
}

.framework-card:hover::before {
  opacity: 1;
}

.framework-card h3,
.framework-card p {
  position: relative;
  z-index: 1;
  transition: color var(--transition-fast);
}

.framework-card:hover h3,
.framework-card:hover p {
  color: white;
}

/* Framework-specific colors */
.framework-card[href*="react"]:hover::before {
  background: linear-gradient(135deg, #61dafb, #00b4d8);
}

.framework-card[href*="angular"]:hover::before {
  background: linear-gradient(135deg, #dd0031, #c3002f);
}

.framework-card[href*="vue"]:hover::before {
  background: linear-gradient(135deg, #42b883, #35495e);
}

.framework-card[href*="django"]:hover::before {
  background: linear-gradient(135deg, #092e20, #0c4b33);
}

.framework-card[href*="express"]:hover::before {
  background: linear-gradient(135deg, #000000, #333333);
}

.framework-card[href*="flutter"]:hover::before {
  background: linear-gradient(135deg, #02569b, #13b9fd);
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  padding: var(--space-lg) 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  transition: background-color var(--transition-normal);
}

footer p {
  color: var(--dark-gray);
}

/* Dark Mode Toggle */
.theme-toggle {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 100;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  transform: scale(1.1);
  background-color: var(--primary-dark);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-card,
.framework-card {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }

.framework-card:nth-child(1) { animation-delay: 0.2s; }
.framework-card:nth-child(2) { animation-delay: 0.3s; }
.framework-card:nth-child(3) { animation-delay: 0.4s; }
.framework-card:nth-child(4) { animation-delay: 0.5s; }
.framework-card:nth-child(5) { animation-delay: 0.6s; }
.framework-card:nth-child(6) { animation-delay: 0.7s; }

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .category-grid,
  .framework-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .category-card,
  .framework-card {
    padding: var(--space-md);
  }
}

/* Enhanced Dark Mode Transition */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, var(--primary) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: opacity 0.5s ease;
}

body.dark-mode-transition::after {
  opacity: 0.3;
  animation: darkModePulse 1s ease forwards;
}

@keyframes darkModePulse {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.1;
    transform: scale(1.5);
  }
  100% {
    opacity: 0;
    transform: scale(2);
  }
}

