:root {
    --phase-primary: #9370DB;    /* Soft Purple */
    --phase-secondary: #20B2AA;  /* Light Sea Green */
    --phase-accent: #F8A488;     /* Warm Coral */
    --phase-background: #F5F5F5; /* Gentle Gray */
    --phase-text: #2C2C2C;      /* Dark Gray */
}

.heroPhase {
    position: relative;
    width: 100%;
    height: calc(100vh - 80px);
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, 
        var(--phase-primary),
        var(--phase-secondary) 100%);
    background-size: 200% 200%;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: gradientMove 15s ease infinite;
}

.heroPhase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(147, 112, 219, 0.2),
        rgba(32, 178, 170, 0.2));
    pointer-events: none;
}

.heroPhase::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
        rgba(147, 112, 219, 0.7),
        rgba(32, 178, 170, 0.7));
    z-index: 1;
}

.heroPhaseChanges {
    position: relative;
    width: 100%;
    height: calc(100vh - 80px);
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, 
        var(--phase-primary) 0%,
        var(--phase-secondary) 50%,
        var(--phase-accent) 100%);
    background-size: 200% 200%;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: gradientMove 15s ease infinite;
}

.heroPhaseChanges::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(147, 112, 219, 0.2),
        rgba(32, 178, 170, 0.2));
    pointer-events: none;
}

.hero::before {
    /* ...existing before pseudo-element... */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--phase-background);
    width: 90%;
    max-width: 1200px;
    padding: 3rem;
    margin: 0 auto;
    border-radius: 10px;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.heroPhaseChanges .hero-content {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--phase-background);
}

.hero-content h2 {
    color: var(--phase-background);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.heroPhaseChanges .hero-content h2,
.heroPhaseChanges .hero-content p {
    color: var(--phase-background);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    color: var(--phase-background);
}

/* ...existing animations... */

.property-card {
    background: var(--phase-background);
    border-left: 4px solid var(--phase-secondary);
    color: var(--phase-text);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(147, 112, 219, 0.2);
}

.cta-btn {
    background: var(--phase-accent);
    color: var(--phase-text);
    border: none;
}

.heroPhaseChanges .cta-btn {
    background: var(--phase-accent);
    color: var(--phase-text);
}

.cta-btn:hover {
    background: var(--phase-secondary);
    color: var(--phase-background);
    box-shadow: 0 5px 15px rgba(32, 178, 170, 0.3);
}

.heroPhaseChanges .cta-btn:hover {
    background: var(--phase-secondary);
    color: var(--phase-background);
}

/* Add transition effects for phase changes theme */
.content-section {
    background: var(--phase-background);
    transition: all 0.3s ease;
}

.section-title {
    color: var(--phase-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--phase-primary), var(--phase-secondary));
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.phase-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 4rem 2rem;
    max-width: 450px;
    margin: 0 auto;
    flex: 1;
}

.phase-diagram:nth-child(2) .phase-image {
    min-height: 520px; /* Adjust this value to match the height of first diagram + text */
    object-fit: contain;
    background-color: white;
    padding: 1rem;
}

.phase-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
}

.phase-image-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.phase-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.phase-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(147, 112, 219, 0.2);
}

.phase-info-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--phase-secondary);
}

.phase-info-card:hover {
    transform: translateY(-5px);
}

.phase-info-card h3 {
    color: var(--phase-primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-bottom: 2px solid var(--phase-accent);
    padding-bottom: 0.5rem;
}

.phase-info-card p {
    color: var(--phase-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.phase-info-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.phase-info-card li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.phase-info-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--phase-accent);
}

.diagram-container {
    width: 100%;
    max-width: 450px;  /* Reduced from 600px */
    margin: 0 auto 2rem;
}

.phase-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
}

.phase-image-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.phase-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(147, 112, 219, 0.2);
}

.process-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--phase-accent);
}

.phase-image-card h4 {
    padding: 1rem;
    margin: 0;
    text-align: center;
    color: var(--phase-primary);
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.95);
}

.diagrams-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Change from flex-start to stretch */
    gap: 3rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.diagram-description {
    text-align: center;
    margin-top: auto; /* Push description to bottom */
    min-height: 80px; /* Ensure consistent height for descriptions */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.intro-container {
    display: flex;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.intro-text {
    flex: 1;
    padding-right: 2rem;
}

.intro-text h2 {
    color: var(--phase-primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    position: relative;
}

.intro-text h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--phase-accent);
}

.intro-text p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--phase-text);
}

.intro-text ul {
    list-style: none;
    padding: 0;
}

.intro-text ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.intro-text ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--phase-accent);
}

.intro-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.feature-image:hover {
    transform: scale(1.02);
}

@media (min-width: 768px) {
    .phase-diagram {
        padding: 4rem 2rem;
    }
}

@media (max-width: 768px) {
    .phase-diagram {
        padding: 2rem 1rem;
        gap: 2rem;
        width: 100%;
        max-width: 350px;
        margin-bottom: 2rem;
    }

    .phase-content-grid {
        grid-template-columns: 1fr;
    }

    .phase-info-card {
        padding: 1.5rem;
    }

    .diagram-container {
        max-width: 350px;  /* Reduced for mobile */
    }

    .phase-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .process-image {
        height: 150px;
    }

    .diagrams-container {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .diagram-description {
        min-height: auto;
    }

    .intro-container {
        flex-direction: column;
        padding: 1.5rem;
    }

    .intro-text {
        padding-right: 0;
    }

    .intro-image {
        order: -1; /* Move image to top on mobile */
        margin-bottom: 2rem;
    }
}

/* Add smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}
