.profile-card {
    display: flex;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 1000px;
    margin:auto;
    border: 1px solid rgba(255, 255, 255, 0.32);
    animation: fadeUp 0.8s ease both;
}

.left-column {
    flex: 1;
    padding: 20px;
    background-color: #e0e0e0;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-image: url('../assets/img/PRESSAT_Luca.jpg');
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
}

.contact-info {
    text-align: center;
}

.contact-info p {
    margin: 5px 0;
    font-size: 14px;
}

.right-column {
    flex: 3;
    padding: 20px;
}

.profile-title {
    margin-top: 0;
    color: #333;
}

.profile-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    padding: 0 20px;
}

.profile-description p {
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.social-icon {
    font-size: 2.5rem;
    color: #0077B5;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
}

.social-icon svg {
    width: 2.5rem;
    height: 2.5rem;
}

.social-icon:hover {
    color: #005582;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        max-width: 90%;
    }

    .left-column, .right-column {
        width: 100%;
    }

    .profile-description {
        padding: 0 10px;
    }
}

.app-timeline {
    margin: 40px auto;
    max-width: 800px;
}

.app-timeline h1,
.app-timeline h2,
.app-timeline h3,
.app-timeline p {
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7), 0 1px 0 #333;
}

.timeline {
    list-style: none;
    padding: 0;
    position: relative;
}
.timeline li {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
    border-left: 3px solid #007bff;
}
.timeline-content {
    background: rgba(0,0,0,0.7);
    padding: 16px 24px;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline li:hover .timeline-content {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 123, 255, 0.2);
}
.timeline li::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 18px;
    width: 16px;
    height: 16px;
    background: #007bff;
    border-radius: 50%;
    border: 3px solid #fff;
}
.timeline h4 {
    margin-top: 0;
    color: #007bff;
}

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

.fullstack-lab {
    position: relative;
    width: min(1100px, 92vw);
    margin: 38px auto 70px;
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(8, 13, 22, 0.78), rgba(12, 20, 34, 0.66));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
    overflow: hidden;
}

.fullstack-lab::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    top: -140px;
    right: -80px;
    background: radial-gradient(circle, rgba(30, 170, 255, 0.32), rgba(30, 170, 255, 0));
    pointer-events: none;
}

.fullstack-lab h3 {
    margin-top: 0;
    color: #dff3ff;
    text-align: center;
}

.lab-intro {
    color: #d0ddf7;
    text-align: center;
    margin: 0 auto 18px;
    max-width: 900px;
}

.pipeline-progress {
    width: min(920px, 88%);
    height: 8px;
    margin: 0 auto 18px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.pipeline-legend {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pipeline-legend li {
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    font-size: 0.78rem;
    color: #d9eafe;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.pipeline-legend li:nth-child(1) { border-color: rgba(94, 182, 255, 0.55); }
.pipeline-legend li:nth-child(2) { border-color: rgba(110, 157, 255, 0.55); }
.pipeline-legend li:nth-child(3) { border-color: rgba(111, 219, 255, 0.55); }
.pipeline-legend li:nth-child(4) { border-color: rgba(87, 242, 221, 0.55); }
.pipeline-legend li:nth-child(5) { border-color: rgba(126, 226, 122, 0.55); }
.pipeline-legend li:nth-child(6) { border-color: rgba(255, 192, 107, 0.55); }
.pipeline-legend li:nth-child(7) { border-color: rgba(255, 146, 194, 0.55); }

.is-typing-title {
    position: relative;
    display: inline-block;
}

.is-typing-title::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 0.95em;
    margin-left: 4px;
    vertical-align: -0.08em;
    background: rgba(120, 215, 255, 0.95);
    animation: blinkCaret 0.9s steps(1, end) infinite;
}

.pipeline-fill {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #44b4ff, #57f2dd 52%, #9fc0ff);
    border-radius: inherit;
    box-shadow: 0 0 16px rgba(70, 196, 255, 0.5);
    transition: width 1.2s cubic-bezier(.2,.86,.2,1);
}

.fullstack-lab.is-active .pipeline-fill {
    width: 100%;
}

.code-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.code-card {
    position: relative;
    --phase-color: #72c8ff;
    --phase-rgb: 114, 200, 255;
    background: rgba(3, 8, 14, 0.84);
    border: 1px solid rgba(var(--phase-rgb), 0.42);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.fullstack-lab.is-active .code-card {
    animation: cardReveal 0.7s cubic-bezier(.22,.8,.28,1) forwards;
    animation-delay: var(--delay);
}

.code-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--phase-rgb), 0.85);
}

.code-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 12px;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 0 0 1px rgba(var(--phase-rgb), 0.72), 0 0 26px rgba(var(--phase-rgb), 0.42);
    transition: opacity 0.25s ease;
}

.code-card.is-typing::after {
    opacity: 1;
}

.code-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.phase-analysis { --phase-color: #5eb6ff; --phase-rgb: 94, 182, 255; }
.phase-plan { --phase-color: #6e9dff; --phase-rgb: 110, 157, 255; }
.phase-design { --phase-color: #6fdbff; --phase-rgb: 111, 219, 255; }
.phase-dev { --phase-color: #57f2dd; --phase-rgb: 87, 242, 221; }
.phase-tests { --phase-color: #7ee27a; --phase-rgb: 126, 226, 122; }
.phase-deploy { --phase-color: #ffc06b; --phase-rgb: 255, 192, 107; }
.phase-maintain { --phase-color: #ff92c2; --phase-rgb: 255, 146, 194; }

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.code-file {
    margin-left: 6px;
    color: #b6d9ff;
    font-size: 0.84rem;
}

.code-window {
    margin: 0;
    padding: 12px 14px 14px;
    min-height: 112px;
    color: #e5f6ff;
    font-size: 0.9rem;
    line-height: 1.55;
    overflow: hidden;
}

.phase-title {
    margin: 12px 14px 4px;
    color: var(--phase-color);
    font-size: 1.05rem;
}

.phase-desc {
    margin: 0 14px 6px;
    color: #bdd3ec;
    font-size: 0.92rem;
    line-height: 1.45;
    min-height: 4.1em;
}

.code-card:nth-child(7) {
    grid-column: 2;
}

.code-window code {
    font-family: "Courier New", monospace;
}

.code-type-line {
    display: block;
    min-height: 1.55em;
    position: relative;
    white-space: pre-wrap;
}

.code-type-line::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 1em;
    margin-left: 2px;
    vertical-align: -0.12em;
    background: rgba(88, 201, 255, 0.95);
    animation: blinkCaret 0.9s steps(1, end) infinite;
}

@keyframes cardReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blinkCaret {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@media (max-width: 768px) {
    .code-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .code-window {
        min-height: 96px;
        font-size: 0.86rem;
    }

    .phase-desc {
        font-size: 0.9rem;
    }

    .code-card:nth-child(7) {
        grid-column: 1 / -1;
        width: min(560px, 100%);
        justify-self: center;
    }
}

@media (max-width: 620px) {
    .code-grid {
        grid-template-columns: 1fr;
    }

    .code-card:nth-child(7) {
        grid-column: auto;
        width: auto;
    }

    .phase-desc {
        min-height: auto;
    }

    .pipeline-legend {
        gap: 6px;
    }

    .pipeline-legend li {
        font-size: 0.72rem;
    }
}
