/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    scroll-behavior: smooth;
}

/* ===== NAVBAR (FIXED CENTER ALIGNMENT) ===== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;   /* vertical center */
    height: 70px;          /* equal spacing top & bottom */
    padding: 0 60px;
    background: linear-gradient(45deg, #ff5722, #ff9800);
    position: fixed;
    width: 100%;
    top: 0;
}

/* Logo fix */
.logo {
    color: white;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
    margin: 0;
}

/* Nav links */
nav ul {
    display: flex;
    align-items: center;
    list-style: none;
}

nav li {
    margin-left: 20px;
}

nav a {
    color: white;
    text-decoration: none;
}

/* ===== HOME ===== */
.home {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 60px 60px;
    background: linear-gradient(to right, #ffe0b2, #fff3e0);
}

/* Layout fix */
.home-content {
    display: flex;
    align-items: center;
}

/* Text left */
.text {
    flex: 1;
}

/* Headings */
.home h1 {
    font-size: 42px;
}

.home h3 {
    font-size: 22px;
    margin: 10px 0;
}

.home p {
    line-height: 1.7;
    max-width: 500px;
}

/* Highlight */
.home span {
    color: #ff5722;
}

/* Image RIGHT FIX */
.profile-img {
    width: 260px;
    border-radius: 50%;
    margin-left: auto; /* pushes to right */
}

/* Button */
.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #ff5722;
    color: white;
    border-radius: 20px;
    text-decoration: none;
}

/* ===== SECTIONS ===== */
section {
    padding: 90px 60px;
}

h2 {
    color: #ff5722;
    margin-bottom: 20px;
}

/* ===== SKILLS ===== */
.skills {
    display: flex;
    flex-wrap: wrap;
}

.skills div {
    background: #ffccbc;
    margin: 5px;
    padding: 10px;
    border-radius: 20px;
}

/* ===== PROJECTS ===== */
.projects {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    flex: 1 1 250px;
    background: #fff3e0;
    padding: 20px;
    border-radius: 15px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 15px;
    background: #ff5722;
    color: white;
}

/* ===== MOBILE ===== */
@media(max-width: 768px) {

    nav {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
    }

    .home {
        padding: 120px 20px;
    }

    .home-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-img {
        margin-left: 0;
        margin-top: 20px;
    }

    .projects {
        flex-direction: column;
    }
}