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

/* Body */

body{
font-family: "Segoe UI", Arial, sans-serif;
background:#111;
color:#eee;
line-height:1.6;
}

/* Navbar */

nav{
display:flex;
justify-content:space-between;
align-items:center;
padding:18px 50px;
background:#0b0b0b;
border-bottom:1px solid #222;
}

nav h2{
font-weight:500;
}

nav ul{
display:flex;
list-style:none;
gap:25px;
}

nav a{
color:#ccc;
text-decoration:none;
font-size:14px;
transition:0.3s;
}

nav a:hover{
color:#fff;
}

/* Hero Section */

.hero{
text-align:center;
padding:120px 20px;
max-width:800px;
margin:auto;
}

.hero h1{
font-size:42px;
margin-bottom:10px;
font-weight:600;
}

.hero h3{
font-size:22px;
color:#aaa;
margin-bottom:20px;
}

.hero p{
font-size:16px;
color:#bbb;
margin-bottom:25px;
}

/* Buttons */

button{
padding:12px 24px;
border:none;
background:#e63946;
color:white;
cursor:pointer;
border-radius:4px;
margin:8px;
transition:0.3s;
}

button:hover{
opacity:0.8;
}

button.outline{
background:transparent;
border:1px solid #888;
}

/* Sections */

section{
max-width:900px;
margin:auto;
padding:70px 20px;
}

section h2{
text-align:center;
margin-bottom:40px;
font-size:28px;
font-weight:500;
}

/* Services */

.services{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:25px;
}

.card{
background:#1a1a1a;
padding:25px;
border-radius:6px;
border:1px solid #222;
}

.card h3{
margin-bottom:10px;
font-size:18px;
color:#fff;
}

.card p{
font-size:14px;
color:#bbb;
}

/* Skills */

.skill{
margin-bottom:20px;
}

.bar{
height:6px;
background:#222;
border-radius:10px;
overflow:hidden;
}

.bar span{
display:block;
height:6px;
background:#e63946;
}

/* Projects */

.projects{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:20px;
}

.project{
background:#1a1a1a;
padding:20px;
border-radius:6px;
border:1px solid #222;
}

.project h3{
margin-bottom:8px;
font-size:17px;
}

.project p{
font-size:14px;
color:#bbb;
}

/* Contact */

#contact{
text-align:center;
}

#contact p{
margin:10px 0;
}

#contact a{
color:#e63946;
text-decoration:none;
}

#contact a:hover{
text-decoration:underline;
}

/* Footer */

footer{
text-align:center;
padding:25px;
background:#0b0b0b;
border-top:1px solid #222;
font-size:14px;
}

/* Responsive */

@media(max-width:800px){

.services{
grid-template-columns:1fr;
}

.projects{
grid-template-columns:1fr;
}

nav{
flex-direction:column;
gap:10px;
}

.hero h1{
font-size:34px;
}

}
