/* CSS Variables for Design System */

      /* Dark Mode Variables */
      .dark-mode {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --text-light: #9ca3af;
        --bg-primary: #111827;
        --bg-secondary: #1f2937;
        --bg-tertiary: #374151;
        --border-color: #374151;
      }




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

      /* Skip to Content Link */
      .skip-link {
        position: absolute;
        top: -40px;
        left: 0;
        background: var(--primary-color);
        color: white;
        padding: 8px;
        z-index: 100;
        transition: top 0.3s;
      }

      .skip-link:focus {
        top: 0;
      }

      /* Hero Section */

      .hero-bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
        pointer-events: none;
        opacity: 0.92;
      }




      /* Main Content */
      .main-content {
        padding: 4rem 0;
      }

      .section {
        margin-bottom: 4rem;
      }

      .section-title {
        font-family: "JetBrains Mono", monospace;
        font-size: 2.25rem;
        font-weight: 600;
        text-align: center;
        margin-bottom: 1rem;
        color: var(--text-primary);
        line-height: 1.2;
      }

      .section-subtitle {
        text-align: center;
        color: var(--text-secondary);
        font-size: 1.125rem;
        max-width: 600px;
        margin: 0 auto 3rem;
        line-height: 1.6;
      }

      /* Resource Cards Grid */
      .resources-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
        margin-bottom: 3rem;
      }

      .resource-card {
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        border-radius: 16px;
        padding: 2rem;
        text-decoration: none;
        color: inherit;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-sm);
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
      }

      .resource-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: var(--gradient-primary);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
      }

      .resource-card:hover,
      .resource-card:focus {
        transform: translateY(-8px);
        box-shadow: var(--shadow-xl);
        border-color: var(--primary-color);
        outline: none;
      }

      .resource-card:hover::before,
      .resource-card:focus::before {
        transform: scaleX(1);
      }

      .resource-header {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
      }

      .resource-icon {
        width: 60px;
        height: 60px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        color: white;
        flex-shrink: 0;
      }

      .resource-icon.python {
        background: linear-gradient(
          135deg,
          var(--python-color) 0%,
          #ffd43b 100%
        );
      }

      .resource-icon.javascript {
        background: linear-gradient(135deg, var(--js-color) 0%, #f0db4f 100%);
        color: #333;
      }

      .resource-icon.html-css {
        background: linear-gradient(
          135deg,
          var(--html-color) 0%,
          var(--css-color) 100%
        );
      }

      .resource-icon.fundamentals {
        background: var(--gradient-primary);
      }

      .resource-info h3 {
        font-size: 1.375rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: var(--text-primary);
        font-family: "JetBrains Mono", monospace;
      }

      .resource-level {
        display: inline-block;
        padding: 0.25rem 0.75rem;
        background: var(--secondary-color);
        color: white;
        font-size: 0.75rem;
        font-weight: 600;
        border-radius: 12px;
      }

      .resource-description {
        color: var(--text-secondary);
        margin-bottom: 1.5rem;
        line-height: 1.6;
        flex-grow: 1;
      }

      .resource-features {
        list-style: none;
        margin-bottom: 1.5rem;
      }

      .resource-features li {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
        color: var(--text-secondary);
      }

      .resource-features li i {
        color: var(--secondary-color);
        width: 16px;
        flex-shrink: 0;
      }

      .resource-cta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
      }

      .cta-text {
        color: var(--primary-color);
        font-weight: 600;
        font-size: 0.9rem;
        font-family: "JetBrains Mono", monospace;
      }

      .cta-arrow {
        color: var(--primary-color);
        transition: transform 0.3s ease;
      }

      .resource-card:hover .cta-arrow,
      .resource-card:focus .cta-arrow {
        transform: translateX(5px);
      }

      /* Advertisement Styles */
      .ad-banner {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: 2px solid var(--primary-color);
        border-radius: 16px;
        padding: 2rem;
        text-align: center;
        margin: 3rem 0;
        position: relative;
        overflow: hidden;
        color: white;
      }

      .ad-banner::before {
        content: "SPONSORED";
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        background: var(--accent-color);
        color: white;
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        font-weight: 600;
        border-radius: 4px;
      }

      .ad-banner h3 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        font-family: "JetBrains Mono", monospace;
      }

      .ad-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1.5rem;
        background: white;
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 600;
        border-radius: 8px;
        transition: all 0.3s ease;
        margin-top: 1rem;
      }

      .ad-btn:hover,
      .ad-btn:focus {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
        outline: none;
      }

      /* Learning Path Section */
      .learning-path {
        background: var(--bg-secondary);
        padding: 4rem 0;
        border-radius: 24px;
        margin: 4rem 0;
      }

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

      .path-card {
        background: var(--bg-primary);
        border-radius: 16px;
        padding: 2rem;
        text-align: center;
        box-shadow: var(--shadow-sm);
        transition: all 0.3s ease;
        text-decoration: none;
        color: inherit;
        position: relative;
      }

      .path-card:hover,
      .path-card:focus {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
        outline: none;
      }

      .path-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto 1rem;
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        color: white;
        font-weight: bold;
      }

      .path-icon.frontend {
        background: linear-gradient(
          135deg,
          var(--html-color) 0%,
          var(--css-color) 50%,
          var(--js-color) 100%
        );
      }

      .path-icon.backend {
        background: linear-gradient(
          135deg,
          var(--python-color) 0%,
          #2e7d32 100%
        );
      }

      .path-icon.fullstack {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      }

      /* Stats Section */

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

      .stat-item {
        text-align: center;
      }



      /* CTA Section */
      .cta-section {
        background: var(--gradient-hero);
        color: white;
        text-align: center;
        padding: 4rem 2rem;
        border-radius: 16px;
        margin: 4rem 0;
      }

      .cta-section h2 {
        font-size: 2.25rem;
        font-weight: 600;
        margin-bottom: 1rem;
        line-height: 1.2;
        font-family: "JetBrains Mono", monospace;
      }

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

      .cta-buttons {
        display: flex;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
      }

      .btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 1rem 2rem;
        background: white;
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 600;
        border-radius: 50px;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-lg);
      }

      .btn:hover,
      .btn:focus {
        transform: translateY(-3px);
        box-shadow: var(--shadow-xl);
        outline: none;
      }

      .btn-secondary {
        background: transparent;
        color: white;
        border: 2px solid white;
      }

      .btn-secondary:hover,
      .btn-secondary:focus {
        background: white;
        color: var(--primary-color);
      }

      /* Footer */
      footer {
        background: var(--bg-secondary);
        color: white;
        padding: 3rem 0 1rem;
        margin-top: 4rem;
      }

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

      .footer-section h3 {
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: 1rem;
        color: var(--primary-color);
        font-family: "JetBrains Mono", monospace;
      }

      .footer-section ul {
        list-style: none;
      }

      .footer-section ul li {
        margin-bottom: 0.5rem;
      }

      .footer-section ul li a {
        color: var(--text-secondary);
        text-decoration: none;
        transition: color 0.3s ease;
      }

      .footer-section ul li a:hover,
      .footer-section ul li a:focus {
        color: var(--primary-color);
        text-decoration: underline;
      }

      .footer-bottom {
        border-top: 1px solid var(--border-color);
        padding-top: 1rem;
        text-align: center;
        color: var(--text-light);
      }

      .footer-bottom a {
        color: var(--text-light);
        text-decoration: none;
        transition: color 0.3s ease;
      }

      .footer-bottom a:hover,
      .footer-bottom a:focus {
        color: var(--primary-color);
        text-decoration: underline;
      }

      /* Loading Animation */

      .loading {
        opacity: 0;
      }

      .loaded {
        animation: fadeIn 0.5s ease-in forwards;
      }

      /* Mobile Responsive */
      @media (max-width: 768px) {
        body {
          padding-top: 70px; /* Mobile header height */
        }

        .resources-grid {
          grid-template-columns: 1fr;
        }

        .path-grid {
          grid-template-columns: 1fr;
        }

        .stats-grid {
          grid-template-columns: repeat(2, 1fr);
        }

        .cta-buttons {
          flex-direction: column;
          align-items: center;
        }

        .btn {
          width: 100%;
          max-width: 300px;
          justify-content: center;
        }

        .container {
          padding: 0 1rem;
        }

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

      /* Animation Classes */

      .fade-in-up {
        animation: fadeInUp 0.8s ease-out forwards;
      }

      .animate-on-scroll {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease;
      }

      .animate-on-scroll.visible {
        opacity: 1;
        transform: translateY(0);
      }

      /* Focus styles for accessibility */
      a:focus,
      button:focus,
      input:focus,
      select:focus,
      textarea:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
      }

      /* Print styles */
      @media print {
        header,
        footer,
        .ad-banner,
        .cta-section,
        .controls {
          display: none !important;
        }

        body {
          background: white !important;
          color: black !important;
          font-size: 12pt;
        }

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

        .resource-card,
        .path-card {
          break-inside: avoid;
          page-break-inside: avoid;
          border: 1px solid #ddd !important;
          box-shadow: none !important;
          margin-bottom: 1rem;
        }

        .resources-grid,
        .path-grid {
          display: block;
        }

        a {
          text-decoration: none !important;
          color: black !important;
        }

        .resource-cta,
        .cta-arrow {
          display: none !important;
        }
      }

