/* Poliframe Journey Section Styling */

/* Section Headers with Better Visual Hierarchy */
.journey-section {
    margin: 4rem auto;
    max-width: 1400px;
    padding: 0 2rem;
}

.section-divider {
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #53acd3, transparent);
    border: none;
    margin: 4rem auto;
    opacity: 0.6;
}

/* Enhanced Project Header */
.project-header-ASG {
    position: relative;
    padding: 2rem 5%;
    font-size: 3.5em;
    font-weight: bold;
    text-align: center;
    margin: 2rem 0 3rem 0;
}

.project-header-ASG::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, #0084ff, #53acd3, #96f5f5);
    border-radius: 2px;
}

/* Problem Statement with Card Design */
.project-problem-statement {
    background: rgba(0, 132, 255, 0.08);
    border-left: 4px solid #53acd3;
    padding: 2rem 3rem;
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 20px rgba(0, 132, 255, 0.1), 0 0 30px rgba(0, 132, 255, 0.15);
}

.project-problem-statement strong {
    background: linear-gradient(45deg, #0084ff, #53acd3, #96f5f5, #0084ff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s linear infinite;
}

.project-problem-statement h6 {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(83, 172, 211, 0.3);
    font-style: italic;
}

.project-problem-statement h6 strong {
    background: linear-gradient(45deg, #0084ff, #53acd3, #96f5f5, #0084ff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s linear infinite;
}

/* Introduction Section Enhancement */
.project-description-ASG {
    background: linear-gradient(135deg, rgba(0, 132, 255, 0.05), rgba(83, 172, 211, 0.05));
    border: 2px solid rgba(83, 172, 211, 0.3);
    border-radius: 12px;
    padding: 3rem;
    margin: 3rem auto;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 132, 255, 0.2);
}

.project-description-ASG::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #0084ff, #53acd3, #96f5f5);
}

.project-description-ASG h2 {
    padding-left: 0;
    padding-right: 2rem;
    line-height: 1.8;
    color: transparent;
    background: linear-gradient(45deg, #0084ff, #53acd3, #96f5f5, #0084ff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientShift 8s linear infinite;
}

/* Journey Content Cards */
.project-content {
    margin: 4rem auto;
    max-width: 1400px;
    padding: 0 2rem;
}

.project-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 132, 255, 0.15);
    border: 1px solid rgba(83, 172, 211, 0.3);
}

.project-text {
    flex: 1;
    padding: 1rem;
}

.project-text h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    background: linear-gradient(45deg, #0084ff, #53acd3, #96f5f5, #0084ff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s linear infinite;
}

.project-text p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.project-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(0, 132, 255, 0.4);
}

/* Flipped Layout for Alternating Design */
.project-content.flipped .project-details {
    flex-direction: row-reverse;
}

.project-content.flipped .project-text {
    text-align: right;
}

.project-content.flipped .project-text h3 {
    text-align: right;
}

/* Showcase Image Layout */
.showcase-item {
    max-width: 900px;
    margin: 3rem auto;
    text-align: center;
}

.showcase-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.showcase-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 30px rgba(0, 132, 255, 0.4);
}

.showcase-caption {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Video Section Enhancement */
.video-project {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0;
    text-align: center;
}

.video-project iframe {
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 132, 255, 0.3), 0 0 30px rgba(0, 132, 255, 0.2);
    border: 2px solid rgba(83, 172, 211, 0.3);
}

.video-project video {
    width: 100%;
    max-width: 1200px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 132, 255, 0.3), 0 0 30px rgba(0, 132, 255, 0.2);
    border: 2px solid rgba(83, 172, 211, 0.3);
}

/* Figma Embed Enhancement */
.figma-embeds {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 2px solid rgba(83, 172, 211, 0.3);
    box-shadow: 0 0 30px rgba(0, 132, 255, 0.2);
}

.figma-embeds iframe {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    max-width: 100%;
}

/* Section Number Badges */
.section-badge {
    display: inline-block;
    background: linear-gradient(45deg, #0084ff, #53acd3, #96f5f5, #0084ff);
    background-size: 200% 100%;
    animation: gradientShift 8s linear infinite;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Image Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(83, 172, 211, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 40px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #53acd3;
}

/* Link Styling */
.project-description-ASG a {
    color: #53acd3;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.project-description-ASG a:hover {
    color: #96f5f5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .project-details {
        flex-direction: column !important;
        padding: 2rem;
    }
    
    .project-content.flipped .project-details {
        flex-direction: column !important;
    }
    
    .project-header-ASG {
        font-size: 2.5em;
    }
    
    .project-description-ASG {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .journey-section {
        padding: 0 1rem;
    }
    
    .project-header-ASG {
        font-size: 2em;
        padding: 1.5rem 3%;
    }
    
    .project-problem-statement {
        padding: 1.5rem;
        margin: 1.5rem 1rem;
    }
    
    .project-description-ASG {
        padding: 1.5rem;
        margin: 2rem 1rem;
    }
    
    .project-details {
        padding: 1.5rem;
        gap: 2rem;
    }
    
    .project-text p {
        font-size: 1.1rem;
    }
    
    .figma-embeds iframe {
        width: 100%;
        height: 300px;
    }
}
