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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}
a{
    cursor: pointer;
}

/* Navbar Customization */
.navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
    z-index: 1050;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Download Button at Navbar */
.downloadHidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.downloadVisible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Offcanvas Customization */
.offcanvas {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 8vh;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-close {
    filter: invert(1);
}

/* Desktop Sidebar */
.desktop-sidebar {
    position: fixed;
    top: 130px;
    left: 0;
    width: 280px;
    height: calc(95vh - 70px);
    padding: 0 1rem;
    padding-bottom: 2rem;
    overflow-y: auto;
    z-index: 100;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header{
    top: 70px;
    width: 245px;
    padding: 1rem 1rem;
    z-index: 101;
}
.sidebar-nav{
    width: 245px;
}

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

.desktop-sidebar::-webkit-scrollbar-thumb {
    border-radius: 3px;
}

/* Sidebar Navigation */
.sidebar-nav {
    list-style: none;
    padding: 0;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
    cursor: pointer;
}

.sidebar-nav a:hover {
    transform: translateX(5px);
    border-left-color: currentColor;
}

.sidebar-nav a.is-active {
    border-left-color: currentColor;
    font-weight: 700;
    color: white;
}

/* Main Content Layout */
.main-content {
    padding-top: 0;
    min-height: 100vh;
}

@media (min-width: 992px) {
    .git-stars img {
        margin-top: 0.5rem;
        height: 1.7rem;
        width: 5rem;
    }
    .main-content,
    .footer {
        margin-left: 280px;
    }
    .mobile-sidebar-toggle {
        display: none;
    }
    /* Loader */
    .loader {
        margin-left: 8rem;
    }
}

@media (max-width: 991px) {
    .desktop-sidebar {
        display: none;
    }
}

/* motto */
.motto{
    font-family: 'apple chancery';
    /* font-family: 'comic sans ms'; */
}

/* Section Spacing */
section {
    margin-top: 4.5rem;
    padding: 4rem 2rem;
    min-height: 60vh;
}

/* Logo Container */
.logo-container {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
}

.logo-container img {
    max-width: 100%;
    height: auto;
    width: 500px;
}

/* Typography Enhancements */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #F1F5F9;
}

.section-title-md {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #E2E8F0;
}

.section-title-sm {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #CED4DA;
}

.section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Code Block Styling */
.code-block {
    position: relative;
    margin: 1.5rem 0;
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-language {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.8;
}

.copy-btn {
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.copy-btn:hover {
    transform: translateY(-2px);
}

.copy-btn.copied {
    opacity: 0.8;
}

.code-content {
    padding: 1.5rem;
    overflow-x: auto;
}

.code-content pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.code-content::-webkit-scrollbar {
    height: 8px;
}

.code-content::-webkit-scrollbar-thumb {
    border-radius: 4px;
}

/* Feature Card */
.feature-card {
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
    min-height: 20.5rem !important;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Download Buttons */
.download-section {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.download-btn {
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    transform: translateY(-3px);
}

/* Color Grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.color-family {
    padding: 1.5rem;
    transition: all 0.3s ease;
}

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

.color-family h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    font-weight: 700;
    opacity: 0.9;
}

tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Gradient Showcase */
.gradient-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gradient-item {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
            font-size: 1.2rem;
            font-weight: 700;
        }
    .nav-btn {
        margin-top: 0.5rem;
        height: 1.5rem;
        width: 2rem;
    }

    .nav-btn svg {
        height: 1rem;
        padding: 0;
    }
    .nav-btn-text{
        display: none;
        margin-left: 2rem;
    }
    .git-stars img {
        margin-top: 0.65rem;
        height: 1.2rem;
        width: 2.6rem;
    }
    .section-title {
        font-size: 2rem;
    }
    /* Loader */
    .loader {
        margin-left: 4rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .logo-container img {
        width: 300px;
    }

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

/* Utility Classes Override */
.rounded {
    border-radius: 0.75rem !important;
}

.shadow-strong {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Loader */
.loader {
    width: 100px;
    height: 100px;
    /* position: relative; */
}

.loader span {
    position: absolute;
    border: 10px solid #fd7e14;
    opacity: 1;
    border-radius: 50%;
    animation: ripple 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

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

@keyframes ripple {
    0% {
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    100% {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transform: translate(0, 0);
    }
}

/* Blur */
.blue-tint {
    filter: blur(4px) saturate(1.5);
}
