/* =================== RESPONSIVE DESIGN ========================== */

/* Tablet and smaller (≤ 1024px) */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;          /* narrower sidebar */
        padding: 40px 20px;
    }
    main {
        margin-left: 240px;    /* adjust main content offset */
        padding: 30px;
    }
    .intro h1 {
        font-size: 36px;       /* smaller headings */
    }
    .intro p {
        width: 90%;            /* allow text to fit better */
    }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
    .profile{
    top:12%;
 }
    .profile img{
    width:160px;
    height:160px;
   }
   .intro{
    top:60%;
    width:90%;
 }
  .intro p{
    width:95%;
}
    .sidebar {
        position: relative;    /* no longer fixed */
        width: 100%;           /* full width */
        height: auto;
        padding: 20px;
        margin-bottom: 20px;   /* space below sidebar */
    }
    .sidebar ul {
        position: static;      /* reset positioning */
        transform: none;
        text-align: center;
    }
    main {
        margin-left: 0;        /* remove offset */
        padding: 20px;
    }
    .intro h1 {
        font-size: 28px;
    }
    .intro p {
        width: 100%;
        font-size: 16px;
    }
    .content-section {
        padding: 30px;
        margin: 40px 0;
    }
}

/* Small phones (≤ 480px) */
@media (max-width: 480px) {
.profile{
    top:10%;
}

.profile img{
    width:140px;
    height:140px;
}

.intro{
    top:62%;
    width:95%;
}
    .sidebar h2, .sidebar h4 {
        font-size: 12px;
    }
    .sidebar nav ul li a {
        font-size: 13px;
        gap: 8px;              /* tighter spacing */
    }
    .intro h1 {
        font-size: 22px;
    }
    .intro h2, .intro h3 {
        font-size: 16px;
    }
    .content-section h2 {
        font-size: 24px;
    }
}
.resume-card li {
    font-size: 16px;
    color: #1f2937;
}
