/* ===================================
   SYSTEM | SDLC PAGE STYLES
   =================================== */

/* SDLC Hero Section */
.sdlc-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
    overflow: hidden;
}

.sdlc-hero .hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.sdlc-hero .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sdlc-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.65);
    z-index: 1;
}

.sdlc-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.sdlc-hero .hero-title {
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 600;
    color: var(--white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5rem;
    animation: fadeInUp 0.8s ease;
}

/* SDLC Introduction */
.sdlc-intro {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.sdlc-intro .intro-text {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--gray-600);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.sdlc-diagram {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.diagram-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Phase Sections */
.phase-section {
    position: relative;
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.phase-section:nth-child(odd) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Phase Divider */
.phase-divider {
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.phase-divider::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--accent-teal) 20%, 
        var(--accent-teal) 80%, 
        transparent
    );
    top: 50%;
    left: 0;
}

.divider-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-orange));
    border-radius: 50%;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-lg);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 8px 40px rgba(50, 130, 184, 0.4);
    }
}

/* Phase Title */
.phase-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-dark);
    position: relative;
    padding-bottom: var(--spacing-md);
}

.phase-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-orange));
    border-radius: 2px;
}

/* Phase Grid */
.phase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
    margin-top: var(--spacing-lg);
}

.phase-grid.reverse {
    direction: ltr;
}

.phase-grid.reverse .phase-content {
    order: 1;
}

.phase-grid.reverse .phase-image {
    order: 2;
}

/* Phase Content */
.phase-content {
    padding: var(--spacing-md);
}

.phase-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--gray-600);
    margin-bottom: var(--spacing-md);
}

.phase-content h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-sm);
    border-left: 4px solid var(--accent-teal);
}

.phase-list {
    list-style: none;
    display: grid;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-md);
}

.phase-list li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-600);
    padding-left: var(--spacing-md);
    position: relative;
}

.phase-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
}

.phase-list li strong {
    color: var(--accent-teal);
    font-weight: 600;
}

/* Phase Image */
.phase-image {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition-base);
}

.phase-image:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.phase-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Phase Intro (for Design Phase) */
.phase-intro {
    max-width: 900px;
    margin: 0 auto var(--spacing-xl);
    text-align: center;
}

.phase-intro p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--gray-600);
}

/* Design Showcase */
.design-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.design-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-base);
}

.design-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.design-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.design-card h3 {
    padding: var(--spacing-md);
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary-dark);
    background: linear-gradient(135deg, #f8f9fa, var(--white));
}

.design-details {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Implementation Visuals */
.implementation-visuals {
    display: grid;
    gap: var(--spacing-md);
}

.code-preview {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition-base);
}

.code-preview:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.code-preview img {
    width: 100%;
    height: auto;
    display: block;
}

/* Testing Visuals */
.testing-visuals {
    display: grid;
    gap: var(--spacing-md);
}

.testing-image {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition-base);
}

.testing-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testing-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 968px) {
    .phase-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .phase-grid.reverse {
        direction: ltr;
    }
    
    .phase-grid.reverse .phase-content,
    .phase-grid.reverse .phase-image {
        order: 0;
    }
    
    .design-showcase {
        grid-template-columns: 1fr;
    }
    
    .design-card img {
        height: 200px;
    }
}

@media (max-width: 640px) {
    .sdlc-hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .sdlc-hero .hero-title {
        font-size: 3rem;
        letter-spacing: 0.3rem;
    }
    
    .sdlc-intro {
        padding: var(--spacing-lg) 0;
    }
    
    .sdlc-intro .intro-text {
        font-size: 1rem;
        padding: 0 var(--spacing-sm);
    }
    
    .sdlc-diagram {
        padding: var(--spacing-md);
    }
    
    .phase-section {
        padding: var(--spacing-lg) 0;
    }
    
    .phase-divider {
        height: 40px;
    }
    
    .divider-circle {
        width: 40px;
        height: 40px;
    }
    
    .phase-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-md);
    }
    
    .phase-content {
        padding: var(--spacing-sm);
    }
    
    .phase-content p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .phase-content h3 {
        font-size: 1.3rem;
        margin-top: var(--spacing-md);
    }
    
    .phase-list li {
        font-size: 0.95rem;
    }
    
    .design-card img {
        height: 180px;
    }
    
    .design-card h3 {
        font-size: 1.1rem;
        padding: var(--spacing-sm);
    }
}

/* 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 */
.phase-section {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.phase-section:nth-child(2) {
    animation-delay: 0.1s;
}

.phase-section:nth-child(3) {
    animation-delay: 0.2s;
}

.phase-section:nth-child(4) {
    animation-delay: 0.3s;
}

.phase-section:nth-child(5) {
    animation-delay: 0.4s;
}

.phase-section:nth-child(6) {
    animation-delay: 0.5s;
}

.phase-section:nth-child(7) {
    animation-delay: 0.6s;
}