/* ========================================
   PROJECTS PAGE STYLES
   ======================================== */

/* Projects Page Container */
.projects-page {
    padding-top: 0;
    background: var(--bg-primary);
    min-height: 100vh;
    position: relative;
}

.projects-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
}

/* Projects Hero Section */
.projects-hero {
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 0 80px;
    position: relative;
    text-align: center;
    overflow: hidden;
    z-index: 1;
    background: var(--bg-primary);
}

.projects-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: heroBackgroundShift 20s ease-in-out infinite;
}

@keyframes heroBackgroundShift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

[data-theme="dark"] .projects-hero::before {
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
}

.projects-hero-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.projects-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.projects-hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    max-width: 1000px;
    position: relative;
    text-align: center;
    margin: 0 auto;
}

.projects-hero-heading {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.06em;
    background: linear-gradient(
        135deg,
        var(--text-primary) 0%,
        var(--text-secondary) 30%,
        var(--text-primary) 60%,
        var(--text-secondary) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 10s ease infinite;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    margin: 0;
    padding: 0 20px;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.projects-hero-subtext {
    font-size: 1.35rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 800px;
    margin: 0;
    letter-spacing: -0.01em;
}

.projects-hero-subtext strong {
    color: var(--text-primary);
    font-weight: 600;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category Filter Section */
.projects-categories-section {
    padding: 60px 0 50px;
    position: relative;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.projects-categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    opacity: 0.5;
}

.projects-categories {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.project-category-filter {
    padding: 14px 28px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 60px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-family);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.project-category-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

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

.project-category-filter:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.06);
}

.project-category-filter.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        0 3px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.project-category-filter.active:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 10px 28px rgba(0, 0, 0, 0.18),
        0 5px 16px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .project-category-filter.active {
    background: var(--accent-green);
    color: #000000;
    border-color: var(--accent-green);
}

/* Projects Grid Section */
.projects-grid-section {
    padding: 80px 0 120px;
    position: relative;
}

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

/* Project Card */
.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.04),
        0 2px 8px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green), var(--text-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

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

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.12),
        0 6px 16px rgba(0, 0, 0, 0.08);
    border-color: color-mix(in oklab, var(--border-color) 70%, var(--text-primary));
}

/* Project Image */
.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--bg-primary);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

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

/* Project Badge */
.project-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.project-badge.case-study {
    background: rgba(0, 255, 150, 0.9);
    color: #000000;
}

.project-badge.featured {
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
}

.project-badge.new {
    background: rgba(59, 130, 246, 0.9);
    color: #ffffff;
}

[data-theme="dark"] .project-badge.case-study {
    background: rgba(0, 255, 150, 0.8);
}

[data-theme="dark"] .project-badge.featured {
    background: rgba(239, 68, 68, 0.8);
}

[data-theme="dark"] .project-badge.new {
    background: rgba(59, 130, 246, 0.8);
}

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

.project-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.project-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
}

/* Project Tech Stack */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.tech-tag {
    padding: 6px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.project-card:hover .tech-tag {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Project Meta */
.project-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.project-year {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.project-client {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Project Actions */
.project-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
    padding: 8px 16px;
    border-radius: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

.project-link:hover {
    gap: 12px;
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.project-link:hover svg {
    transform: translateX(4px);
}

.project-link.case-study-link {
    background: var(--accent-green);
    color: #000000;
    border-color: var(--accent-green);
}

.project-link.case-study-link:hover {
    background: var(--accent-green-hover);
    border-color: var(--accent-green-hover);
}

/* Empty State */
.projects-empty-state {
    text-align: center;
    padding: 80px 20px;
}

.projects-empty-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    opacity: 0.5;
}

.projects-empty-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.projects-empty-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

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

@media (max-width: 992px) {
    .projects-page-container {
        padding: 0 32px;
    }

    .projects-hero {
        padding: 120px 0 60px;
        min-height: 55vh;
    }

    .projects-hero-heading {
        font-size: 3rem;
    }

    .projects-hero-subtext {
        font-size: 1.2rem;
    }

    .projects-grid-section {
        padding: 60px 0 100px;
    }

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

@media (max-width: 768px) {
    .projects-page-container {
        padding: 0 24px;
    }

    .projects-hero {
        padding: 110px 0 50px;
        min-height: 50vh;
    }

    .projects-hero-container {
        padding: 0 20px;
    }

    .projects-hero-heading {
        font-size: 2.5rem;
        padding: 0 10px;
    }

    .projects-hero-subtext {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .projects-categories-section {
        padding: 40px 0 30px;
    }

    .projects-categories {
        gap: 10px;
    }

    .project-category-filter {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .projects-grid-section {
        padding: 50px 0 80px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .project-image-wrapper {
        height: 200px;
    }

    .project-content {
        padding: 24px;
    }

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

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

@media (max-width: 480px) {
    .projects-hero-heading {
        font-size: 2rem;
    }

    .projects-hero-subtext {
        font-size: 1rem;
    }

    .project-category-filter {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .project-image-wrapper {
        height: 180px;
    }

    .project-content {
        padding: 20px;
    }

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

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

    .tech-tag {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .project-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .project-link {
        justify-content: center;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .projects-hero::before,
    .projects-hero-content,
    .projects-hero-heading,
    .project-card,
    .project-image,
    .project-category-filter {
        animation: none;
        transition: none;
    }
}






















