* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f4f6;
    color: #1f2937;
    line-height: 1.7;
}

.hero {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: white;
    padding: 56px 24px;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 32px;
    align-items: center;
}

.tag {
    display: inline-block;
    margin: 0 0 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 14px;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: 48px;
}

.subtitle {
    margin: 0 0 16px;
    font-size: 18px;
    color: #d1d5db;
}

.intro {
    max-width: 640px;
    color: #e5e7eb;
}

.hero-buttons {
    margin-top: 24px;
}

.btn {
    display: inline-block;
    margin-right: 12px;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn.primary {
    background: #2563eb;
    border-color: #2563eb;
}

.hero-photo {
    text-align: center;
}

.hero-photo img {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    background: white;
}

nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #111827;
    text-align: center;
    padding: 14px 10px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 14px;
    font-weight: bold;
    font-size: 15px;
}

main {
    padding: 32px 20px 48px;
}

.card {
    width: min(1100px, 92%);
    margin: 0 auto 28px;
    background: white;
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

h2 {
    margin-top: 0;
    font-size: 28px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.info-list {
    margin: 0;
    padding-left: 20px;
}

.section-desc {
    color: #4b5563;
    margin-bottom: 18px;
}

/* Skills progress */
.skill-progress-list {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.skill-progress-item {
    background: #f9fafb;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 14px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
}

.progress-fill.c {
    width: 85%;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.progress-fill.python {
    width: 75%;
    background: linear-gradient(90deg, #0f766e, #2dd4bf);
}

.progress-fill.htmlcss {
    width: 70%;
    background: linear-gradient(90deg, #ea580c, #fb923c);
}

.progress-fill.pytorch {
    width: 65%;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.progress-fill.git {
    width: 70%;
    background: linear-gradient(90deg, #dc2626, #f87171);
}

.progress-fill.linebot {
    width: 60%;
    background: linear-gradient(90deg, #16a34a, #4ade80);
}

.project {
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

.project:last-child {
    border-bottom: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.gallery-item {
    grid-column: span 6;
    background: #f9fafb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    margin: 0;
}

.gallery-item.large {
    grid-column: span 12;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.gallery-item.large img {
    height: 430px;
}

.gallery-item figcaption {
    padding: 12px 14px;
    font-size: 14px;
    color: #374151;
}

footer {
    background: #111827;
    color: white;
    text-align: center;
    padding: 22px;
    margin-top: 32px;
}

@media (max-width: 900px) {
    .hero-content,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 36px;
    }

    .gallery-item,
    .gallery-item.large {
        grid-column: span 12;
    }

    .gallery-item img,
    .gallery-item.large img {
        height: 260px;
    }
}

@media (max-width: 560px) {
    nav a {
        display: inline-block;
        margin: 6px 8px;
    }

    .card {
        padding: 22px 18px;
    }

    .hero {
        padding: 40px 18px;
    }
}

.skills-columns{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:40px;
margin-top:20px;
}

.skills-group h3{
border-bottom:3px solid #4f9cf9;
display:inline-block;
padding-bottom:6px;
margin-bottom:10px;
}

.skills-group p{
color:#555;
margin-bottom:10px;
}

.skills-group ul{
padding-left:20px;
}

.skills-group li{
margin:8px 0;
font-size:17px;
}
.project a {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 14px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
}

.project a:hover {
    background: #1d4ed8;
}