/* Ensure mobile dropdowns work properly */
      @media (max-width: 768px) {
        /* FORCE mobile menu to display full width */
        .nav-links,
        #navLinks,
        ul.nav-links {
          display: flex !important;
          position: fixed !important;
          top: 70px !important;
          left: 0 !important;
          right: 0 !important;
          bottom: 0 !important;
          width: 100vw !important;
          height: auto !important;
          min-height: calc(100vh - 70px) !important;
        }

        .nav-links.active,
        #navLinks.active,
        ul.nav-links.active {
          display: flex !important;
          max-height: calc(100vh - 70px) !important;
          height: auto !important;
        }

        /* Make sure nav links with dropdowns are clearly tappable */
        .nav-item .nav-link {
          position: relative;
          user-select: none;
          -webkit-user-select: none;
          -webkit-tap-highlight-color: rgba(70, 187, 229, 0.2);
          cursor: pointer;
        }

        /* Ensure chevron is visible and clickable */
        .nav-link .fa-chevron-down {
          transition: transform 0.3s ease !important;
          opacity: 1 !important;
          pointer-events: none; /* Let clicks go through to parent link */
        }

        /* Visual feedback when dropdown is open */
        .nav-item.mobile-open > .nav-link,
        .nav-item.mobile-dropdown-open > .nav-link {
          background: rgba(70, 187, 229, 0.15) !important;
          border-color: var(--primary-color, #46bbe5) !important;
        }

        /* Make dropdowns smoother */
        .dropdown {
          transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            padding 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        }

        /* Ensure dropdown items are visible when parent is open */
        .nav-item.mobile-open .dropdown,
        .nav-item.mobile-dropdown-open .dropdown {
          display: block !important;
          visibility: visible !important;
          opacity: 1 !important;
          pointer-events: auto !important;
        }

        /* Ensure dropdown items are clickable */
        .dropdown-item,
        .dropdown > a {
          pointer-events: auto !important;
          touch-action: manipulation !important;
          user-select: none;
          -webkit-user-select: none;
        }
      }

.code-tab:hover {
              background: #475569 !important;
              color: #fff !important;
            }

            .active-tab {
              background: #3b82f6 !important;
              color: #fff !important;
            }

            .example-btn:hover {
              background: #3b82f6 !important;
              color: #fff !important;
              border-color: #3b82f6 !important;
              transform: translateY(-2px);
            }

            @media (max-width: 768px) {
              #code-playground > div > div:first-of-type {
                grid-template-columns: 1fr !important;
              }
            }

