@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: radial-gradient(circle at right, #1a1a1a, #0b0b0b);
    color: #ffffff;
    min-height: 100vh;
    padding-top: 90px;
    padding-left: 80px;
    padding-right: 80px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 16px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    border-bottom: 1px solid #333;
}

.nav-logo {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li {
    padding: 0 8px;
}

.nav-links a {
    text-decoration: none;
    font-size: 14px;
    color: #9ca3af;
    transition: 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s ease;
}

h1 {
    font-size: 14px;
    font-weight: 500;
    color: #b5b5b5;
    margin-bottom: 20px;
}

.por {
    font-size: 28px;
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

.name {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.job {
    font-size: 16px;
    letter-spacing: 1px;
    color: #9ca3af;
    margin-bottom: 20px;
    display: block;
}

.desc {
    max-width: 500px;
    font-size: 14px;
    color: #b0b0b0;
    margin-bottom: 40px;
}

.pic {
    position: absolute;
    top: 140px;
    right: 120px;
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(100%);
    box-shadow: 0 0 0 25px rgba(255,255,255,0.03),
                0 40px 80px rgba(0,0,0,0.6);
}

h2 {
    text-align: center;
    margin-top: 100px;
    font-size: 28px;
    font-weight: 600;
}

#about-text {
    max-width: 700px;
    margin: 20px auto 60px;
    text-align: center;
}

#about-text p {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.8;
}

#projects {
    background: linear-gradient(180deg, #111111, #0d0d0d);
    padding: 50px 20px;
    border-radius: 18px;
    max-width: 1000px;
    margin: 0 auto 60px;
}

#projects ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

#projects li {
    color: #b5b5b5;
    font-size: 14px;
    position: relative;
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#projects li::before {
    content: "";
    width: 42px;
    height: 42px;
    background: #1a1a1a;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

#projects li::after {
    content: "";
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin: 60px 0 30px;
    color: #ffffff;
}

#services {
    text-align: center;
    margin-bottom: 60px;
}

.services-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.service-card {
    width: 220px;
    height: 160px;
    background: #1a1a1a;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transition: 0.3s ease;
}

.service-card img {
    width: 40px;
    margin-bottom: 12px;
}

.service-card h3 {
    font-size: 16px;
    color: #ccc;
}

.service-card:hover {
    transform: translateY(-6px);
    border-bottom: 4px solid #1abc9c;
}

#skills {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
}

.skills-box {
    width: 55%;
    max-width: 600px;
    background: #141414;
    padding: 25px;
    border-radius: 14px;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #222;
    color: #aaa;
}

.skill-item strong {
    color: #1abc9c;
}

footer {
    margin-top: 40px;
    padding: 20px 0;
    background: #0a0a0a;
    text-align: center;
    border-top: 1px solid #222;
}

footer p {
    font-size: 14px;
    color: #777;
}

.output-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 40px auto;
}

.output-box {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    color: #aaa;
}

.output-box h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 16px;
}

.output-box p {
    line-height: 1.6;
    color: #b0b0b0;
}

a {
    color: #ffffff;
    text-decoration: none;
}

button {
    background: #1abc9c;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    display: inline-block;
}

button:hover {
    transform: translateY(-6px);
    border-bottom: 4px solid #1abc9c;
    box-shadow: 0 10px 30px rgba(26, 188, 156, 0.3);
}

@media (max-width:1024px){
    body {padding:120px 40px 40px;}
    .pic{width:250px;height:250px;right:40px;}
    #projects ul{grid-template-columns:repeat(2,1fr);}
    .skills-box{width:75%;}
    .output-grid{grid-template-columns:repeat(2,1fr);}
}

@media (max-width:768px){
    body {padding-top:140px;padding-left:20px;padding-right:20px;text-align:center;}
    .pic{position:static;margin:40px auto;display:block;}
    #projects ul{grid-template-columns:1fr;gap:30px;}
    .skills-box{width:100%;}
    .output-grid{grid-template-columns:1fr;}
    .nav-links {display:none; flex-direction:column; position:absolute; top:60px; right:20px; background:#111;padding:20px;border-radius:12px;gap:16px;width:200px;box-shadow:0 20px 40px rgba(0,0,0,0.6);}
    .nav-links.active {display:flex;}
    .hamburger {display:flex;}
}

@media (max-width:480px){
    .name {font-size:30px;}
    h2,.section-title {font-size:22px;}
}