/* Projects Hero */
.projects-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a1f4d 100%);
    color: white;
    position: relative;
    margin-top: 76px;
    padding: 120px 0;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title .highlight {
    color: #00ff88;
    -webkit-text-fill-color: #00ff88;
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(0, 255, 136, 0.3);
    z-index: -1;
    transform: skewX(-15deg);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 35px;
    opacity: 0.9;
    line-height: 1.8;
    max-width: 90%;
}

/* Project Filters */
.project-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.filter-btn {
    padding: 12px 25px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-btn i {
    font-size: 1.1rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: #00ff88;
    color: var(--dark-color);
    transform: translateY(-2px);
    border-color: #00ff88;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-sphere {
    position: relative;
    width: 400px;
    height: 400px;
}

.sphere-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.floating-tech {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: float-sphere 8s infinite;
}

.tech-item {
    position: absolute;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tech-item::after {
    content: attr(data-tech);
    position: absolute;
    bottom: -25px;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
}

.tech-item:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.experience-badge {
    position: absolute;
    bottom: 50px;
    right: 30px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 3s infinite ease-in-out;
}

.badge-content {
    text-align: center;
}

.badge-content .years {
    font-size: 2rem;
    font-weight: 700;
    color: #00ff88;
    display: block;
    line-height: 1;
}

.badge-content .text {
    font-size: 0.8rem;
    opacity: 0.9;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes float-sphere {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Featured Project */
.section-header {
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

.featured-project-card {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.featured-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.featured-project-card:hover::before {
    opacity: 1;
}

.featured-project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

.featured-project-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.featured-project-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    transition: all 0.5s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--primary-rgb), 0.9);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.featured-project-image:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 20px;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.featured-project-image:hover .project-links {
    transform: translateY(0);
}

.project-link {
    width: 50px;
    height: 50px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--dark-color);
    color: white;
    transform: scale(1.1);
}

.tech-badges {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-badge {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    transform: translateY(-2px);
    background: white;
}

.featured-project-content {
    padding: 20px 0 0;
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.project-category {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-1);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
}

.project-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.project-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.project-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: var(--light-color);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateX(10px);
    background: var(--gradient-1);
}

.feature:hover .feature-icon {
    background: white;
    color: var(--primary-color);
}

.feature:hover .feature-content h4,
.feature:hover .feature-content p {
    color: white;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.feature-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.feature-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    transition: all 0.3s ease;
}

.project-cta {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.btn {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.section-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-color) 0%, transparent 100%);
    pointer-events: none;
}

/* Project Grid */
.project-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    background: var(--card-bg);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.5s ease;
}

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

.project-header {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.project-type {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-links a {
    width: 35px;
    height: 35px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.project-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.project-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.project-card:hover .project-details {
    transform: translateY(0);
}

.project-details h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.project-details p {
    font-size: 1rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-stack span {
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.tech-stack span:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Project Stats */
.stat-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: rotateY(360deg);
}

.stat-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.stat-content p {
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 991px) {
    .projects-hero {
        padding: 80px 0;
    }

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

    .hero-visual {
        height: 400px;
        margin-top: 50px;
    }

    .tech-sphere {
        width: 300px;
        height: 300px;
    }

    .tech-item {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .experience-badge {
        width: 100px;
        height: 100px;
    }

    .badge-content .years {
        font-size: 1.8rem;
    }

    .featured-project-image img {
        height: 300px;
    }

    .project-features {
        flex-wrap: wrap;
    }

    .featured-project-card {
        padding: 30px;
    }

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .project-filters {
        justify-content: flex-start;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .tech-sphere {
        width: 250px;
        height: 250px;
    }

    .tech-item {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .featured-project-card {
        padding: 20px;
    }

    .project-features {
        gap: 15px;
    }

    .feature {
        padding: 15px;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .stat-content h3 {
        font-size: 2rem;
    }

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

    .project-description {
        font-size: 1rem;
    }

    .project-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Project Grid Masonry Layout */
.project-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
}

.project-grid {
    background: linear-gradient(135deg, #0F0F1E 0%, #1C1429 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.project-grid::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(128, 0, 255, 0.1), rgba(255, 0, 255, 0.1));
    filter: blur(120px);
    top: -100px;
    left: -100px;
    z-index: 0;
}

.project-grid::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.08), rgba(0, 128, 255, 0.08));
    filter: blur(150px);
    bottom: -200px;
    right: -100px;
    z-index: 0;
}

.project-grid .container {
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(45deg, #FF00FF, #00FFFF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 16px;
    margin-bottom: 1.2rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 0, 255, 0.1), rgba(0, 255, 255, 0.1));
    border-radius: 30px;
    z-index: -1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.section-title .highlight {
    background: linear-gradient(45deg, #FF00FF, #00FFFF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.section-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(45deg, rgba(255, 0, 255, 0.3), rgba(0, 255, 255, 0.3));
    border-radius: 4px;
    z-index: -1;
}

.section-description {
    color: #a0a0a0;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 3.5rem;
}

.filter-button {
    background: rgba(255, 255, 255, 0.05);
    color: #a0a0a0;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.filter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 0, 255, 0),
            rgba(255, 0, 255, 0.2),
            rgba(0, 255, 255, 0.2),
            rgba(0, 255, 255, 0));
    transition: all 0.6s ease;
    z-index: 0;
}

.filter-button span {
    position: relative;
    z-index: 1;
}

.filter-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
}

.filter-button:hover::before {
    left: 100%;
}

.filter-button.active {
    background: linear-gradient(45deg, rgba(255, 0, 255, 0.2), rgba(0, 255, 255, 0.2));
    color: white;
    box-shadow: 0 8px 25px rgba(255, 0, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-item {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 16px;
    overflow: hidden;
    perspective: 1000px;
}

.project-item:hover {
    transform: translateY(-10px);
}

.project-card {
    position: relative;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(255, 0, 255, 0.1) 0%,
            rgba(0, 255, 255, 0.1) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: rotateX(10deg) rotateY(-10deg);
}

.project-card:hover::before {
    opacity: 1;
}

.project-image {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    filter: brightness(0.9) saturate(1.2);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
    filter: brightness(0.6) saturate(1.4);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    z-index: 2;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.7) 40%,
            transparent 100%);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1) 0.1s;
}

.project-card:hover .project-header {
    transform: translateY(0);
    opacity: 1;
}

.project-type {
    padding: 8px 16px;
    background: linear-gradient(45deg, rgba(255, 0, 255, 0.7), rgba(0, 255, 255, 0.7));
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.project-links {
    display: flex;
    gap: 12px;
}

.project-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-links a:hover {
    background: linear-gradient(45deg, rgba(255, 0, 255, 0.8), rgba(0, 255, 255, 0.8));
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.project-details {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1) 0.2s;
}

.project-card:hover .project-details {
    transform: translateY(0);
    opacity: 1;
}

.project-details h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-details p {
    color: #cccccc;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.7;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1) 0.3s;
}

.project-card:hover .tech-stack {
    transform: translateY(0);
    opacity: 1;
}

.tech-stack span {
    padding: 6px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 0.85rem;
    color: #cccccc;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tech-stack span:hover {
    background: linear-gradient(45deg, rgba(255, 0, 255, 0.2), rgba(0, 255, 255, 0.2));
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1200px) {
    .section-title {
        font-size: 2.8rem;
    }

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

    .project-card {
        height: 400px;
    }
}

@media (max-width: 992px) {
    .section-title {
        font-size: 2.5rem;
    }

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

    .filter-button {
        padding: 10px 20px;
    }
}

@media (max-width: 768px) {
    .project-grid {
        padding: 80px 0;
    }

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

    .section-badge {
        font-size: 0.8rem;
    }

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

    .project-card {
        height: 380px;
        transform: none !important;
    }

    .project-card:hover {
        transform: translateY(-10px) !important;
    }

    .project-overlay {
        opacity: 1;
        background: linear-gradient(to top,
                rgba(0, 0, 0, 0.9) 0%,
                rgba(0, 0, 0, 0.6) 50%,
                rgba(0, 0, 0, 0.2) 100%);
    }

    .project-header,
    .project-details,
    .tech-stack {
        opacity: 1;
        transform: translateY(0);
    }

    .project-details h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .project-grid {
        padding: 60px 0;
    }

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

    .project-masonry {
        grid-template-columns: 1fr;
    }

    .project-card {
        height: 350px;
    }

    .project-overlay {
        padding: 1.5rem;
    }

    .project-details h3 {
        font-size: 1.4rem;
    }

    .filter-container {
        gap: 10px;
    }

    .filter-button {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Ripple Effect for Buttons */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Animated Title */
.animate-title {
    position: relative;
    overflow: hidden;
}

.animate-title::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #1C1429, transparent);
    animation: title-shine 3s linear infinite;
}

@keyframes title-shine {
    0% {
        left: -100%;
    }

    20%,
    100% {
        left: 100%;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Project Card Glow Effect */
.project-card::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg,
            rgba(255, 0, 255, 0.5) 0%,
            rgba(0, 255, 255, 0.5) 33%,
            rgba(255, 255, 0, 0.5) 66%,
            rgba(255, 0, 255, 0.5) 100%);
    background-size: 300% 300%;
    border-radius: 20px;
    z-index: -2;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: gradient-shift 5s ease infinite;
}

.project-card:hover::after {
    opacity: 0.15;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Project Masonry Animation */
.project-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    animation: fade-in 1s ease-out;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tech Stack Tag Animation */
.tech-stack span {
    transform: translateY(20px);
    opacity: 0;
    animation: tag-appear 0.5s forwards;
    animation-play-state: paused;
}

.project-card:hover .tech-stack span {
    animation-play-state: running;
}

@keyframes tag-appear {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Overlay Shine Effect */
.project-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transform: skewX(-25deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay::after {
    animation: shine 1.5s ease;
}

@keyframes shine {
    0% {
        left: -100%;
        opacity: 0.7;
    }

    100% {
        left: 150%;
        opacity: 0;
    }
}

/* Staggered Filter Buttons */
.filter-button {
    opacity: 0;
    transform: translateY(20px);
    animation: filter-appear 0.5s forwards;
}

.filter-button:nth-child(1) {
    animation-delay: 0.1s;
}

.filter-button:nth-child(2) {
    animation-delay: 0.2s;
}

.filter-button:nth-child(3) {
    animation-delay: 0.3s;
}

.filter-button:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes filter-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Particles Canvas */
.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.7;
}

/* Footer Enhancements */
.footer {
    background: linear-gradient(135deg, #0F0F1E 0%, #1C1429 100%);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(128, 0, 255, 0.05), rgba(255, 0, 255, 0.05));
    filter: blur(80px);
    top: -200px;
    right: -100px;
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-links a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            rgba(255, 0, 255, 0.7),
            rgba(0, 255, 255, 0.7));
    z-index: -1;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-links a:hover {
    color: white;
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(255, 0, 255, 0.5),
        0 0 30px rgba(0, 255, 255, 0.3);
}

.social-links a:hover::before {
    transform: scale(1);
}

.social-links a i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-links a:hover i {
    transform: scale(1.2);
}

.social-links a:nth-child(1):hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(233, 97, 97, 0.8);
}

.social-links a:nth-child(2):hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(10, 102, 194, 0.8);
}

.social-links a:nth-child(3):hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 0, 0, 0.8);
}

.social-links a:nth-child(4):hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(193, 53, 132, 0.8);
}

.social-links a:nth-child(5):hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(66, 103, 178, 0.8);
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    position: relative;
    padding-top: 20px;
}

.copyright::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
}

@media (max-width: 576px) {
    .social-links {
        gap: 15px;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}