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

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

html {
    overflow: scroll;
    overflow-x: hidden;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
::-webkit-scrollbar {
    width: 0;  /* Remove scrollbar space */
    background: transparent;  /* Optional: just make scrollbar invisible */
}
/* Optional: show position indicator in red */
::-webkit-scrollbar-thumb {
    background: #444e61;
    border-radius: 1rem;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(-45deg, #0f1419, #1a2332, #2d3748, #1a2332);
    background-size: 400% 400%;
    color: #e2e8f0;
    overflow-x: hidden;
    min-height: 100vh;
    animation: gradientBG 15s ease infinite;
    user-select: none;
}

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

.header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    margin-bottom: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.header h1 {
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.header p {
    font-size: 1.2em;
    margin-top: 10px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.nav-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
    position: relative;
    overflow: hidden;
}

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

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

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.4);
}

.nav-btn.active {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.section {
    display: none;
    animation: fadeInUp 0.6s ease-out;
    background: rgba(45, 55, 72, 0.8);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.section.active {
    display: block;
    opacity: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section h2 {
    color: #ff6b35;
    font-size: 2em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section h3 {
    color: #4299e1;
    font-size: 1.4em;
    margin: 25px 0 15px 0;
    padding-left: 20px;
    border-left: 4px solid #4299e1;
}

.step-card {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    border-left: 5px solid #ff6b35;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 107, 53, 0.05) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.step-card:hover::before {
    transform: translateX(100%);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width:40px;
    height:40px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 50%;
    color: white;
    font-weight: bold;
    margin-right:12px;
    font-size: 1.2em;
}

.step-title {
    display:inline-block;
    vertical-align:middle;
    font-size: 1.2em;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 10px;
}

.step-content {
    color: #cbd5e0;
    line-height: 1.6;
    margin-left: 55px;
}

.pre-class {
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.code-block {
    position: relative;
    background: #1e293b;
    border-radius: 8px;
    padding: 0 1.5rem 0 1.5rem;
    margin: 15px 0;
    overflow-x: auto;
    border: 1px solid #334155;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    user-select: text;
}

.code-block pre {
    margin: 0;
    padding: 0;
    background: none;
}

.code-block code {
    font-family: 'Fira Code', 'Courier New', monospace;
    color: #e2e8f0;
    white-space: pre;
    display: block;
    padding: 1em;
    overflow-x: auto;
}

/* Copy Button Styles */
.copy-btn {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    padding: 0.25em 0.75em;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #475569;
    border-radius: 4px;
    color: #e2e8f0;
    font-size: 0.8em;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(4px);
}

.code-block:hover .copy-btn {
    opacity: 1;
    visibility: visible;
}

.copy-btn:hover {
    background: #475569;
    border-color: #64748b;
}

.copy-btn.copied {
    background: #10b981;
    border-color: #10b981;
    color: white;
    opacity: 1;
}

.success {
    background: linear-gradient(135deg, #11532c 0%, #5db888 100%);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 5px solid #2f855a;
}

/* Style for checklist items within success message */
.success br + * {
    display: block;
    margin: 8px 0 8px 20px;  /* Add left margin for indentation */
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* Add hover effect for better interactivity */
.success br + *:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(2px);
}

/* Ensure checkmark and text stay on the same line */
.success br + *::before {
    content: '✅ ';
    margin-right: 6px;
}

.success::before {
    content: '✅ ';
    font-size: 18px;
}

.metric-card {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 15px 20px;
    cursor: pointer;
    margin: 10px;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

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

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #ff6b35, #3d9260, #22824f);
}

.timeline-item {
    position: relative;
    padding: 20px 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -23px;
    top: 25px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ff6b35;
    border: 3px solid #2d3748;
}

.icon {
    font-size: 1.5em;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .nav-container {
        gap: 10px;
    }
    
    .nav-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .section {
        padding: 20px;
    }
    
    .step-content {
        margin-left: 0;
    }
}