/* Projects Page Styles */

/* Projects Hero Section */
.projects-hero {
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    text-align: center;
}

.projects-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtext {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Project Filter Section */
.project-filter-section {
    padding: 2rem 0;
    background: var(--background-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    background: transparent;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

/* Projects Grid Section */
.projects-grid-section {
    padding: 4rem 2rem;
    background: var(--background-color);
}

.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 4rem;
}

/* Project Article Styles */
.project-article {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-article:hover {
    transform: translateY(-5px);
}

.project-header {
    position: relative;
}

.project-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-article:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

.project-info h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.project-category, .project-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-content {
    padding: 2rem;
    display: none; /* Hide project content by default on the page */
}

.project-description h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 2rem 0 1rem;
}

.project-description h3:first-child {
    margin-top: 0;
}

.project-description p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.project-description ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.project-description ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
}

.project-description ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.tech-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.tech-item i {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .projects-hero h1 {
        font-size: 3rem;
    }

    .project-image {
        height: 350px;
    }

    .project-info h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .projects-hero {
        padding: 6rem 1rem 3rem;
    }

    .projects-hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtext {
        font-size: 1.1rem;
    }

    .project-filter-section {
        padding: 1.5rem 0;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .projects-grid-section {
        padding: 3rem 1rem;
    }

    .project-image {
        height: 300px;
    }

    .project-info {
        padding: 1.5rem;
    }

    .project-info h2 {
        font-size: 1.5rem;
    }

    .project-content {
        padding: 1.5rem;
    }

    .project-description h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .projects-hero h1 {
        font-size: 2rem;
    }

    .hero-subtext {
        font-size: 1rem;
    }

    .project-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 80%;
        margin: 0.2rem 0;
    }

    .project-image {
        height: 250px;
    }

    .project-info h2 {
        font-size: 1.3rem;
    }

    .project-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tech-stack {
        justify-content: center;
    }
}

/* Animation Classes */
.project-article {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.project-article.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Project Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.8); /* Black with opacity */
    backdrop-filter: blur(5px); /* Optional: adds a blur effect */
    -webkit-backdrop-filter: blur(5px); /* Safari support */
    padding-top: 60px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background: var(--background-color);
    margin: 5% auto; /* 5% from the top and centered */
    padding: 40px;
    border-radius: 10px;
    width: 90%; /* Could be more or less, depending on screen size */
    max-width: 900px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease-in-out;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-button {
    color: var(--text-color);
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.modal-text h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.modal-meta span {
    margin-right: 15px;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.modal-description h3,
.modal-tech-stack h3,
.modal-impact h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-description p,
.modal-impact ul li {
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 10px;
}

.modal-description ul {
    list-style: none;
    padding-left: 0;
}

.modal-description ul li::before {
    content: '→';
    margin-right: 10px;
    color: var(--primary-color);
}

.modal-tech-stack .tech-item {
    margin-bottom: 10px;
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        width: 95%;
    }

    .close-button {
        top: 10px;
        right: 20px;
        font-size: 25px;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-image img {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 15px;
    }

    .close-button {
        top: 5px;
        right: 15px;
        font-size: 20px;
    }

    .modal-text h2 {
        font-size: 1.5rem;
    }

    .modal-meta span {
        font-size: 0.8rem;
        margin-right: 10px;
    }

    .modal-description h3,
    .modal-tech-stack h3,
    .modal-impact h3 {
        font-size: 1.2rem;
    }

    .modal-description p,
    .modal-impact ul li {
        font-size: 0.9rem;
    }
} 