/* PROJECT TIMELINE PAGE COMPONENTS */

/* Hero timeline overview */
.timeline-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.overview-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.overview-item:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.25);
}

.overview-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.overview-text {
    display: flex;
    flex-direction: column;
    color: white;
}

.overview-text strong {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.overview-text span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Timeline calculator */
.timeline-calculator {
    padding: 5rem 0;
    background: #f8fafc;
}

.timeline-calculator h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.calculator-form {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.calculator-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.input-group select {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: var(--primary-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group select:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.calculator-result {
    padding: 3rem;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.result-header h3 {
    color: var(--primary-color);
    margin: 0;
}

.total-duration {
    background: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.25rem;
}

.result-phases {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-phase {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.result-phase-name {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 200px;
}

.result-phase-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.result-phase-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 1s ease;
}

.result-phase-duration {
    background: #16a34a;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.timeline-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.timeline-btn.primary {
    background: var(--accent-color);
    color: white;
}

.timeline-btn.primary:hover {
    background: #0369a1;
    transform: translateY(-2px);
}

.timeline-btn.secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
}

.timeline-btn.secondary:hover {
    background: var(--accent-color);
    color: white;
}

/* Project phases timeline */
.project-phases {
    padding: 5rem 0;
}

.project-phases h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.phases-timeline {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.phases-timeline::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

.phase-item {
    display: flex;
    margin-bottom: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.phase-item:hover {
    transform: translateX(5px);
}

.phase-item.expanded .phase-details {
    display: block !important;
    animation: expandDown 0.5s ease;
}

@keyframes expandDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.phase-marker {
    position: relative;
    margin-right: 2rem;
    flex-shrink: 0;
}

.phase-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.phase-item:hover .phase-number {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.phase-content {
    flex: 1;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.phase-item:hover .phase-content {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-bottom: 1px solid #e5e7eb;
}

.phase-header h3 {
    color: var(--primary-color);
    margin: 0;
}

.phase-duration {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.phase-overview {
    padding: 1.5rem 2rem;
}

.phase-overview p {
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.phase-details {
    padding: 0 2rem 2rem;
    background: #fafbfc;
}

.phase-activities,
.phase-deliverables {
    margin-bottom: 2rem;
}

.phase-activities h4,
.phase-deliverables h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.activity-list {
    display: grid;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.activity-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    color: var(--accent-color);
}

.activity-info {
    flex: 1;
}

.activity-info strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
}

.activity-info span {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
}

.activity-duration {
    background: #16a34a;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
    display: inline-block;
}

.phase-deliverables ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.phase-deliverables li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #374151;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.phase-deliverables li:before {
    content: '📋';
    flex-shrink: 0;
}

/* Project tracking */
.project-tracking {
    padding: 5rem 0;
    background: #f8fafc;
}

.project-tracking h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tracking-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.tracking-feature {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.tracking-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 4rem;
    text-align: center;
    padding: 2rem 2rem 1rem;
    color: var(--accent-color);
}

.feature-content {
    padding: 0 2rem 2rem;
}

.feature-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.feature-content p {
    color: #64748b;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 1.5rem;
}

.feature-demo {
    text-align: center;
}

.demo-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-btn:hover {
    background: #0369a1;
    transform: translateY(-2px);
}

/* Timeline samples */
.timeline-samples {
    padding: 5rem 0;
}

.timeline-samples h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.samples-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.sample-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.sample-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.sample-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.sample-header h3 {
    color: white;
    margin-bottom: 1rem;
}

.sample-details {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.sample-size,
.sample-duration,
.sample-systems {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.sample-timeline {
    padding: 2rem;
    display: grid;
    gap: 1rem;
}

.sample-phase {
    display: grid;
    grid-template-columns: 120px 1fr 80px;
    gap: 1rem;
    align-items: center;
}

.phase-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.phase-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.phase-progress {
    height: 100%;
    background: linear-gradient(90deg, #16a34a, #15803d);
    border-radius: 4px;
    transition: width 2s ease;
}

.sample-phase.completed .phase-progress {
    background: linear-gradient(90deg, #16a34a, #15803d);
}

.phase-weeks {
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
}

.sample-result {
    display: flex;
    justify-content: space-around;
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.result-metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.metric-label {
    color: #64748b;
    font-size: 0.8rem;
}

.samples-cta {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 3rem;
    text-align: center;
}

.samples-cta h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.samples-cta p {
    color: #64748b;
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Timeline contact */
.timeline-contact {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.contact-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.contact-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.contact-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-option {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-option:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
}

.option-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.contact-option h3 {
    color: white;
    margin-bottom: 1rem;
}

.contact-option p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
}

.contact-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Planning promise */
.planning-promise {
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: left;
}

.planning-promise h4 {
    color: white;
    margin-bottom: 2rem;
    text-align: center;
}

.promise-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.promise-item {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.promise-item strong {
    color: white;
    margin-bottom: 0.25rem;
}

.promise-item span {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .timeline-overview {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .overview-item {
        padding: 1rem;
    }
    
    .calculator-inputs {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .calculator-result {
        padding: 2rem;
    }
    
    .result-header {
        flex-direction: column;
        text-align: center;
    }
    
    .phases-timeline::before {
        left: 30px;
    }
    
    .phase-marker {
        margin-right: 1rem;
    }
    
    .phase-number {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
    
    .phase-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .phase-details {
        padding: 1rem;
    }
    
    .activity-item {
        flex-direction: column;
        text-align: center;
    }
    
    .tracking-features {
        grid-template-columns: 1fr;
    }
    
    .samples-grid {
        grid-template-columns: 1fr;
    }
    
    .sample-phase {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }
    
    .sample-result {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
    }
    
    .promise-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .overview-item {
        flex-direction: column;
        text-align: center;
    }
    
    .phase-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .phase-marker {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .activity-list {
        gap: 0.75rem;
    }
    
    .activity-item {
        padding: 1rem;
    }
    
    .sample-details {
        justify-content: center;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline-btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
