/* ========================
   Projects Page Styles
   ======================== */

/* Projects Hero Section */
.projects-hero {
    padding: calc(var(--header-height) + 3rem) 0 5rem;
    background: var(--background-secondary);
}

.projects-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Featured Projects */
.featured-projects {
    padding: 5rem 0;
    background: var(--background-primary);
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.featured-project {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-large);
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.featured-project:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.featured-project .project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.featured-project .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 1rem;
}

.featured-project:hover .project-overlay {
    opacity: 1;
    backdrop-filter: blur(2px);
}

.project-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 11;
    position: relative;
    animation: fadeInUp 0.5s ease 0.2s both;
}

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

.project-actions .btn {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.3);
    }
    100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }
}

.project-actions .btn::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.project-actions .btn:hover::after {
    transform: translateX(3px);
}

.project-actions .btn:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    scale: 1.05;
    animation: none;
}

.project-actions .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.project-actions .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.project-content {
    padding: 2rem;
}

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

.project-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.project-status {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-status.featured {
    background: #dc2626;
}

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

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

.project-features h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.project-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.project-features li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.project-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

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

.tech-tag {
    background: var(--background-secondary);
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.tech-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.project-details {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.detail-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Other Projects Grid */
.other-projects {
    padding: 5rem 0;
    background: var(--background-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-small);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

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

.project-card .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-info {
    padding: 2rem;
}

.project-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-card .project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.project-card .project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Technologies Used */
.technologies-used {
    padding: 5rem 0;
    background: var(--background-primary);
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.tech-category {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
    text-align: center;
    transition: var(--transition);
}

.tech-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.tech-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
}

.tech-category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

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

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

.tech-item:hover {
    background: var(--background-secondary);
    transform: translateY(-3px);
}

.tech-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tech-item span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Learning Journey */
.learning-journey {
    padding: 5rem 0;
    background: var(--background-secondary);
}

.journey-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

.journey-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.journey-milestones {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
}

.journey-milestones h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.milestones-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.milestones-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--background-secondary);
    border-radius: 8px;
    transition: var(--transition);
}

.milestones-list li:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.milestones-list li:last-child {
    margin-bottom: 0;
}

.milestones-list i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.milestones-list li:hover i {
    color: white;
}

.milestones-list li:hover h4 {
    color: white;
}

.milestones-list span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.milestones-list li:hover span {
    color: rgba(255, 255, 255, 0.9);
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cta-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.cta .btn-primary:hover {
    background: var(--background-secondary);
    transform: translateY(-2px);
}

.cta .btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.cta .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-project .project-content {
        padding: 1.5rem;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .project-features ul {
        grid-template-columns: 1fr;
    }

    .project-details {
        flex-direction: column;
        gap: 1rem;
    }

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

    .tech-categories {
        grid-template-columns: 1fr;
    }

    .tech-items {
        grid-template-columns: 1fr;
    }

    .journey-content {
        grid-template-columns: 1fr;
    }

    .journey-milestones {
        padding: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .featured-project .project-image {
        height: 180px;
    }

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

    .project-features ul {
        grid-template-columns: 1fr;
    }
    
    .project-actions .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        min-width: 120px;
    }

    .project-overlay {
        background: rgba(0, 0, 0, 0.9);
    }

    .project-actions {
        animation: none;
        opacity: 1;
    }

    /* Project Cards Mobile Fixes */
    .project-card .project-meta {
        display: flex !important;
        opacity: 1 !important;
        max-height: none !important;
        overflow: visible !important;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
        margin-top: 1rem;
    }

    .project-card .project-tech {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }

    /* Clean display of tech tags on mobile */
    .project-card .project-tech {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }

    .project-card .project-title {
        cursor: default;
        position: relative;
    }

    /* Ensure project meta is always visible */
    .project-card .project-meta {
        visibility: visible !important;
        position: relative !important;
        z-index: 1;
    }
}

@media (max-width: 480px) {
    .projects-hero {
        padding: calc(var(--header-height) + 2rem) 0 3rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .featured-grid {
        gap: 1.5rem;
    }

    .featured-project .project-content {
        padding: 1.5rem;
    }

    .featured-project .project-image {
        height: 160px;
    }

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

    .project-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .project-actions .btn {
        padding: 0.75rem 1rem;
        width: 100%;
        max-width: 180px;
    }

    .project-info {
        padding: 1.5rem;
    }

    .tech-category {
        padding: 2rem;
    }

    .journey-milestones {
        padding: 1.5rem;
    }

    .milestones-list li {
        padding: 0.75rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }
} 