/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #1a1a1a;
    color: #e0e0e0;
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Left Sidebar */
.sidebar {
    width: 300px;
    background: #242424;
    padding: 40px 20px;
    position: fixed;
    height: calc(100vh - 40px);
    left: 20px;
    top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
}

.profile-section {
    text-align: center;
    margin-bottom: 30px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid #333;
    margin-bottom: 10px;
    object-fit: fill;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); */
}

.profile-section h2 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 8px;
}

.role {
    color: #ffc107;
    font-size: 14px;
    font-weight: bold;
}

/* Contact Info */
.contact-info {
    width: 100%;
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 20px;
}

.label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 14px;
    color: #e0e0e0;
    word-wrap: break-word;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    color: #e0e0e0;
    border-radius: 50%;
    font-size: 18px;
    transition: background 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background: #ffc107;
    color: #1a1a1a;
    transform: translateY(-3px);
}

/* Main Content Area */
.main-content {
    margin-left: 340px;
    flex: 1;
    padding: 20px 40px 0 0;
    max-width: calc(100vw - 340px);
    min-width: 0;
}

/* Navigation Bar */
.navbar {
    background: #242424;
    padding: 20px 40px;
    display: flex;
    gap: 30px;
    justify-content: flex-end;
    position: sticky;
    top: 20px;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    margin-bottom: 20px;
    max-width: 1100px;
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(36, 36, 36, 0.7);
    backdrop-filter: blur(10px);
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffc107;
}

/* Sections */
.section {
    padding: 40px;
    max-width: 1100px;
    background: #242424;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.section h1 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 10px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: #ffc107;
    margin-bottom: 30px;
}

/* About Section */
.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: #b0b0b0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill-card {
    background: #242424;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #333;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
    border-color: #ffc107;
}

.skill-card i {
    font-size: 48px;
    color: #ffc107;
    margin-bottom: 10px;
}

.skill-card p {
    font-size: 14px;
    color: #e0e0e0;
    margin-top: 10px;
}

/* Education Section */
.education-item {
    margin-bottom: 40px;
    padding-left: 30px;
    border-left: 2px solid #333;
    position: relative;
}

.edu-year {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.edu-year i {
    color: #ffc107;
    font-size: 10px;
    position: absolute;
    left: -6px;
}

.edu-year span {
    font-size: 14px;
    color: #888;
}

.education-item h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 5px;
}

.institution {
    font-size: 14px;
    color: #ffc107;
    margin-bottom: 10px;
}

.edu-description {
    font-size: 14px;
    line-height: 1.6;
    color: #b0b0b0;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.project-card {
    background: #242424;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #333;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card h3 {
    font-size: 20px;
    color: #fff;
    padding: 20px 20px 10px;
}

.project-card p {
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.6;
    padding: 0 20px 15px;
}

.tech-tags {
    padding: 0 20px 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech-tags span {
    background: #333;
    color: #ffc107;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    color: #888;
    font-size: 14px;
    background: #242424;
    margin: 0 0 20px 0;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    max-width: 1100px;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE & TABLET
   ======================================== */

/* Tablet & Medium Screens (768px - 968px) */
@media screen and (max-width: 968px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: calc(100% - 40px);
        max-width: calc(100% - 40px);
        height: auto;
        position: relative;
        left: 0;
        top: 0;
        margin: 20px;
        border-radius: 15px;
        padding: 30px 20px;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
        width: 100%;
        max-width: 100%;
    }

    .navbar {
        width: calc(100% - 40px);
        max-width: calc(100% - 40px);
        margin: 0 20px 20px 20px;
        padding: 15px 20px;
        gap: 20px;
        justify-content: center;
        border-radius: 15px;
    }

    .section {
        width: calc(100% - 40px);
        max-width: calc(100% - 40px);
        padding: 30px 20px;
        margin: 0 20px 20px 20px;
        border-radius: 15px;
    }

    .section h1 {
        font-size: 28px;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }

    .skill-card {
        padding: 20px 15px;
    }

    .skill-card i {
        font-size: 36px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    footer {
        width: calc(100% - 40px);
        max-width: calc(100% - 40px);
        margin: 0 20px 20px 20px;
        border-radius: 15px;
    }
}

/* Mobile Screens (up to 767px) */
@media screen and (max-width: 767px) {
    body {
        font-size: 14px;
    }

    .sidebar {
        padding: 25px 20px;
    }

    .profile-pic {
        width: 120px;
        height: 120px;
    }

    .profile-section h2 {
        font-size: 22px;
    }

    .info-item p {
        font-size: 13px;
    }

    .social-icons a {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .main-content {
        padding: 15px;
    }

    .navbar {
        padding: 12px 15px;
        gap: 15px;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 14px;
    }

    .section {
        padding: 25px 18px;
        margin-bottom: 15px;
    }

    .section h1 {
        font-size: 26px;
    }

    .section-line {
        width: 50px;
        height: 3px;
        margin-bottom: 20px;
    }

    .about-text {
        font-size: 15px;
        line-height: 1.7;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .skill-card {
        padding: 20px 10px;
    }

    .skill-card i {
        font-size: 32px;
    }

    .skill-card p {
        font-size: 13px;
    }

    .education-item {
        padding-left: 20px;
        margin-bottom: 30px;
    }

    .education-item h3 {
        font-size: 18px;
    }

    .institution {
        font-size: 13px;
    }

    .edu-year span {
        font-size: 13px;
    }

    .portfolio-grid {
        gap: 15px;
    }

    .project-image {
        height: 180px;
    }

    .project-card h3 {
        font-size: 18px;
        padding: 18px 18px 8px;
    }

    .project-card p {
        font-size: 13px;
        padding: 0 18px 12px;
    }

    .tech-tags {
        padding: 0 18px 18px;
    }

    .tech-tags span {
        font-size: 11px;
        padding: 4px 10px;
    }

    footer {
        padding: 20px;
        font-size: 13px;
    }
}

/* Small Mobile Screens (up to 480px) */
@media screen and (max-width: 480px) {
    .sidebar {
        padding: 20px 15px;
    }

    .profile-pic {
        width: 100px;
        height: 100px;
    }

    .profile-section h2 {
        font-size: 20px;
    }

    .main-content {
        padding: 12px;
    }

    .navbar {
        padding: 10px 12px;
        gap: 12px;
    }

    .nav-link {
        font-size: 13px;
    }

    .section {
        padding: 20px 15px;
    }

    .section h1 {
        font-size: 24px;
    }

    .about-text {
        font-size: 14px;
    }

    .skills-grid {
        gap: 10px;
    }

    .skill-card {
        padding: 18px 8px;
    }

    .skill-card i {
        font-size: 28px;
    }

    .project-image {
        height: 160px;
    }

    .project-card h3 {
        font-size: 16px;
        padding: 15px 15px 6px;
    }

    .project-card p {
        font-size: 12px;
        padding: 0 15px 10px;
        line-height: 1.5;
    }

    .tech-tags {
        padding: 0 15px 15px;
        gap: 6px;
    }

    .tech-tags span {
        font-size: 10px;
        padding: 3px 8px;
    }
}
    
