*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

body{
    background:#f4f7fb;
    color:#1e293b;
}

/* NAVBAR */

.navbar{
    width:100%;
    height:80px;
    background:#232F3E;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 8%;
    position:sticky;
    top:0;
    z-index:1000;
}

.logo{
    color:#FEBD69;
    font-size:1.8rem;
    font-weight:bold;
}

.nav-links{
    display:flex;
    gap:30px;
    list-style:none;
}

.nav-links a{
    color:white;
    text-decoration:none;
    transition:0.3s;
}

.nav-links a:hover, .nav-links a.active{
    color:#FEBD69;
}

/* PAGE */

.projects-page{
    padding:50px 8%;
}

/* TOP */

.projects-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:40px;
}

.projects-top h1{
    font-size:2.5rem;
    color:#232F3E;
    margin-bottom:10px;
}

.projects-top p{
    color:#64748b;
}

/* BUTTON */

.new-btn{
    padding:15px 24px;
    border:none;
    border-radius:14px;
    background:#232F3E;
    color:white;
    display:flex;
    align-items:center;
    gap:10px;
    font-size:1rem;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
    text-decoration: none;
}

.new-btn:hover{
    background:#FEBD69;
    color: #232F3E;
    transform:translateY(-2px);
}

/* GRID */

.projects-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(320px, 1fr));
    gap:25px;
}

/* CARD */

.project-card{
    background:white;
    padding:28px;
    border-radius:24px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
    transition:0.3s;
    border-top: 4px solid #232F3E;
    position: relative; /* Added relative positioning for save button */
}

.save-project-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #64748b;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.save-project-btn:hover {
    transform: scale(1.1);
    background: #ffffff;
    color: #e28d1c;
    border-color: #fcd34d;
    box-shadow: 0 4px 12px rgba(226, 141, 12, 0.15);
}

.save-project-btn.saved {
    color: #e28d1c;
    background: #fefbeb;
    border-color: #fcd34d;
}

.project-card:hover{
    transform:translateY(-5px);
}

/* CARD TOP */

.card-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.card-top i{
    color:#94a3b8;
    cursor:pointer;
}

/* STATUS */

.status{
    padding:8px 16px;
    border-radius:50px;
    font-size:0.8rem;
    font-weight:bold;
}

.status.open{
    background:#dcfce7;
    color:#166534;
}

.status.progress, .status.in-progress{
    background:#dbeafe;
    color:#1d4ed8;
}

.status.completed{
    background:#ede9fe;
    color:#6d28d9;
}

.status.revision {
    background:#fef3c7;
    color:#b45309;
}

.status.cancelled {
    background:#fecaca;
    color:#b91c1c;
}

/* CONTENT */

.project-card h2{
    margin-bottom:15px;
    color:#232F3E;
}

.project-card p{
    color:#64748b;
    line-height:1.7;
    margin-bottom:25px;
}

/* INFO */

.project-info{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-bottom:25px;
}

.project-info span{
    display:flex;
    align-items:center;
    gap:10px;
    color:#475569;
}

/* FOOTER */

.project-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.project-footer button, .project-footer a{
    padding:12px 20px;
    border:none;
    border-radius:12px;
    background:#232F3E;
    color:white;
    cursor:pointer;
    font-weight: bold;
    text-decoration: none;
    transition:0.3s;
}

.project-footer button:hover, .project-footer a:hover{
    background:#FEBD69;
    color: #232F3E;
}

.project-footer span{
    color:#94a3b8;
    font-size:0.9rem;
}

.projects-top a{
    text-decoration:none;
}

.back-btn{
    position:fixed;
    top:25px;
    left:25px;
    width:50px;
    height:50px;
    border:none;
    border-radius:14px;
    background:#232F3E;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    font-size:1rem;
    z-index:1000;
    transition:0.3s;
    box-shadow:0 5px 15px rgba(0,0,0,0.15);
}

.back-btn:hover{
    background:#FEBD69;
    color:#232F3E;
    transform:translateY(-2px);
}

/* RESPONSIVE */

@media(max-width:768px){
    .navbar{
        padding:0 5%;
    }

    .projects-page{
        padding:40px 5%;
    }

    .projects-top{
        flex-direction:column;
        align-items:flex-start;
        gap:20px;
    }
}
