/* ========================================
   PROJECTS PAGE - CONSISTENT DESIGN
   Hero and Projects sections with seamless flow
======================================== */

/* ========== PROJECTS HERO SECTION ========== */
.projects-hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding: 160px 0 80px;
    overflow: hidden;
    background: #0a0a0a;
}

.projects-hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.projects-hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(251, 191, 36, 0.12) 0%, transparent 50%);
}

.projects-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float-projects 20s ease-in-out infinite;
}

.projects-shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.projects-shape-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.25) 0%, transparent 70%);
    bottom: -15%;
    right: -10%;
    animation-delay: 7s;
}

.projects-shape-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    top: 50%;
    right: 20%;
    animation-delay: 14s;
}

@keyframes float-projects {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.projects-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    /* Remove animation from here - handled by JS */
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.back-to-home:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
    color: #ffffff;
    transform: translateX(-4px);
}

.back-to-home svg {
    transition: transform 0.3s ease;
}

.back-to-home:hover svg {
    transform: translateX(-4px);
}

.projects-hero-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 24px;
    color: #818cf8;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.projects-hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    color: #ffffff;
    margin-bottom: 24px;
}

.projects-hero-accent {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projects-hero-subtitle {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto 48px;
}

.projects-hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

.hero-stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #fbbf24;
    line-height: 1;
    margin-bottom: 8px;
}

.hero-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== PROJECTS LISTING SECTION ========== */
.projects-listing {
    padding: 80px 0 120px;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
}

/* Background continuation from hero */
.projects-listing-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.projects-listing-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
}

.projects-listing-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: float-projects-listing 25s ease-in-out infinite;
}

.projects-listing-shape-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.25) 0%, transparent 70%);
    top: 10%;
    left: 5%;
    animation-delay: 3s;
}

.projects-listing-shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, transparent 70%);
    top: 40%;
    right: -5%;
    animation-delay: 10s;
}

.projects-listing-shape-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
    bottom: 15%;
    left: -10%;
    animation-delay: 17s;
}

.projects-listing-shape-4 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, transparent 70%);
    bottom: 5%;
    right: 15%;
    animation-delay: 5s;
}

@keyframes float-projects-listing {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(-25px, 35px) scale(1.08) rotate(120deg);
    }
    66% {
        transform: translate(35px, -25px) scale(0.92) rotate(240deg);
    }
}

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
    position: relative;
    z-index: 2;
}

/* ========== PROJECT CARD DESIGN ========== */
.project-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.project-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(-8px);
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(99, 102, 241, 0.08) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    min-height: 500px;
}

/* Alternate layout for even cards */
.project-card:nth-child(even) .project-card-inner {
    grid-template-columns: 1.2fr 1fr;
}

.project-card:nth-child(even) .project-image-wrapper {
    order: 2;
}

.project-card:nth-child(even) .project-content {
    order: 1;
}

/* ========== PROJECT IMAGE ========== */
.project-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-image-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.7;
    transition: opacity 0.4s ease;
    mix-blend-mode: multiply;
}

.project-card:hover .project-image-overlay {
    opacity: 0.5;
}

/* Different overlay colors for different categories */
.project-card[data-category="education"] .project-image-overlay {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.85) 0%, rgba(139, 92, 246, 0.6) 100%);
}

.project-card[data-category="business"] .project-image-overlay {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(59, 130, 246, 0.7) 100%);
}

.project-card[data-category="healthcare"] .project-image-overlay {
    background: linear-gradient(135deg, rgba(6, 182, 185, 0.9) 0%, rgba(19, 247, 251, 0.7) 100%);
}

.project-card[data-category="fintech"] .project-image-overlay {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.9) 0%, rgba(249, 115, 22, 0.7) 100%);
}

.project-card[data-category="crm"] .project-image-overlay {
    background: linear-gradient(135deg, rgba(21, 128, 61, 0.9) 0%, rgba(34, 197, 94, 0.7) 100%);
}

.project-card[data-category="pos"] .project-image-overlay {
    background: linear-gradient(135deg, rgba(190, 18, 60, 0.9) 0%, rgba(225, 29, 72, 0.7) 100%);
}

/* ========== PROJECT CONTENT ========== */
.project-content {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
}

.project-header {
    margin-bottom: 32px;
}

.project-category {
    display: inline-block;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    margin-bottom: 16px;
}

