/* ========================================
   PROJECTS PAGE STYLES
   ======================================== */

/* Projects Hero Section */
.projects-hero {
    padding: var(--spacing-xl) 0 var(--spacing-lg) 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(162, 89, 255, 0.1) 0%, rgba(0, 255, 136, 0.1) 100%);
    border-radius: 0 0 20px 20px;
    margin-bottom: var(--spacing-lg);
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    letter-spacing: 2px;
    line-height: 1.2;
}

.projects-intro {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
}

/* Featured Project Section */
.featured-project {
    padding: var(--spacing-xl) 0;
}

.project-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.project-header {
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: var(--spacing-md);
}

.project-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.project-course,
.project-quarter,
.project-lead {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: rgba(162, 89, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(162, 89, 255, 0.2);
}

.project-description {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    margin-top: var(--spacing-md);
}

.project-images {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.project-image {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.project-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    transition: none !important;
    object-fit: cover;
    opacity: 1 !important;
    transform: none !important;
    max-width: 400px;
    max-height: 300px;
}

.project-img:hover {
    transform: scale(1.02) !important;
    box-shadow: var(--shadow-large);
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

/* Specific sizing for SportsBox demo photo to match smart putter photo */
.project-img[alt="SportsBox AI Technology Demo"] {
    max-width: 250px;
    height: auto;
    object-fit: contain;
}

/* Project Features */
.project-features {
    background: rgba(162, 89, 255, 0.05);
    border: 1px solid rgba(162, 89, 255, 0.2);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
}

.features-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    letter-spacing: 1px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    transition: all var(--transition-normal);
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(162, 89, 255, 0.1);
}

.feature-item h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.feature-item p {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0;
}

/* Technical Implementation */
.project-technical {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
}

.technical-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    letter-spacing: 1px;
}

.technical-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.tech-section h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.5px;
}

.tech-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-section li {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: var(--spacing-xs);
    padding-left: var(--spacing-sm);
    position: relative;
}

.tech-section li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Project Gallery */
.project-gallery {
    position: sticky;
    top: var(--spacing-lg);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.prototype-images {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    width: 100%;
}

.prototype-image {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-normal);
}

.prototype-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(162, 89, 255, 0.1);
}

.prototype-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    transition: none !important;
    object-fit: cover;
    opacity: 1 !important;
    transform: none !important;
}

.prototype-img:hover {
    transform: scale(1.02) !important;
    box-shadow: var(--shadow-large);
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.image-caption {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
    font-style: italic;
}

/* Project Results */
.project-results {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(162, 89, 255, 0.05) 0%, rgba(0, 255, 136, 0.05) 100%);
}

.results-grid {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.result-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(162, 89, 255, 0.2);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all var(--transition-normal);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(162, 89, 255, 0.1);
    border-color: var(--accent-color);
}

.result-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.5px;
}

.metric {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--spacing-md);
}

.metric:last-child {
    margin-bottom: 0;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.metric-label {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Future Projects */
.future-projects {
    padding: var(--spacing-xl) 0;
}

.upcoming-grid {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.upcoming-card {
    background: rgba(162, 89, 255, 0.05);
    border: 1px solid rgba(162, 89, 255, 0.2);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
    position: relative;
}

.upcoming-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(162, 89, 255, 0.1);
    border-color: var(--accent-color);
}

.upcoming-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.5px;
}

.upcoming-card p {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.timeline {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-color);
    background: rgba(162, 89, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(162, 89, 255, 0.2);
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .project-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .project-gallery {
        position: static;
        order: -1;
    }
    
    .prototype-images {
        flex-direction: row;
        justify-content: center;
    }
    
    .prototype-image {
        flex: 1;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .projects-hero {
        padding: var(--spacing-lg) 0;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .projects-intro {
        font-size: 1.1rem;
    }
    
    .project-title {
        font-size: 1.8rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .technical-details {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .upcoming-grid {
        grid-template-columns: 1fr;
    }
    
    .prototype-images {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .projects-hero {
        padding: var(--spacing-md) 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .projects-intro {
        font-size: 1rem;
    }
    
    .project-title {
        font-size: 1.5rem;
    }
    
    .feature-item,
    .result-card,
    .upcoming-card {
        padding: var(--spacing-md);
    }
}

/* Projects Overview - New Layout */
.projects-overview {
    padding: var(--spacing-xl) 0;
}

.projects-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex !important;
    flex-direction: row !important;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.projects-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    flex: 2;
    width: 66.66%;
}

.projects-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    position: sticky;
    top: calc(var(--header-height) + var(--spacing-md));
    flex: 1;
    width: 33.33%;
}

.software-photos {
    display: flex;
    gap: calc(var(--spacing-xs) / 2);
    margin-bottom: var(--spacing-md);
}

.software-photos .project-image {
    flex: 1;
    max-width: calc(50% - var(--spacing-sm) / 2);
}

/* Make SportsBox demo photo smaller to match smart putter height */
.software-photos .project-image:nth-child(2) img {
    height: 240px;
    width: auto;
    object-fit: cover;
    max-width: 100%;
}

/* Ensure both software photos have consistent height */
.software-photos .project-image:first-child img {
    height: 240px;
    width: auto;
    object-fit: cover;
    max-width: 100%;
}

/* Move smart putter photo (second child) to the left by 1/3 of its width */
.software-photos .project-image:nth-child(2) {
    transform: translateX(calc(-33.33%));
}

/* Add spacing to align text with photos */
.project-item:nth-child(2) {
    margin-top: var(--spacing-lg);
}

.project-item:nth-child(3) {
    margin-top: var(--spacing-lg);
}

/* Specific spacing for putter photo */
.putter-photo {
    margin-top: var(--spacing-md);
}

/* Specific spacing for golf team photo */
.golf-team-photo {
    margin-top: var(--spacing-md);
}

/* Responsive Design for Projects Overview */
@media (max-width: 768px) {
    .projects-container {
        flex-direction: column !important;
        gap: var(--spacing-md);
    }
    
    .projects-text {
        width: 100%;
        flex: none;
    }
    
    .projects-gallery {
        position: static;
        order: -1;
        width: 100%;
        flex: none;
    }
}