/* ===================================================
   ULTRA-MODERN PROJECTS SECTION
   Featured hero cards, category filters, glassmorphism
   =================================================== */

.projects-section-modern {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0A0E27 0%, #1a1f3a 50%, #0f1729 100%);
    position: relative;
    overflow: hidden;
}

.projects-section-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(0, 229, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(123, 47, 247, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Main Title */
.projects-main-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.projects-subtitle-text {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4rem;
    font-weight: 400;
}

/* =================================
   FEATURED HERO SECTION
   ================================= */

.featured-projects-hero {
    margin-bottom: 5rem;
}

.featured-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Project Card */
.project-hero-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(26, 31, 58, 0.98));
    border: 2px solid rgba(0, 229, 255, 0.3);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.project-hero-card:hover {
    transform: translateY(-15px);
    border-color: var(--accent-cyan);
    box-shadow: 0 30px 80px rgba(0, 229, 255, 0.4);
}

/* Hero Image */
.project-hero-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(123, 47, 247, 0.1));
}

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

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

.project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.5);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Hero Content */
.project-hero-content {
    padding: 2.5rem;
}

.hero-project-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.hero-project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
}

.hero-project-tagline {
    color: var(--accent-cyan);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

/* PROMINENT METRICS - The Star of the Show! */
.hero-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin: 2rem 0;
}

.hero-metric-item {
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.hero-metric-item:hover {
    background: rgba(0, 229, 255, 0.18);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.3);
}

.hero-metric-value {
    font-size: 2.75rem;
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.hero-metric-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Project Description */
.hero-project-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Tech Stack */
.hero-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.75rem 0;
}

.hero-tech-tag {
    background: rgba(123, 47, 247, 0.2);
    border: 1px solid rgba(123, 47, 247, 0.4);
    color: var(--accent-purple);
    padding: 0.6rem 1.25rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-tech-tag:hover {
    background: rgba(123, 47, 247, 0.3);
    transform: translateY(-2px);
}

/* Action Buttons */
.hero-project-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-btn-primary,
.hero-btn-secondary {
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.3);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 229, 255, 0.5);
    color: #fff;
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-cyan);
    border: 2px solid rgba(0, 229, 255, 0.3);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* =================================
   OTHER PROJECTS GRID
   ================================= */

.other-projects-section {
    margin-top: 5rem;
}

.other-projects-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 3rem;
}

.projects-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Modern Project Card */
.project-card-modern {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.project-card-modern:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 60px rgba(0, 229, 255, 0.3);
}

.project-card-image {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(123, 47, 247, 0.08));
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.project-card-content {
    padding: 1.75rem;
}

.project-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.project-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.project-card-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.project-card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.project-tech-badge {
    background: rgba(123, 47, 247, 0.15);
    border: 1px solid rgba(123, 47, 247, 0.3);
    color: var(--accent-purple);
    padding: 0.4rem 0.9rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-card-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.project-card-link:hover {
    color: #fff;
    gap: 0.75rem;
}

/* Scroll Animations */
.project-card-modern,
.project-hero-card {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.project-card-modern.visible,
.project-hero-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.project-hero-card:nth-child(1) {
    transition-delay: 0.1s;
}

.project-hero-card:nth-child(2) {
    transition-delay: 0.2s;
}

.project-card-modern:nth-child(1) {
    transition-delay: 0.05s;
}

.project-card-modern:nth-child(2) {
    transition-delay: 0.1s;
}

.project-card-modern:nth-child(3) {
    transition-delay: 0.15s;
}

.project-card-modern:nth-child(4) {
    transition-delay: 0.2s;
}

.project-card-modern:nth-child(5) {
    transition-delay: 0.25s;
}

.project-card-modern:nth-child(6) {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-cards-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

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

    .hero-project-actions {
        flex-direction: column;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .projects-grid-modern {
        grid-template-columns: 1fr;
    }

    .project-hero-image {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .hero-metric-value {
        font-size: 2.25rem;
    }

    .project-hero-content {
        padding: 2rem 1.5rem;
    }
}