/* Import base styles from home.css */
@import url('home.css');

/* Projects Page Specific Styles */
.hero {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.05) 0%, 
        rgba(255, 255, 255, 1) 50%, 
        rgba(59, 130, 246, 0.05) 100%);
    padding: 6rem 0 4rem;
    text-align: center;
}

.hero-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: rotate-glow 3s ease-in-out infinite;
}

.hero-icon i {
    width: 2rem;
    height: 2rem;
}

@keyframes rotate-glow {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 0 rgba(59, 130, 246, 0.3);
    }
    50% {
        transform: scale(1.1) rotate(180deg);
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.7;
}

/* Stats Section */
.stats {
    padding: 3rem 0;
    background-color: rgba(100, 116, 139, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--card);
    border-radius: 0.75rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px -12px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.stat-icon {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
    margin: 0 auto 1rem;
    animation: stat-pulse 2s ease-in-out infinite;
}

@keyframes stat-pulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.2) rotate(90deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
    75% {
        transform: scale(1.2) rotate(270deg);
    }
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 500;
    color: var(--foreground);
}

/* Projects Section */
.projects {
    padding: 5rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.project-card {
    background-color: var(--card);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.project-card:hover::before {
    transform: translateX(100%);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.3);
}

.project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.project-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: project-icon-bounce 2s ease-in-out infinite;
}

@keyframes project-icon-bounce {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(5deg);
    }
    75% {
        transform: translateY(-5px) rotate(-5deg);
    }
}

.project-icon.robotics {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.project-icon.web {
    background: linear-gradient(135deg, #10b981, #059669);
}

.project-icon.iot {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.project-icon.healthcare {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.project-icon.ai {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.project-icon.assistive {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.project-icon i {
    width: 1.5rem;
    height: 1.5rem;
}

.project-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.completed {
    background-color: rgba(34, 197, 94, 0.1);
    color: rgb(34, 197, 94);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-badge.progress {
    background-color: rgba(59, 130, 246, 0.1);
    color: rgb(59, 130, 246);
    border: 1px solid rgba(59, 130, 246, 0.2);
    animation: progress-pulse 2s ease-in-out infinite;
}

@keyframes progress-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.complexity-badge {
    padding: 0.25rem 0.5rem;
    background-color: var(--muted);
    color: var(--muted-foreground);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

.complexity-badge.intermediate {
    background-color: rgba(59, 130, 246, 0.1);
    color: rgb(59, 130, 246);
    border-color: rgba(59, 130, 246, 0.2);
}

.complexity-badge.advanced {
    background-color: rgba(139, 92, 246, 0.1);
    color: rgb(139, 92, 246);
    border-color: rgba(139, 92, 246, 0.2);
}

.complexity-badge.expert {
    background-color: rgba(239, 68, 68, 0.1);
    color: rgb(239, 68, 68);
    border-color: rgba(239, 68, 68, 0.2);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

.project-card:hover .project-title {
    color: var(--primary);
}

.project-description {
    color: var(--muted-foreground);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-features {
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--foreground);
    opacity: 0;
    transform: translateX(-20px);
    animation: feature-slide-in 0.5s ease-out forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes feature-slide-in {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-item i {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
    flex-shrink: 0;
}

.feature-item i[data-lucide="check-circle"] {
    color: rgb(34, 197, 94);
}

.feature-item i[data-lucide="clock"] {
    color: rgb(59, 130, 246);
    animation: tick 1s ease-in-out infinite;
}

@keyframes tick {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(15deg);
    }
}

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

.tech-tag {
    padding: 0.375rem 0.75rem;
    background-color: transparent;
    color: var(--muted-foreground);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    opacity: 0;
    transform: scale(0.8);
    animation: tech-tag-appear 0.4s ease-out forwards;
}

.tech-tag:nth-child(1) { animation-delay: 0.1s; }
.tech-tag:nth-child(2) { animation-delay: 0.2s; }
.tech-tag:nth-child(3) { animation-delay: 0.3s; }
.tech-tag:nth-child(4) { animation-delay: 0.4s; }
.tech-tag:nth-child(5) { animation-delay: 0.5s; }
.tech-tag:nth-child(6) { animation-delay: 0.6s; }

@keyframes tech-tag-appear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tech-tag:hover {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-color: rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

.project-actions {
    display: flex;
    gap: 1rem;
}

.project-actions .btn {
    flex: 1;
}

.project-actions .btn:last-child {
    flex: 0 0 auto;
    padding: 0.75rem;
}

/* Project filtering (for future use) */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    background-color: var(--background);
    color: var(--muted-foreground);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(255, 255, 255, 1) 50%, 
        rgba(59, 130, 246, 0.1) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    animation: cta-gradient-move 8s ease-in-out infinite;
}

@keyframes cta-gradient-move {
    0%, 100% {
        background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    }
    25% {
        background: radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    }
    50% {
        background: radial-gradient(circle at 50% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    }
    75% {
        background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .cta-title {
        font-size: 3rem;
    }
}

.cta-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 32rem;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .project-badges {
        flex-direction: row;
        align-items: center;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .project-actions .btn:last-child {
        flex: 1;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-scale-up {
    animation: scaleUp 0.5s ease-out;
}

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

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

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .project-card {
        background-color: hsl(224, 71%, 4%);
        border-color: hsl(215, 27.9%, 16.9%);
    }
    
    .project-card:hover {
        border-color: rgba(59, 130, 246, 0.4);
    }
}