:root {
    --primary-rgb: 110, 69, 226;
    --primary-light-rgb: 142, 110, 255;
    --torch-opacity: 0.15;
    --torch-spread: 80%;
    --primary: #6e45e2;
    --primary-light: #8d6eff;
    --dark: #0F111A;
    --darker: #0a0a0a;
    --light: #f8f9fa;
    --off-light:  #c8ccd0;
    --gray: #2a2a2a;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Base Styles */
body {
    background-color: var(--darker);
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
}
/* Your original gradient background (now with higher z-index) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(110, 69, 226, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(142, 110, 255, 0.1) 0%, transparent 50%);
    animation: gradientShift 10s ease-in-out infinite alternate;
    z-index: -3; /* Sent to back */
}

/* Your original grid background (middle layer) */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: gridMove 20s linear infinite;
    z-index: -2; /* Middle layer */
    opacity: 0.3;
}

/* NEW: Top Triangle Light (front layer) */
.torch-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    background: linear-gradient(
        to bottom,
        rgba(var(--primary-light-rgb), var(--torch-opacity)) 0%,
        transparent var(--torch-spread)
    );
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
    z-index: -1; /* Front layer */
    pointer-events: none;
    filter: blur(20px);
}

/* NEW: Bottom Triangle Light (front layer) */
.torch-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    background: linear-gradient(
        to top,
        rgba(var(--primary-rgb), var(--torch-opacity)) 0%,
        transparent var(--torch-spread)
    );
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    z-index: -1; /* Front layer */
    pointer-events: none;
    filter: blur(20px);
}



/* Floating Elements for all sections */
.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    backdrop-filter: blur(5px);
}



pre {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid #ddd;
}

pre code {
    color: #333;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Typography */
.luxe-logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-underline {
    position: relative;
    display: inline-block;
}

.text-underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
}

/* Navbar */
.glass-nav {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: fixed; /* Changed to fixed */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    transform: translateY(0);
}

/* Add this for hidden state */
.glass-nav.hidden {
    transform: translateY(-100%);
}