/* Category badge colors */
.category-education {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.category-business {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.category-healthcare {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.category-fintech {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.category-crm {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.category-pos {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.project-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 12px;
}

.project-client {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    margin-bottom: 24px;
}

.project-description {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

/* ========== PROJECT METRICS ========== */
.project-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.metric-box {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.metric-value {
    font-size: 24px;
    font-weight: 800;
    color: #fbbf24;
    line-height: 1;
    margin-bottom: 6px;
    display: block;
}

.metric-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== PROJECT FEATURES ========== */
.project-features {
    margin-bottom: 32px;
}

.project-features h4 {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: start;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.features-list li svg {
    width: 16px;
    height: 16px;
    color: #fbbf24;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ========== PROJECT BENEFITS ========== */
.project-benefits {
    margin-bottom: 32px;
}

.project-benefits h4 {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.benefit-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-item:hover::before {
    opacity: 1;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.benefit-item h5 {
    font-size: 15px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 8px;
    line-height: 1.3;
}

.benefit-item p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ========== PROJECT TECHNOLOGIES ========== */
.project-tech {
    margin-bottom: 32px;
}

.project-tech h4 {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: #818cf8;
}

/* ========== PROJECT ACTIONS ========== */
.project-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.btn-project {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-project-primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
    flex: 1;
    justify-content: center;
}

.btn-project-primary:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.btn-project-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-project-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(99, 102, 241, 0.4);
}

.btn-project svg {
    transition: transform 0.3s ease;
}

.btn-project:hover svg {
    transform: translateX(4px);
}

/* ========== PROJECTS CTA SECTION ========== */
.projects-cta {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    overflow: hidden;
}

.projects-cta-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.projects-cta-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.cta-shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    top: -20%;
    left: -10%;
}

.cta-shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    bottom: -15%;
    right: -5%;
}

.projects-cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.projects-cta-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: white;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.projects-cta-subtitle {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
}

.projects-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: white;
    color: #6366f1;
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-cta-primary:hover {
    background: #f8fafc;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .projects-hero-title {
        font-size: 48px;
    }
    
    .benefits-grid {
    grid-template-columns: 1fr;
    }
    
    .project-card-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .project-card:nth-child(even) .project-card-inner {
        grid-template-columns: 1fr;
    }
    
    .project-card:nth-child(even) .project-image-wrapper,
    .project-card:nth-child(even) .project-content {
        order: initial;
    }
    
    .project-image-wrapper {
        min-height: 400px;
    }
    
    .project-content {
        padding: 40px;
    }
    
    .project-title {
        font-size: 28px;
    }
    
    .project-metrics {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .projects-hero {
        min-height: 60vh;
        padding: 140px 0 60px;
    }
    
    .benefit-item {
    padding: 16px;
}

.benefit-item h5 {
    font-size: 14px;
}

.benefit-item p {
    font-size: 12px;
}

    .projects-hero-title {
        font-size: 40px;
    }
    
    .projects-hero-subtitle {
        font-size: 16px;
    }
    
    .projects-hero-stats {
        gap: 24px;
    }
    
    .hero-stat-item {
        padding: 16px 24px;
    }
    
    .hero-stat-number {
        font-size: 28px;
    }
    
    .projects-listing {
        padding: 60px 0 80px;
    }
    
    .projects-container {
        gap: 60px;
    }
    
    .project-content {
        padding: 32px 24px;
    }
    
    .project-title {
        font-size: 24px;
    }
    
    .project-metrics {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .metric-box {
        padding: 12px;
    }
    
    .metric-value {
        font-size: 20px;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .btn-project {
        width: 100%;
        justify-content: center;
    }
    
    .projects-cta {
        padding: 80px 0;
    }
    
    .projects-cta-title {
        font-size: 36px;
    }
    
    .projects-cta-subtitle {
        font-size: 16px;
    }
    
    .projects-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .projects-hero-title {
        font-size: 32px;
    }
    
    .hero-stat-number {
        font-size: 24px;
    }

    .benefit-item h5 {
    font-size: 13px;
}

.benefit-item p {
    font-size: 11px;
}
    
    .project-title {
        font-size: 22px;
    }
    
    .project-description {
        font-size: 15px;
    }
    
    .features-list li {
        font-size: 13px;
    }
    
    .tech-stack {
        gap: 6px;
    }
    
    .tech-tag {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .projects-cta-title {
        font-size: 28px;
    }
}

/* ========== ANIMATION UTILITIES ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for project cards */
.project-card:nth-child(1) {
    animation-delay: 0.1s;
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card:nth-child(3) {
    animation-delay: 0.3s;
}

.project-card:nth-child(4) {
    animation-delay: 0.4s;
}

.project-card:nth-child(5) {
    animation-delay: 0.5s;
}

.project-card:nth-child(6) {
    animation-delay: 0.6s;
}