:root {
            /* Dark theme color palette */
            --primary: #4f9cfb;
            --secondary: #00ffcc;
            --dark: #1a1a2e;
            --darker: #121220;
            --light: #e2e2e2;
            --accent: #e74c3c;
            --text-primary: #f8f8f8;
            --text-secondary: #b0b0b0;
            --card-bg: #23233a;
            --gradient-start: #4f9cfb;
            --gradient-end: #2e33cc;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: var(--dark);
            color: var(--text-primary);
            line-height: 1.6;
            overflow-x: hidden;
        }
        
        .loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--darker);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            transition: opacity 0.8s ease, visibility 0.8s ease;
        }
        
        .loader.hidden {
            opacity: 0;
            visibility: hidden;
        }
        
        .logo-container {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 2rem 0;
        }
        
        .logo {
            width: 200px;
            height: 120px;
            position: relative;
            perspective: 800px;
        }
        
        /* Enhanced logo animation with connected V and inverse V */
        .logo-line {
            position: absolute;
            /* stroke: var(--primary) */
            stroke: #f59e0b;
            stroke-width: 6;
            stroke-linecap: round;
            fill: none;
            stroke-dasharray: 400;
            stroke-dashoffset: 400;
            animation: logo-draw 3s ease forwards;
        }

        .logo-line-connection {
            position: absolute;
            /* stroke: var(--secondary); */
            stroke: #d97706;
            stroke-width: 4;/*Chnage here for size*/
            stroke-linecap: round;
            fill: none;
            stroke-dasharray: 200;
            stroke-dashoffset: 200;
            animation: logo-connect 3s ease 1s forwards;
        }
        
        @keyframes logo-draw {
            to {
                stroke-dashoffset: 0;
            }
        }

        @keyframes logo-connect {
            to {
                stroke-dashoffset: 0;
            }
        }
        
        @keyframes logo-pulse {
            0% {
                filter: drop-shadow(0 0 2px var(--primary));
            }
            50% {
                filter: drop-shadow(0 0 15px var(--primary));
            }
            100% {
                filter: drop-shadow(0 0 2px var(--primary));
            }
        }
        
        header {
            background: linear-gradient(45deg, var(--darker), var(--dark));
            color: white;
            padding: 2rem 0;
            text-align: center;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
            position: relative;
            overflow: hidden;
        }
        
        .header-content {
            position: relative;
            z-index: 2;
        }
        
        .header-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('/api/placeholder/1200/300?text=NIOS+CS') center/cover;
            opacity: 0.05;
            z-index: 1;
        }
        
        .header-title {
            font-size: 3rem;
            margin-bottom: 0.5rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .header-subtitle {
            font-size: 1.2rem;
            max-width: 800px;
            margin: 0 auto;
            opacity: 0.9;
            color: var(--text-secondary);
        }
        
        nav {
            background-color: var(--darker);
            padding: 1rem 0;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        }
        
        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 1rem;
        }
        
        .nav-logo {
            display: flex;
            align-items: center;
            gap: 1rem;
            text-decoration: none;
            color: white;
        }
        
        .nav-logo-img {
            width: 40px;
            height: 24px;
            animation: logo-pulse 3s infinite;
        }
        
        .nav-logo-text {
            font-weight: bold;
            font-size: 1.2rem;
            background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .nav-links {
            display: flex;
            gap: 1rem;
        }
        
        .nav-links a {
            color: var(--text-primary);
            text-decoration: none;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            transition: all 0.3s;
            position: relative;
        }
        
        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
            transition: width 0.3s ease, left 0.3s ease;
        }
        
        .nav-links a:hover::after {
            width: 100%;
            left: 0;
        }
        
        .menu-toggle {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }
        
        main {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem 1rem;
        }
        
        .intro-section {
            text-align: center;
            margin-bottom: 3rem;
        }
        
        .intro-title {
            font-size: 2rem;
            margin-bottom: 1rem;
            position: relative;
            display: inline-block;
            color: var(--text-primary);
        }
        
        .intro-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
            border-radius: 2px;
        }
        
        .chapters-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 2rem;
        }
        
        .chapter-card {
            background: var(--card-bg);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
            transition: transform 0.3s, box-shadow 0.3s;
            position: relative;
            z-index: 1;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }
        
        .chapter-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(79, 156, 251, 0.3);
            border-color: rgba(79, 156, 251, 0.3);
        }
        
        .chapter-banner {
            height: 8px;
            background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
        }
        
        .chapter-content {
            padding: 1.5rem;
        }
        
        .chapter-number {
            font-size: 0.9rem;
            color: var(--primary);
            margin-bottom: 0.5rem;
            font-weight: bold;
        }
        
        .chapter-title {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: var(--text-primary);
        }
        
        .chapter-description {
            color: var(--text-secondary);
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }
        
        .chapter-link {
            display: inline-block;
            padding: 0.8rem 1.5rem;
            background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-weight: bold;
            transition: transform 0.3s, box-shadow 0.3s;
            position: relative;
            overflow: hidden;
        }
        
        .chapter-link::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: all 0.6s;
        }
        
        .chapter-link:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(79, 156, 251, 0.4);
        }
        
        .chapter-link:hover::before {
            left: 100%;
        }
        
        .chapter-icon {
            position: absolute;
            right: 20px;
            top: 20px;
            font-size: 2.5rem;
            opacity: 0.2;
            color: var(--primary);
            filter: drop-shadow(0 0 8px var(--primary));
        }
        
        .features-section {
            margin: 5rem 0;
            text-align: center;
        }
        
        .features-title {
            font-size: 2rem;
            margin-bottom: 3rem;
            position: relative;
            display: inline-block;
            color: var(--text-primary);
        }
        
        .features-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
            border-radius: 2px;
        }
        
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }
        
        .feature-card {
            background: var(--card-bg);
            padding: 2rem;
            border-radius: 12px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
            transition: transform 0.3s, box-shadow 0.3s;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }
        
        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 15px rgba(79, 156, 251, 0.2);
            border-color: rgba(79, 156, 251, 0.2);
        }
        
        .feature-icon {
            font-size: 3rem;
            margin-bottom: 1.5rem;
            color: var(--primary);
            filter: drop-shadow(0 0 10px rgba(79, 156, 251, 0.5));
            transition: transform 0.3s;
        }
        
        .feature-card:hover .feature-icon {
            transform: scale(1.1);
            animation: icon-pulse 1.5s infinite;
        }
        .chapter-icon {
    transition: all 0.3s ease;
}
.chapter-icon {
    opacity: 1;
    color: #000; /* Or any vibrant color of your choice */
    font-size: 2rem; /* Make them larger if needed */
    filter: none; /* Remove any filters that might be making them faded */
}
.chapter-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    color: #00758F; /* MySQL's signature blue */
}


