/* ===================================
   REFLECTION PAGE STYLES
   =================================== */

/* Reflection Hero Section */
.reflection-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f4c75 50%, #3282b8 100%);
}

.reflection-hero .hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.reflection-hero .hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(50, 130, 184, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.2) 0%, transparent 50%);
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.reflection-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.5);
    z-index: 1;
}

.reflection-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 var(--spacing-md);
}

.reflection-hero .hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    color: var(--white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
    line-height: 1.2;
}

/* Reflection Sections */
.reflection-section {
    padding: var(--spacing-xl) 0;
    background: var(--white);
    position: relative;
}

.reflection-section.planning-section {
    background: linear-gradient(135deg, #fef5f1 0%, #fff5eb 100%);
}

.reflection-section.analysis-section {
    background: var(--white);
}

.reflection-section.design-section {
    background: linear-gradient(135deg, #f0f7fa 0%, #e8f4f8 100%);
}

.reflection-section.implementation-section {
    background: var(--white);
}

.reflection-section.operation-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.reflection-section.overall-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f4c75 100%);
    color: var(--white);
}

/* Phase Header */
.phase-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.phase-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.1em;
    position: relative;
    display: inline-block;
    padding-bottom: var(--spacing-md);
}

.reflection-section.overall-section .phase-title {
    color: var(--white);
}

.phase-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-orange));
    border-radius: 2px;
}

/* Reflection Grid */
.reflection-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

/* Reflection Card */
.reflection-card {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

.reflection-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.reflection-card.reverse {
    grid-template-columns: 1fr 350px;
}

.reflection-card.reverse .reflection-content {
    order: 1;
}

.reflection-card.reverse .reflection-image {
    order: 2;
}

.reflection-card.centered {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Reflection Image */
.reflection-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.reflection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.reflection-card:hover .reflection-image img {
    transform: scale(1.05);
}

.reflection-image.large {
    max-width: 500px;
    margin: 0 auto var(--spacing-lg);
}

/* Play Button Overlay */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(50, 130, 184, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.play-button:hover {
    background: var(--accent-orange);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Reflection Content */
.reflection-content {
    padding: var(--spacing-sm);
}

.reflection-content .member-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
}

.reflection-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

.reflection-text:last-child {
    margin-bottom: 0;
}

/* Overall Content */
.overall-content {
    max-width: 1000px;
    margin: 0 auto;
}

.overall-text {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.overall-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

.overall-text p:last-child {
    margin-bottom: 0;
}

.closing-note {
    background: rgba(255, 255, 255, 0.95);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.closing-note p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.signature {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--gray-200);
}

.signature p {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-xs);
}

.signature p:first-child {
    font-size: 1.2rem;
    color: var(--accent-teal);
}

/* Responsive Design */
@media (max-width: 968px) {
    .reflection-card,
    .reflection-card.reverse {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .reflection-card.reverse .reflection-content,
    .reflection-card.reverse .reflection-image {
        order: 0;
    }
    
    .reflection-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .reflection-content {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .reflection-hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .reflection-hero .hero-title {
        font-size: 2rem;
    }
    
    .reflection-section {
        padding: var(--spacing-lg) 0;
    }
    
    .phase-header {
        margin-bottom: var(--spacing-lg);
    }
    
    .phase-title {
        font-size: 2rem;
        letter-spacing: 0.05em;
    }
    
    .reflection-grid {
        gap: var(--spacing-lg);
    }
    
    .reflection-card {
        padding: var(--spacing-md);
    }
    
    .reflection-content .member-name {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .reflection-text {
        font-size: 0.95rem;
        line-height: 1.7;
        text-align: left;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .overall-text,
    .closing-note {
        padding: var(--spacing-md);
    }
    
    .overall-text p,
    .closing-note p {
        font-size: 1rem;
        line-height: 1.7;
        text-align: left;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Section entrance animation */
.reflection-section {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.reflection-section:nth-child(2) {
    animation-delay: 0.1s;
}

.reflection-section:nth-child(3) {
    animation-delay: 0.2s;
}

.reflection-section:nth-child(4) {
    animation-delay: 0.3s;
}

.reflection-section:nth-child(5) {
    animation-delay: 0.4s;
}

.reflection-section:nth-child(6) {
    animation-delay: 0.5s;
}

.reflection-section:nth-child(7) {
    animation-delay: 0.6s;
}