nav {
    position: static;
}

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

/* Hero Section */
.hero {
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(139, 92, 246, 0.1), transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(6, 182, 212, 0.1), transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

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

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 50px;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Space Grotesk', sans-serif;
    display: block;
}

.stat-label {
    color: var(--gray);
    font-size: 14px;
    margin-top: 5px;
}

/* Filter Section */
.filter-section {
    padding: 25px 0;
    position: sticky;
    top: 0;
    background: var(--darker);
    z-index: 100;
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 50px;
    color: var(--light);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12.5px;
    font-family: "Noto Sans Syriac Western", sans-serif;
    font-optical-sizing: auto;
    font-weight: 420;
    font-style: normal;
}

.filter-btn:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: var(--primary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
}

/* Projects Grid */
.projects-section {
    padding: 60px 0 100px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(425px, 1fr));
    gap: 40px;
}

.project-card {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(6, 182, 212, 0.1);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.project-card.hidden {
    display: none;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(6, 182, 212, 0.2);
    border-color: var(--primary);
}

/* Image Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--dark);
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-image {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(6, 182, 212, 0.8);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

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

.dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* Project Content */
.project-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.project-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 5px;
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.project-category {
    background: rgba(139, 92, 246, 0.2);
    color: var(--secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    position: absolute;
    right: 5px;
    top: 305px;
}

.project-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 13px;
}

.meta-item i {
    color: var(--primary);
}

.project-description {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

.project-features {
    margin-bottom: 20px;
}

.project-features h4 {
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 10px;
}

.features-list {
    list-style: none;
}

.features-list li {
    color: var(--gray);
    font-size: 13px;
    padding-left: 20px;
    position: relative;
    margin-bottom: 6px;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.project-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.project-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--light);
}

.btn-secondary:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--primary);
}

/* Footer */
footer {
    background: rgba(15, 23, 42, 0.8);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(6, 182, 212, 0.1);
}

footer p {
    color: var(--gray);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    }
}

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }

    .hero h1 {
        font-size: 42px;
    }

    .stats-container {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 36px;
    }

    .nav-links {
        display: none;
    }

    .filter-buttons {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(6, 182, 212, 0.3) transparent;
        gap: 15px;
        justify-content: flex-start;
        padding-bottom: 15px;
    }

    .filter-btn {
        flex: 0 0 auto;
        /* prevents button shrinking */
        padding: 8px 12px;
        font-size: 11px;
    }

    .filter-buttons::-webkit-scrollbar {
        height: 6px;
    }

    .filter-buttons::-webkit-scrollbar-thumb {
        background: rgba(6, 182, 212, 0.3);
        border-radius: 10px;
    }

    .filter-buttons::-webkit-scrollbar-track {
        background: transparent;
    }

    .carousel-container {
        height: 250px;
    }

    .project-category {
        padding: 5px 8px;
        top: 255px;
    }


}

/* Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}