/* public/css/project.css - Project page specific styles */

/* Hero Section */
.hero-project {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 2rem 4rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, #1565c0 100%);
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 111, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    animation: slideUp 0.8s ease-out 0.2s backwards;
    letter-spacing: -1px;
}

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

.hero-description {
    font-size: 1.2rem;
    color: white;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    animation: slideUp 0.8s ease-out 0.4s backwards;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-label {
    text-align: center;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text);
}

.hero-small {
    padding: 3rem 2rem;
}

.phases-intro {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom,
    var(--accent) 0%,
    var(--accent) 14%,
    #e0e0e0 14%,
    #e0e0e0 100%);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
}

.timeline-dot {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e0e0e0;
    border: 4px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-current .timeline-dot {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 0 rgba(255, 111, 0, 0.7);
    animation: pulse-ring 2s infinite;
}

.timeline-completed .timeline-dot {
    background: #4caf50;
    border-color: #4caf50;
}

.timeline-upcoming .timeline-dot {
    background: white;
    border-color: #e0e0e0;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 111, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 111, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 111, 0, 0);
    }
}

.pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
    animation: pulse-wave 2s infinite;
}

@keyframes pulse-wave {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.phase-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    z-index: 1;
}

.timeline-upcoming .phase-number {
    color: var(--text-light);
}

.timeline-content {
    flex: 1;
}

.timeline-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.timeline-current .timeline-card {
    border: 2px solid var(--accent);
    background: linear-gradient(to bottom right, #fff9f5, white);
}

.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.phase-header h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.timeline-current .phase-header h3 {
    color: var(--accent);
}

.phase-period {
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-phase-badge {
    background: var(--accent);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.badge-icon {
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.phase-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.phase-goal,
.phase-milestone {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--secondary);
}

.timeline-current .phase-goal,
.timeline-current .phase-milestone {
    background: #fff9f5;
    border-left-color: var(--accent);
}

/* VTX Specifications */
.specs-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.spec-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.spec-card:hover {
    transform: translateY(-4px);
}

.spec-detail {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 1rem 0;
    padding: 0.8rem;
    background: var(--bg-light);
    border-radius: 6px;
}

.spec-label {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.9rem;
}

.spec-value {
    color: var(--text);
}

.control-list {
    text-align: left;
    margin-left: 2rem;
    margin-top: 1rem;
}

.control-list li {
    margin: 0.5rem 0;
}

/* Vehicle Cards */
.vehicle-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.vehicle-type {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-active {
    background: #4caf50;
    color: white;
}

.status-design {
    background: #2196f3;
    color: white;
}

.status-concept {
    background: #9e9e9e;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-project {
        min-height: 60vh;
        padding: 4rem 1.5rem 3rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1.05rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .phases-intro {
        font-size: 1rem;
    }

    .timeline {
        padding-left: 50px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-dot {
        width: 40px;
        height: 40px;
    }

    .phase-number {
        font-size: 1.2rem;
    }

    .phase-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .phase-header h3 {
        font-size: 1.15rem;
    }

    .current-phase-badge {
        align-self: flex-start;
    }

    .timeline-card {
        padding: 1.5rem;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-project {
        min-height: 55vh;
        padding: 3rem 1rem 2rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-label {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .timeline {
        padding-left: 40px;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-dot {
        width: 35px;
        height: 35px;
    }

    .phase-number {
        font-size: 1rem;
    }

    .phase-header h3 {
        font-size: 1.05rem;
    }

    .phase-period {
        font-size: 0.85rem;
    }

    .current-phase-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .timeline-card {
        padding: 1.25rem;
    }

    .phase-goal,
    .phase-milestone {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .spec-card h3 {
        font-size: 1.2rem;
    }

    .spec-detail {
        font-size: 0.9rem;
    }

    .vehicle-card h3 {
        font-size: 1.3rem;
    }

    .status-badge {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
}