/* Enhanced scrolled state */
.glass-nav.scrolled {
    padding: 0.75rem 0;
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

/* Search Form */
.search-form .input-group,
.search-form-mobile .input-group {
    width: 99%; /* Take full available width */
    border-radius: 50px;
    background: var(--glass);
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
}

.search-form .form-control,
.search-form-mobile .form-control {
    flex-grow: 1; /* Fill available space */
    background: transparent;
    color: var(--light);
    border: none !important;
    box-shadow: none;
    padding: 0.5rem 1rem; /* Match original height */
}

.search-form .input-group:hover,
.search-form-mobile .input-group:hover {
    border-radius: 50px;
    box-shadow: 0 0 15px rgba(110, 69, 226, 0.3);
    border-color: var(--primary-light);
}

.search-form .btn-outline-light,
.search-form-mobile .btn-outline-light {
    border-radius: 50px;
    color: var(--light);
    border-color: transparent;
    background: transparent;
    padding: 0.5rem 1rem;
}

.search-form .btn-outline-light:hover,
.search-form-mobile .btn-outline-light:hover {
    background: var(--primary);
    color: white;
    border-color: transparent;
}

/* Mobile Search Form */
.search-form-mobile {
    display: none;
    padding: 0.75rem 0; /* Minimal padding to avoid height increase */
    background: var(--glass);
    border-top: 1px solid var(--glass-border);
    width: 100%;
    margin-top: 0.5rem;
}

.search-form-mobile.active {
    display: block;
}

/* Search Toggle Button */
.search-toggle {
    border-radius: 50%;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-toggle:hover {
    background: var(--primary);
    border-color: var(--primary-light);
}

.search-toggle.active {
    background: var(--primary);
    border-color: var(--primary-light);
}

/* Navbar Adjustments for Search Form */
.glass-nav {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem; /* Original padding */
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    transform: translateY(0);
}

.search-form {
    flex-grow: 1; /* Take remaining space */
    display: flex;
    justify-content: flex-end;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .glass-nav {
        padding: 0.75rem;
    }

    .search-form {
        display: none; /* Hide desktop search on mobile */
    }

    .search-form-mobile {
        margin-top: 0.5rem;
        padding: 0.5rem 0;
    }

    .search-form-mobile .input-group {
        width: 100%; /* Ensure full width on mobile */
    }
}

@media (max-width: 576px) {
    .search-toggle {
        width: 36px;
        height: 36px;
    }

    .search-form-mobile .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* Search Toggle Button */
.search-toggle {
    border-radius: 50%;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-toggle:hover {
    background: var(--primary);
    border-color: var(--primary-light);
}

.search-toggle.active {
    background: var(--primary);
    border-color: var(--primary-light);
}

.btn-toggle {
    border-radius: 50%;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-toggle:hover {
    background: var(--primary);
    border-color: var(--primary-light);
}

.btn-toggle.active {
    background: var(--primary);
    border-color: var(--primary-light);
}

/* Dropdown Menu */
.dropdown-menu {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    margin-top: 0.5rem;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--primary);
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .glass-nav {
        padding: 0.75rem 0;
    }

    .navbar-collapse {
        background: var(--dark);
        border-top: 1px solid var(--glass-border);
        padding: 1rem;
        margin-top: 0.5rem;
    }

    .navbar-nav {
        margin-bottom: 1rem;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
    }

    .nav-link.active::after {
        left: 1rem;
        width: calc(100% - 2rem);
    }

    .search-form {
        display: none;
    }

    .search-form-mobile {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.3rem;
    }

    .search-toggle {
        width: 36px;
        height: 36px;
    }
    .btn-toggle {
        width: 36px;
        height: 36px;
    }

    .btn-outline-light,
    .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .search-form,
    .search-form-mobile {
        min-width: 150px;
    }
}

.btn-glass {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            rgba(255, 255, 255, 0.3),
            rgba(255, 255, 255, 0));
    transform: rotate(30deg);
    transition: all 0.6s ease;
}

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

/* Sections Common Styles */
section {
    padding: 120px 0;
    position: relative;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    max-height: none;
    padding-top: clamp(5rem, 9vh, 8rem);
    padding-bottom: 120px; /* Space for category nav */
    background: 
        linear-gradient(rgba(10, 10, 10, 0.5), /* Reduced from 0.7 to 0.5 for more visibility */
        rgba(10, 10, 10, 0.5)), /* Reduced opacity on both gradient stops */
        url('../assets/images/hero-bg.jpg') no-repeat center center / cover fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Section Headers */
.section-header {
    margin-bottom: 80px;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(0);
    background: var(--gray);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(110, 69, 226, 0.3);
}

.project-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 66%;
    overflow: hidden;
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-stats {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 1rem;
    z-index: 2;
}

.stat-item {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: var(--primary);
}

.stat-item i {
    font-size: 0.9rem;
}

.project-info {
    padding: 1.5rem;
    position: relative;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-title-group {
    flex: 1;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-category {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-category:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.project-creator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.creator-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.creator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-info {
    flex: 1;
}

.creator-name {
    font-weight: 500;
    color: white;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.creator-title {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.follow-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.follow-btn:hover {
    background: var(--primary);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.follow-btn.following {
    background: var(--primary);
    border-color: var(--primary-light);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--gray);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: linear-gradient(135deg, var(--gray), var(--darker));
    box-shadow: 0 10px 30px rgba(110, 69, 226, 0.2);
    border-color: rgba(110, 69, 226, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

/* Featured Projects Section */
.section-projects {
    padding-bottom: 160px;
}

/* Features Section */
.section-features {
    padding: 160px 0;
}

.features-grid {
    margin-top: 60px;
}

/* Testimonials Section */
.section-testimonials {
    padding: 6rem 0;
    /* background: linear-gradient(to bottom, var(--dark) 0%, var(--darker) 100%); */
    position: relative;
    overflow: hidden;
}

/* Animated Background Elements */
.section-testimonials::before,
.section-testimonials::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

/* Gradient Orbs */
/* .section-testimonials::before {
    background: radial-gradient(circle at 20% 30%, rgba(110, 69, 226, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(142, 110, 255, 0.15) 0%, transparent 50%);
    animation: gradientShift 15s ease-in-out infinite alternate;
}

/* Animated Grid */
.section-testimonials::after {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: gridMove 20s linear infinite;
} */

/* Floating Elements */
.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    backdrop-filter: blur(5px);
}

.floating-element:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    animation: float 20s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation: float 25s ease-in-out infinite reverse;
}

.floating-element:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation: float 18s ease-in-out infinite;
}

/* Animations */
@keyframes gradientShift {
    0% {
        transform: scale(1) rotate(0deg);
    }

    100% {
        transform: scale(1.2) rotate(5deg);
    }
}

@keyframes gridMove {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(30px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(20px, 20px) rotate(5deg);
    }

    50% {
        transform: translate(0, 40px) rotate(0deg);
    }

    75% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

/* Update testimonial card styles for better contrast with new background */
.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.testimonial-card.active {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 30px rgba(110, 69, 226, 0.15);
}

.testimonial-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
}

.testimonial-carousel {
    position: relative;
    overflow: hidden;
    padding: 3rem 1.5rem;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 2rem;
    width: 100%;
}

/* Give the first card breathing room to avoid clipped look */
.testimonial-track .testimonial-card:first-child {
    margin-left: 0.35rem;
}

.testimonial-card {
    flex: 0 0 calc(100% - 4rem);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    transform: scale(0.9);
    opacity: 0.5;
    margin: 0 auto;
    max-width: 800px;
}

.testimonial-card.active {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 2;
}

/* Reflection effect */
.testimonial-card::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 5%;
    width: 90%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.5s ease;
    transform: scaleX(0.95);
}

.testimonial-card.active::before {
    opacity: 1;
}

/* Shadow effect */
.testimonial-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 5%;
    width: 90%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent);
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonial-card.active::after {
    opacity: 1;
}

/* Add a subtle glow effect */
.testimonial-card.active {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 30px rgba(110, 69, 226, 0.1);
}

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

.testimonial-quote {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.1rem;
    color: var(--light);
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.9rem;
    color: var(--light);
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.nav-arrow.prev {
    left: 0;
}

.nav-arrow.next {
    right: 0;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .testimonial-carousel-wrapper {
        padding: 0 2rem;
    }

    .testimonial-card {
        flex: 0 0 calc(100% - 2rem);
        padding: 2rem;
    }

    .testimonial-track .testimonial-card:first-child {
        margin-left: 0.25rem;
    }

    .testimonial-quote {
        font-size: 2rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
    }
}

/* CTA Section */
.section-cta {
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.cta-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    position: relative;
}

.btn-cta {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
}

/* Footer */
.footer {
    background: var(--dark);
    padding: 4rem 0 2rem;
}

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

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

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

.footer-links a:hover {
    opacity: 1;
    color: white;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--light);
    opacity: 0.7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    opacity: 1;
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--gray);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.7;
}

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

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 60px;
    }

    .section-projects,
    .section-features,
    .section-testimonials {
        padding: 100px 0;
    }

    .section-cta {
        padding: 80px 0;
    }

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

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

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

    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .project-stats {
        top: 0.75rem;
        right: 0.75rem;
    }

    .stat-item {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .project-info {
        padding: 1.25rem;
    }

    .project-title {
        font-size: 1.1rem;
    }
}

/* Category Navigation */
.category-nav {
    background: transparent !important;
    border-bottom: none !important;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.category-nav .category-btn {
    background: rgba(15, 17, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
}

.category-nav .category-btn.active {
    background: var(--primary);
    border-color: var(--primary-light);
}

.hero-content {
    margin-bottom: 60px; /* Space between content and category nav */
}

.category-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.category-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    cursor: grab;
    user-select: none;
}

.category-buttons {
    display: flex;
    gap: 1rem;
    transition: transform 0.3s ease;
    padding: 0.5rem 0;
}

.category-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--light);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.category-btn.active {
    background: var(--primary);
    border-color: var(--primary-light);
    box-shadow: 0 4px 15px rgba(110, 69, 226, 0.4);
}

@media (max-width: 768px) {
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}


/* Hero Section Floating Elements */
.hero-section .floating-element:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    animation: float 20s ease-in-out infinite;
}

.hero-section .floating-element:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation: float 25s ease-in-out infinite reverse;
}

/* Projects Section Floating Elements */
.section-projects .floating-element:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 10%;
    right: 10%;
    animation: float 18s ease-in-out infinite;
}

.section-projects .floating-element:nth-child(2) {
    width: 180px;
    height: 180px;
    bottom: 20%;
    left: 5%;
    animation: float 22s ease-in-out infinite reverse;
}

/* Features Section Floating Elements */
.section-features .floating-element:nth-child(1) {
    width: 160px;
    height: 160px;
    top: 30%;
    left: 15%;
    animation: float 24s ease-in-out infinite;
}

.section-features .floating-element:nth-child(2) {
    width: 140px;
    height: 140px;
    bottom: 30%;
    right: 10%;
    animation: float 19s ease-in-out infinite reverse;
}

/* Enhanced Animations */
@keyframes gradientShift {
    0% {
        transform: scale(1) rotate(0deg);
    }

    100% {
        transform: scale(1.2) rotate(5deg);
    }
}

@keyframes gridMove {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(30px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(20px, 20px) rotate(5deg);
    }

    50% {
        transform: translate(0, 40px) rotate(0deg);
    }

    75% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

/* Update section backgrounds for better contrast */
/* .section-projects,
.section-features,
.section-testimonials {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
} */

/* Add subtle glow to cards */
.project-card,
.feature-card,
.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.project-card:hover,
.feature-card:hover,
.testimonial-card.active {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(102, 196, 240, 0.484),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 30px rgba(137, 207, 240, 0.15);
}

a:link, a:visited {
    text-decoration: none;
}

pre {
    color: #ddd !important;
}

.remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 68, 68, 0.2); /* Semi-transparent red */
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.remove-btn:hover {
    background-color: rgba(255, 68, 68, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.2);
}

.remove-btn:active {
    background-color: rgba(255, 68, 68, 0.4);
    transform: translateY(0);
}

.remove-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.3);
}

