:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --accent: #00ff88;
    --dark: #121826;
    --darker: #0d1117;
    --light: #f8fafc;
    --gray: #94a3b8;
    --card-bg: #1e293b;
    --sidebar-width: 280px;
    --header-height: 70px;
    --transition: all 0.3s ease;
    --radius: 12px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --code-bg: #1a1f29;
}

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

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--darker) 0%, #1a202c 100%);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    height: var(--header-height);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
}

.logo-icon {
    color: var(--accent);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 6px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(67, 97, 238, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(120deg, var(--darker) 0%, #1e293b 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(0, 255, 136, 0.05) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--accent), #4cc9f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero p {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 700px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.css-logo,
.js-logo {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 50px rgba(67, 97, 238, 0.4);
    animation: float 6s ease-in-out infinite;
}

.css-logo-inner,
.js-logo-inner {
    width: 150px;
    height: 150px;
    background: var(--darker);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent);
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 99;
}

.progress-bar {
    height: 4px;
    background: var(--accent);
    width: 0%;
    transition: width 0.3s ease;
}

/* Main Content Layout */
/* .tutorial-container {
    padding: 40px 0;
} */

/* Sidebar Navigation */
.sidebar {
    background: rgba(19, 24, 38, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 25px 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: calc(100vh - var(--header-height) - 80px);
    position: sticky;
    top: calc(var(--header-height) + 20px);
    overflow-y: auto;
    box-shadow: var(--shadow);
}

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

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

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

.sidebar-header {
    padding: 0 25px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-header i {
    color: var(--accent);
    font-size: 1.2rem;
}

.sidebar-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.sidebar-list {
    list-style: none;
    padding: 0;
}

.sidebar-list li {
    margin-bottom: 3px;
}

.sidebar-list a {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    gap: 12px;
}

.sidebar-list a:hover {
    background: rgba(67, 97, 238, 0.1);
    color: var(--light);
}

.sidebar-list a.active {
    background: linear-gradient(90deg, rgba(67, 97, 238, 0.2), transparent);
    color: var(--accent);
    border-left: 3px solid var(--accent);
}

.sidebar-list a i {
    width: 24px;
    text-align: center;
}

/* Content Area */
.content-area {
    background: rgba(19, 24, 38, 0.5);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.content-area h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, var(--accent), #4cc9f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.content-area .lead {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 40px;
}

section {
    margin-bottom: 60px;
    scroll-margin-top: 30px;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(67, 97, 238, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
}

section h2 i {
    color: var(--accent);
    background: rgba(0, 255, 136, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

section h3 {
    font-size: 1.5rem;
    margin: 25px 0 15px;
    color: var(--accent);
}

p {
    margin-bottom: 20px;
    color: #cbd5e1;
}

/* Components */
.example {
    background: var(--code-bg);
    border-radius: var(--radius);
    padding: 25px;
    margin: 25px 0;
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow);
}

.example-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--accent);
}

pre {
    background: #0d1117;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 15px 0;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

code {
    font-family: "JetBrains Mono", monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent);
    font-size: 0.95rem;
}

.js-table,
.table-bordered,
.css-table,.jquery-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: var(--code-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.js-table th,
.table-bordered th,
.css-table th,
.jquery-table th {
    background: var(--primary);
    color: white;
    text-align: left;
    padding: 15px 20px;
    font-weight: 600;
}

.js-table td,
.table-bordered td,
.css-table td,
.jquery-table td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.js-table tr:last-child td {
    border-bottom: none;
}
.css-table tr:last-child td {
    border-bottom: none;
}
.jquery-table tr:last-child td {
    border-bottom: none;
}

.js-table tr:hover td {
    background: rgba(67, 97, 238, 0.05);
}
.jquery-table tr:hover td {
    background: rgba(67, 97, 238, 0.05);
}
.css-table tr:hover td {
    background: rgba(67, 97, 238, 0.05);
}

.js-table-container {
    overflow-x: auto;
    margin: 25px 0;
}

.jquery-table-container {
    overflow-x: auto;
    margin: 25px 0;
}

.css-table-container {
    overflow-x: auto;
    margin: 25px 0;
}

.live-example {
    background: var(--code-bg);
    border-radius: var(--radius);
    padding: 25px;
    margin: 25px 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

/* Interactive Components */
.box-model-demo {
    width: 300px;
    height: 150px;
    padding: 30px;
    border: 15px solid var(--primary);
    margin: 40px auto;
    background: var(--secondary);
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 8px;
}

.box-model-label {
    position: absolute;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.content-label {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.padding-label {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}
.border-label {
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
}
.margin-label {
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
}

.flex-container {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    margin: 20px 0;
    flex-wrap: wrap;
}

.flex-item {
    background: var(--primary);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    flex: 1;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    margin: 20px 0;
}

.grid-item {
    background: var(--secondary);
    color: white;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .tutorial-container .row {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        margin-bottom: 30px;
    }

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .content-area {
        padding: 25px;
    }

    .content-area h1 {
        font-size: 2.2rem;
    }
}

/* for html  */
/* Tutorial Sidebar */
.tutorial-sidebar {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f1f1f1;
}

.tutorial-sidebar::-webkit-scrollbar {
    width: 8px;
}

.tutorial-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

.list-group-item {
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.list-group-item:hover {
    border-left-color: var(--primary);
    background-color: rgba(13, 110, 253, 0.05);
}

.list-group-item.active {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}

/* Tutorial Sections */
.tutorial-section {
    scroll-margin-top: 100px;
}

/* Code Editor */
.code-editor {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 4px;
    font-family: "Courier New", monospace;
}

.editor-header {
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-badge {
    position: absolute;
    left: -50px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.timeline-panel {
    padding: 15px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Interactive Elements */
.interactive-demo {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.preview-box {
    min-height: 200px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tutorial-sidebar {
        max-height: none;
        position: static;
        margin-bottom: 20px;
    }

    .code-editor,
    .preview-box {
        width: 100%;
    }
}

/* home page css  */
/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a1a 100%);
    color: white;
    padding: 6rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
            circle at 20% 30%,
            rgba(0, 255, 136, 0.08) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(0, 255, 136, 0.08) 0%,
            transparent 50%
        );
    z-index: 0;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Bar */
.search-container {
    max-width: 700px;
    margin: 0 auto;
}

.search-input {
    border-radius: 50px !important;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    font-weight: 500;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.2);
    color: white;
}

.search-btn {
    border-radius: 50px !important;
    padding: 0.5rem 1.5rem;
    background-color: var(--accent-color);
    border: none;
    font-weight: 600;
    position: absolute;
    right: -5px;
    top: 0px;
    color: var(--dark);
}

/* Tech Sections */
.tech-section {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.tech-section-header {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tech-section-header h3 {
    font-weight: 700;
    margin-bottom: 0;
}

.section-badge {
    background-color: var(--dark);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Tech Cards */
.tech-card {
    transition: all 0.3s ease;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.tech-card .card-body {
    padding: 20px;
}

.tech-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.tech-card .card-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.tech-card .card-text {
    color: var(--dark);
    opacity: 0.7;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Sidebar Components */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-action-card {
    transition: all 0.2s;
    border-radius: 8px;
}

.quick-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Code Editor Preview */
.code-editor-preview {
    background: #1e1e1e;
    border: 1px solid #333;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .tech-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-badge {
        margin-top: 10px;
    }
    .hero-section {
        padding: 4rem 0 6rem;
    }
}


/* jquery page css  */
/* Interactive Examples */
.interactive-example {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.run-btn {
    background-color: var(--accent-color);
    color: var(--text-dark);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
}

.output {
    background-color: #f1f3f5;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    font-family: monospace;
    white-space: pre-wrap;
}

/* Demo Elements */
.demo-box {
    width: 100px;
    height: 100px;
    background-color: var(--accent-color);
    margin: 10px;
    display: inline-block;
}

.demo-list {
    list-style: none;
    padding: 0;
}

.demo-list li {
    padding: 8px;
    margin: 5px 0;
    background-color: #e9ecef;
    border-radius: 4px;
}
