body {
    margin: 0;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: #0f172a;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.container {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    padding: 30px;
    align-items: flex-start;
    justify-content: center;
}

.card-box {
    background: #ffffff;
    color: #1e293b;
    padding: 30px 25px;
    border-radius: 20px;
    text-align: center;
    flex: 0 0 320px;
    height: fit-content;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.profile {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid #f1f5f9;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h2 {
    margin: 10px 0 5px;
    font-size: 1.6rem;
    font-weight: 800;
}

.role {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #0ea5e9;
    margin-bottom: 10px;
    font-weight: 700;
}

.menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    margin-bottom: 12px;
    background: #f8fafc;
    color: #334155;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    border: 1px solid #e2e8f0;
}

.menu a i {
    font-size: 1.1rem;
}

.menu a:hover,
.menu a.active {
    background: #0f172a;
    color: white;
    transform: translateY(-2px);
    border-color: #0f172a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.content-box {
    background: #ffffff;
    color: #1e293b;
    flex: 1;
    min-height: 550px;
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.section {
    display: none;
}

.section h2 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #e2e8f0;
    border-radius: 2px;
}

#about p {
    line-height: 2rem;
    color: black;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
    width: 100%;
}

.contact-item {
    background: #f8fafc;
    flex: 1;
    min-width: 280px;
    padding: 15px;
    border-radius: 15px;
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-item:hover {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: #e2e8f0;
}

.contact-item i {
    font-size: 2rem;
    color: #0ea5e9;
    display: inline-block;
    margin-bottom: 10px;
}


.contact-item strong {
    display: block;
    color: #0f172a;
    margin-bottom: 5px;
    font-weight: 800;
}

.contact-item small {
    display: block;
    font-size: 1rem;
    color: black;
    font-weight: 500;
}

.social-links-horizontal {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.social-links-horizontal a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #0f172a;
    padding: 10px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.social-links-horizontal a:hover {
    background: #0f172a;
    color: white;
    transform: translateY(-3px);
}

.education-item {
    background: #f8fafc;
    border-left: 4px solid #0f172a;
    padding: 15px 20px;
    margin-bottom: 12px;
    border-radius: 12px;
    transition: 0.3s;
}

.education-item:hover {
    transform: translateX(5px);
    background: #f1f5f9;
}

.education-item h3 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.education-item p {
    margin: 0;
    font-size: 0.85rem;
    color: black;
    line-height: 1.5;
}

.skill {
    margin-bottom: 20px;
}

.skill p {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 8px;
}

.skill-bar {
    background: #e2e8f0;
    height: 10px;
    border-radius: 20px;
    overflow: hidden;
}

.skill-fill {
    background: linear-gradient(90deg, #0f172a, #0ea5e9);
    height: 100%;
    border-radius: 20px;
    transition: width 1s ease-in-out;
}

#portfolio {
    padding: 40px 20px;
    text-align: start;
}

#portfolio .section-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #0f172a;
}

#portfolio .section-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
    color: #555;
}

.portfolio-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    gap: 20px;
}

.portfolio-card-link {
    text-decoration: none;
    color: inherit;        
}

.portfolio-card {
    width: 180px;
    background: #ffffff;
    color: #1e293b;
    border: 2px solid #000; 
    border-radius: 10px;
    padding: 15px;
    text-align: start;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.portfolio-card p {
    margin: 8px 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
}

.portfolio-card button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.portfolio-card button:hover {
    background-color: #0ea5e9; 
}

.portfolio-card-link:hover .portfolio-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}


@media (max-width: 992px) {
    .container {
        flex-direction: column;
        align-items: center;
    }
    .card-box,
    .content-box {
        width: 100%;
        max-width: 100%;
        flex: none;
    }
    .content-box {
        padding: 30px;
    }
    .portfolio-card {
        width: 160px;
        padding: 12px;
    }
    .portfolio-card button {
        padding: 5px 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .social-links-horizontal a {
        width: 100%;
        justify-content: center;
    }
    .card-box {
        padding: 30px 15px;
    }
    .portfolio-container {
        flex-direction: column;
        align-items: center;
    }
    .portfolio-card {
        width: 90%; 
        max-width: 220px;
    }
    .portfolio-card button {
        width: 100%;
    }
}