.remove-btn i {
    font-size: 1rem;
}

/* Outline variant - matches your glass design */
.remove-btn.outline {
    background-color: transparent;
    border: 1px solid rgba(255, 68, 68, 0.5);
    color: #ff4444;
}

.remove-btn.outline:hover {
    background-color: rgba(255, 68, 68, 0.1);
}

/* Solid variant - for more emphasis */
.remove-btn.solid {
    background-color: #ff4444;
    color: white;
    border-color: #ff4444;
}

.remove-btn.solid:hover {
    background-color: #e53935;
    border-color: #e53935;
}

/* Circle icon button */
.remove-btn.circle {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
}

/* Ghost variant */
.remove-btn.ghost {
    background-color: transparent;
    border-color: transparent;
    color: #ff4444;
}

.remove-btn.ghost:hover {
    background-color: rgba(255, 68, 68, 0.1);
}

/* Glass variant - matches your design system */
.remove-btn.glass {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.remove-btn.glass:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: rgba(255, 68, 68, 0.3);
}

/* Glass Card */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 8px 30px rgba(110, 69, 226, 0.25);
    transform: translateY(-3px);
}


.glass-card {
    margin-bottom: 20px; /* or whatever value you prefer */
}
.glass-card:last-child {
    margin-bottom: 0;
}

