/* =========================
   GLOBAL
========================= */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f6f0ff;
    color: #222;
}

/* =========================
   LAYOUT
========================= */

.container {
    display: flex;
    max-width: 1100px;
    margin: 40px auto;
    gap: 20px;
}

.sidebar {
    width: 280px;
}

.main {
    flex: 1;
}

/* =========================
   PROFILE CARD
========================= */

.profile-card {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.role {
    font-size: 13px;
    color: #777;
}

.contact p {
    font-size: 12px;
    margin: 5px 0;
}

/* =========================
   SECTIONS
========================= */

.section {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.section h3 {
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* =========================
   EDUCATION
========================= */

.education-grid {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 18px 55px;
}

.year h4,
.school-info h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
}

.year p,
.school-info p {
    margin-top: 6px;
    color: #9b9b9b;
    font-size: 13px;
    line-height: 1.4;
}

/* =========================
   KEY COMPETENCIES
========================= */

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.card,
.competency-card {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 16px;
    font-size: 13px;
    box-sizing: border-box;
}

.card h4,
.competency-card h4 {
    margin: 0 0 10px;
}

.competency-card {
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
}

.competency-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* =========================
   SOFTWARE TAGS
========================= */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags span {
    background: #eee;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
}

/* =========================
   MODAL
========================= */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

.modal-content {
    background: #fff;
    width: 85%;
    max-width: 950px;
    max-height: 85vh;
    overflow-y: auto;
    margin: 40px auto;
    padding: 30px;
    border-radius: 20px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
}

/* =========================
   PORTFOLIO GRID
========================= */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.project-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.project-card:hover {
    transform: translateY(-6px);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* =========================
   PROJECT VIEWER
========================= */

.viewer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.viewer-image{
    display:flex;
    justify-content:center;
    align-items:center;
    background:#f8f8f8;
    border-radius:15px;
    padding:20px;
    height:70vh;
}

.viewer-image img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    border-radius:12px;
}

.viewer-info {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 15px;
}

.viewer-info h3 {
    margin-top: 0;
}

.viewer-info ul {
    padding-left: 18px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .container {
        flex-direction: column;
        padding: 15px;
    }

    .sidebar {
        width: 100%;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .viewer-content {
        grid-template-columns: 1fr;
    }

    .education-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
.back-arrow{
    cursor:pointer;
    font-size:30px;
    font-weight:bold;
    margin-right:15px;
    transition:.2s;
}

.back-arrow:hover{
    opacity:.6;
}

.viewer-content{
    display:grid;
    grid-template-columns:3fr 1fr;
    gap:30px;
    align-items:stretch;
}

.viewer-image img{
    width:100%;
    border-radius:15px;
}

.viewer-info{
    background:#f8f8f8;
    padding:20px;
    border-radius:15px;
}

.viewer-info h3{
    margin-top:0;
}
.tool-icons{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:10px;
}

.tool-icons img{
    width:42px;
    height:42px;
    object-fit:contain;
    padding:6px;
    background:#fff;
    border-radius:10px;
    box-shadow:0 3px 10px rgba(0,0,0,.08);
}
.project-subject{
    display:inline-block;
    margin:8px 0 18px;
    padding:6px 12px;
    background:#ececec;
    border-radius:999px;
    font-size:12px;
    font-weight:600;
    color:#555;
}
.carousel-btn{
    border:none;
    background:white;
    width:45px;
    height:45px;
    border-radius:50%;
    cursor:pointer;
    font-size:22px;
    box-shadow:0 3px 10px rgba(0,0,0,.15);
}

.viewer-image{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:15px;
}