.chapter-card:hover .chapter-icon {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}
        
        @keyframes icon-pulse {
            0% {
                filter: drop-shadow(0 0 5px rgba(79, 156, 251, 0.5));
            }
            50% {
                filter: drop-shadow(0 0 15px rgba(79, 156, 251, 0.8));
            }
            100% {
                filter: drop-shadow(0 0 5px rgba(79, 156, 251, 0.5));
            }
        }
        
        .feature-title {
            font-size: 1.3rem;
            margin-bottom: 1rem;
            color: var(--text-primary);
        }
        
        .feature-description {
            color: var(--text-secondary);
        }
        
        footer {
            background-color: var(--darker);
            color: var(--text-primary);
            padding: 3rem 0 1rem;
            margin-top: 5rem;
            box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
        }
        
        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            padding: 0 1rem;
        }
        
        .footer-section h3 {
            font-size: 1.3rem;
            margin-bottom: 1.5rem;
            position: relative;
            padding-bottom: 10px;
            color: var(--text-primary);
        }
        
        .footer-section h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 10px;
        }
        
        .footer-links a {
            color: var(--text-secondary);
            text-decoration: none;
            transition: color 0.3s, transform 0.3s;
            display: inline-block;
        }
        
        .footer-links a:hover {
            color: var(--primary);
            transform: translateX(5px);
        }
        
        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        
        .social-links a {
            color: white;
            background: rgba(255, 255, 255, 0.1);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }
        
        .social-links a::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
            opacity: 0;
            transition: opacity 0.3s;
            z-index: -1;
        }
        
        .social-links a:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(79, 156, 251, 0.4);
        }
        
        .social-links a:hover::before {
            opacity: 1;
        }
        
        .copyright {
            text-align: center;
            padding-top: 2rem;
            margin-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            font-size: 0.9rem;
            color: #7a7a7a;
        }
        
        .back-to-top {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            text-decoration: none;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
            z-index: 99;
        }
        
        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }
        
        .back-to-top:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(79, 156, 251, 0.6);
        }
        
        .particles-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: 1;
        }
        
        .particle {
            position: absolute;
            border-radius: 50%;
            opacity: 0.6;
            pointer-events: none;
            filter: blur(1px);
        }
        
        .float-animation {
            animation: float 8s ease-in-out infinite;
        }
        
        @keyframes float {
            0% {
                transform: translateY(0) rotate(0deg);
            }
            25% {
                transform: translateY(-15px) rotate(5deg);
            }
            50% {
                transform: translateY(0) rotate(0deg);
            }
            75% {
                transform: translateY(15px) rotate(-5deg);
            }
            100% {
                transform: translateY(0) rotate(0deg);
            }
        }
        
        /* Animation for cards */
        .fade-in-up {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s ease, transform 0.8s ease;
        }
        
        .fade-in-up.visible {
            opacity: 1;
            transform: translateY(0);
        }
        
        /* Glowing effect for buttons and links */
        .glow-on-hover {
            position: relative;
        }
        
        .glow-on-hover::after {
            content: '';
            position: absolute;
            top: -5px;
            left: -5px;
            right: -5px;
            bottom: -5px;
            border-radius: inherit;
            background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
            z-index: -1;
            opacity: 0;
            transition: opacity 0.3s;
        }
        
        .glow-on-hover:hover::after {
            opacity: 0.3;
            animation: glow 1.5s infinite;
        }
        
        @keyframes glow {
            0% {
                opacity: 0.3;
            }
            50% {
                opacity: 0.5;
            }
            100% {
                opacity: 0.3;
            }
        }
        
        @media (max-width: 992px) {
            .header-title {
                font-size: 2.5rem;
            }
        }
        
        @media (max-width: 768px) {
            .nav-links {
                display: none;
                flex-direction: column;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: var(--darker);
                padding: 1rem;
                box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
                border-bottom: 1px solid rgba(79, 156, 251, 0.2);
            }
            
            .nav-links.active {
                display: flex;
            }
            
            .menu-toggle {
                display: block;
            }
            
            .header-title {
                font-size: 2rem;
            }
            
            .chapter-card {
                max-width: 350px;
                margin: 0 auto;
            }
        }

        /*NOTE - Study compannion*/
        nav ul {
            list-style: none;
            display: flex;
            justify-content: center;
            gap: 20px;
            padding: 0;
            background-color: var(--darker);
            margin: 0;
        }

        nav a {
            color: var(--text-secondary);
            text-decoration: none;
            padding: 15px 10px;
            display: block;
        }

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

        .section {
            padding: 30px;
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
        }

        .card {
            background-color: var(--card-bg);
            border-radius: 12px;
            padding: 20px;
            width: 260px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
            transition: transform 0.2s ease-in-out;
        }

        .card:hover {
            transform: scale(1.03);
        }

        .card i {
            font-size: 32px;
            margin-bottom: 10px;
            color: var(--primary);
        }

        .card h3 {
            margin-top: 10px;
        }

        .card a {
            text-decoration: none;
            color: var(--secondary);
        }

        