.trim-text-8 {
    display: inline-block; /* or block depending on your needs */
    max-width: 8ch;        /* ch unit represents the width of the "0" character */
    white-space: nowrap;   /* prevents text from wrapping */
    overflow: hidden;      /* hides overflow */
    text-overflow: ellipsis; /* adds ellipsis */
  }

/* —— Home: “How HUP fits together” — neon band —— */
.section-hup-fits-neon {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(
        168deg,
        rgba(6, 10, 22, 0.98) 0%,
        rgba(4, 8, 18, 1) 42%,
        rgba(10, 6, 20, 0.99) 100%
    );
    border-top: 1px solid rgba(94, 234, 212, 0.35);
    border-bottom: 1px solid rgba(244, 114, 182, 0.35);
    box-shadow:
        inset 0 0 100px rgba(34, 211, 238, 0.07),
        inset 0 0 140px rgba(244, 114, 182, 0.05);
}

.section-hup-fits-neon__ambient {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 95% 55% at 50% -25%, rgba(34, 211, 238, 0.22), transparent 58%),
        radial-gradient(ellipse 65% 45% at 108% 45%, rgba(244, 114, 182, 0.16), transparent 52%),
        radial-gradient(ellipse 55% 40% at -8% 85%, rgba(74, 222, 128, 0.12), transparent 48%);
    animation: hupNeonAmbient 10s ease-in-out infinite alternate;
}

