/* Projects Page Styles - Extracted from inline styles for better performance */

/* Page Header */
.page-header {
    padding: 9rem 0 4rem;
    background-color: var(--color-dark-lighter);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.4) 0%, rgba(99, 125, 255, 0.3) 25%, rgba(45, 70, 185, 0.2) 50%, rgba(30, 45, 128, 0.15) 75%, transparent 100%),
                radial-gradient(circle at top right, rgba(120, 140, 255, 0.35), transparent 60%),
                radial-gradient(circle at bottom left, rgba(74, 108, 247, 0.3), transparent 60%);
    z-index: var(--layer-base);
}

.page-header .container {
    position: relative;
    z-index: var(--layer-hover);
}

.page-header h1 {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), rgba(74, 108, 247, 0.5));
    border-radius: 2px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 108, 247, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(74, 108, 247, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 108, 247, 0);
    }
}

/* Projects Intro Section */
.projects-intro {
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--color-dark);
}

.projects-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(74, 108, 247, 0.08), transparent 70%),
                radial-gradient(circle at bottom left, rgba(74, 108, 247, 0.08), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

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

.projects-intro .section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.projects-intro .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), rgba(74, 108, 247, 0.5));
    border-radius: 2px;
}

.projects-intro p {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    font-size: var(--size-lg);
    line-height: 1.8;
    color: var(--color-light-dimmed);
}

.projects-intro .highlight {
    color: var(--color-primary);
    font-weight: 500;
}

.projects-intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.intro-stat {
    background: rgba(30, 35, 50, 0.6);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(74, 108, 247, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.intro-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(74, 108, 247, 0.03), transparent);
    z-index: -1;
}

.intro-stat:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(74, 108, 247, 0.3);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    background: rgba(74, 108, 247, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.intro-stat:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(74, 108, 247, 0.25);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--color-primary), #8aa0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: var(--size-md);
    color: var(--color-light);
}

/* Project Filter Section */
.projects-filter-section {
    padding: 2rem 0 4rem;
    background-color: var(--color-dark);
    position: relative;
}

.filter-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: var(--size-xl);
    color: var(--color-light);
    font-family: var(--font-heading);
    position: relative;
    display: block;
    width: 100%;
}

.filter-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), rgba(74, 108, 247, 0.5));
    border-radius: 2px;
}

.projects-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background-color: rgba(30, 35, 50, 0.6);
    border: 1px solid rgba(74, 108, 247, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    color: var(--color-light);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(74, 108, 247, 0.05), transparent);
    z-index: -1;
}

.filter-btn.active {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 108, 247, 0.3);
    border-color: transparent;
}

.filter-btn:hover:not(.active) {
    background-color: rgba(74, 108, 247, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Project Thumbnails Section */
.project-thumbnail-section {
    padding: 5rem 0;
    background-color: var(--color-dark-lighter);
    position: relative;
    overflow: hidden;
}

.project-thumbnail-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.08) 0%, rgba(99, 125, 255, 0.05) 25%, transparent 100%);
    z-index: 0;
}

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

.project-thumbnail-section .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.project-thumbnail-section .section-badge {
    background: rgba(74, 108, 247, 0.1);
    color: var(--color-primary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: var(--size-xs);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-count {
    display: inline-block;
    background: linear-gradient(90deg, #4a6cf7, #9785ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    position: relative;
    margin-left: 0.5rem;
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--color-light-dimmed);
    font-size: var(--size-md);
    line-height: 1.7;
}

.project-thumbnail-section .section-title.thumbnail-title {
    text-align: center;
    width: 100%;
    margin: 0 auto 1rem;
    position: relative;
    display: block;
}

.project-thumbnail-section .section-title.thumbnail-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), rgba(74, 108, 247, 0.5));
    border-radius: 2px;
}

.project-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-thumbnail {
    position: relative;
    background-color: rgba(30, 35, 50, 0.6);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(74, 108, 247, 0.1);
    backdrop-filter: blur(5px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(74, 108, 247, 0.03), transparent);
    z-index: 0;
    pointer-events: none;
}

.project-thumbnail:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(74, 108, 247, 0.3);
}

.thumbnail-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.thumbnail-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, rgba(18, 21, 30, 0.8));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-thumbnail:hover .thumbnail-image::after {
    opacity: 1;
}

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

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

.thumbnail-content {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.thumbnail-name {
    font-size: var(--size-lg);
    margin-bottom: 0.8rem;
    color: var(--color-light);
    font-family: var(--font-heading);
    position: relative;
    display: inline-block;
}

.thumbnail-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.project-thumbnail:hover .thumbnail-name::after {
    width: 60px;
}

.thumbnail-desc {
    font-size: var(--size-sm);
    color: var(--color-light-dimmed);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    flex-grow: 1;
}

.thumbnail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.thumbnail-tag {
    background: rgba(74, 108, 247, 0.1);
    color: var(--color-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: var(--size-xs);
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-thumbnail:hover .thumbnail-tag {
    background: rgba(74, 108, 247, 0.2);
}

.thumbnail-links {
    display: flex;
    gap: 1rem;
}

.thumbnail-btn {
    padding: 0.6rem 1.2rem;
    font-size: var(--size-sm);
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.thumbnail-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.4s ease;
    z-index: -1;
}

.thumbnail-btn:hover::before {
    width: 100%;
}

.thumbnail-btn-live {
    background-color: var(--color-primary);
    color: white;
}

.thumbnail-btn-live:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 108, 247, 0.3);
}

.btn-icon {
    margin-right: 0.5rem;
    font-size: 1.1em;
}

/* Project Image Loading */
.thumbnail-image img {
    opacity: 1;
}

/* Fast display */
.thumbnail-image {
    background-color: rgba(30, 35, 50, 0.5);
}

/* Performance optimizations */
.project-thumbnail {
    will-change: transform;
}

/* Replacement for AOS animations */
.project-thumbnail,
.intro-stat,
.section-header,
.section-badge,
.section-title,
.page-header h1,
.page-header p,
.projects-intro p,
.projects-intro-grid,
.projects-filter,
.cta-buttons {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Ensure animations are triggered by a class that we'll add via JS */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
} 