/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f5f5f5;
    color: #222;
}

/* NAVBAR */
nav {
    background: black;
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 15px 40px;
}

nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 40px;
}

.header-left h1 {
    font-size: 30px;
}

.header-left span {
    font-weight: bold;
}

.header-left p {
    color: gray;
    margin: 15px 0;
}
.header-right img {
    width: 300px;
    border-radius: 50%;
}

/* BUTTON */
.btn {
    border: 2px solid black;
    padding: 10px 10px;
    text-decoration: none;
    color:white;
    transition: 0.3s;
}

.btn:hover {
    background: black;
    color: white;
}

/* SECTIONS */
section {
    padding: 60px 40px;
    text-align: center;
}

/* ABOUT */
.about-box {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.about-box div {
    background: white;
    padding: 20px;
    width: 250px;
    border-radius: 10px;
}

/* SKILLS */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.skills-grid div {
    background: white;
    padding: 20px;
    border-radius: 10px;
    transition: 0.3s;
}

.skills-grid div:hover {
    transform: scale(1.05);
}

.skills-grid i {
    font-size: 30px;
    margin-bottom: 10px;
}

/* CONTACT */
form {
    max-width: 400px;
    margin: auto;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-bottom: 2px solid black;
    background: transparent;
}

button {
    border: 2px solid black;
    padding: 10px 20px;
    background: transparent;
    cursor: pointer;
}

button:hover {
    background: black;
    color: white;
}

/* FOOTER */
footer {
    background: black;
    color: white;
    text-align: center;
    padding: 20px;
}

/* RESPONSIVE */
@media(max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    .about-box {
        flex-direction: column;
        align-items: center;
    }
}
/* Animation */
.about-box div,
.skills-grid div {
    opacity: 1;
    transform: none;
    transition: 0.5s;
}


/* Active nav link */
nav a.active {
    color: #00adb5;
}