@keyframes hupNeonAmbient {
    0% {
        opacity: 0.88;
        filter: saturate(1);
    }
    100% {
        opacity: 1;
        filter: saturate(1.2);
    }
}

@media (prefers-reduced-motion: reduce) {
    .section-hup-fits-neon__ambient {
        animation: none;
    }
}

.section-hup-fits-neon .container {
    z-index: 1;
}

.section-hup-fits-neon__title {
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
    text-shadow:
        0 0 18px rgba(34, 211, 238, 0.65),
        0 0 36px rgba(244, 114, 182, 0.45),
        0 0 54px rgba(34, 211, 238, 0.25);
}

.hup-neon-card {
    position: relative;
    background: rgba(4, 8, 18, 0.82) !important;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.hup-neon-card--cyan {
    box-shadow:
        0 0 0 1px rgba(34, 211, 238, 0.2),
        0 6px 28px rgba(0, 0, 0, 0.45),
        0 0 36px rgba(34, 211, 238, 0.14);
}
.hup-neon-card--cyan:hover {
    border-color: rgba(94, 234, 212, 0.65);
    box-shadow:
        0 0 0 1px rgba(94, 234, 212, 0.45),
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(34, 211, 238, 0.28);
    transform: translateY(-5px);
}

.hup-neon-card--magenta {
    box-shadow:
        0 0 0 1px rgba(244, 114, 182, 0.22),
        0 6px 28px rgba(0, 0, 0, 0.45),
        0 0 36px rgba(244, 114, 182, 0.14);
}
.hup-neon-card--magenta:hover {
    border-color: rgba(244, 114, 182, 0.7);
    box-shadow:
        0 0 0 1px rgba(244, 114, 182, 0.48),
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(244, 114, 182, 0.26);
    transform: translateY(-5px);
}

.hup-neon-card--lime {
    box-shadow:
        0 0 0 1px rgba(74, 222, 128, 0.2),
        0 6px 28px rgba(0, 0, 0, 0.45),
        0 0 36px rgba(74, 222, 128, 0.12);
}
.hup-neon-card--lime:hover {
    border-color: rgba(134, 239, 172, 0.65);
    box-shadow:
        0 0 0 1px rgba(74, 222, 128, 0.45),
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(74, 222, 128, 0.22);
    transform: translateY(-5px);
}

.hup-neon-card__title {
    color: #ffffff !important;
    font-weight: 600;
}

.hup-neon-card--cyan .hup-neon-card__title .fas {
    color: #5eead4;
    filter: drop-shadow(0 0 10px rgba(94, 234, 212, 0.85));
}

.hup-neon-card--magenta .hup-neon-card__title .fas {
    color: #f9a8d4;
    filter: drop-shadow(0 0 10px rgba(244, 114, 182, 0.85));
}

.hup-neon-card--lime .hup-neon-card__title .fas {
    color: #86efac;
    filter: drop-shadow(0 0 10px rgba(74, 222, 128, 0.85));
}

.hup-neon-card__text {
    color: rgba(255, 255, 255, 0.94) !important;
    line-height: 1.65;
}

.section-hup-fits-neon__cta {
    color: rgba(255, 255, 255, 0.95) !important;
}

.hup-neon-cta-sep {
    color: rgba(255, 255, 255, 0.5) !important;
}

.section-hup-fits-neon .hup-neon-btn {
    color: #ffffff !important;
    border-width: 1.5px;
    border-color: rgba(94, 234, 212, 0.55) !important;
    background: rgba(0, 0, 0, 0.25);
    box-shadow:
        0 0 18px rgba(34, 211, 238, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.section-hup-fits-neon .hup-neon-btn:hover {
    color: #ffffff !important;
    background: rgba(34, 211, 238, 0.14) !important;
    border-color: rgba(167, 243, 208, 0.85) !important;
    box-shadow:
        0 0 28px rgba(34, 211, 238, 0.35),
        0 0 48px rgba(244, 114, 182, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}