* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}
header {
    width: 100%;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: #111; /* Always solid */
}
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
   justify-content: center;
   align-items: center;
    background: transparent; /* Remove this line if present */
    padding: 12px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.navbar ul {
    list-style:none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    max-width: 100;
    width: auto;
}
.navbar li {
    margin: 0 20px;
}
.navbar a {
    position: relative;
    color : #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    transition: color 0.3s ease;
}
.navbar a::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: #ff9800;
    transition: width 0.3s ease;
}
.navbar a:hover 
{
    color:#111 ;
    background: #ff9800;
}
.navbar a:hover::after{
    width: 100%;
}
.hero {
    text-align: center;
    padding: 160px 20px 100px 20px; /* 160px top to account for header */
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: #fff;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #222;
}
.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}
.intro {
    padding: 20px;
    text-align: center;
}
footer {

    text-align: center;
    padding : 20px;
    font-size: 0.9rem;
    background: #111;
    color: #bbb;
    margin-top: 50px;
}
footer span
{
    color: #ff9800;
    font-weight: bold;
}
.content{
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    line-height: 1.6;
    font-size: 1.1rem;
    color: #333;
}
html{
    scroll-behavior: smooth;
}
* {
    transition: all 0.3s ease-in-out;
}
.profile-pic{
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.btn{
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #fff;
    color: #ff5722;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
}
.btn:hover {
    background: #ff5722;
    color: #fff;
}
.projects {
    padding: 60px 20px;
    text-align: center;
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.card{
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transition 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

h1, h2, h3, p {
    word-wrap: break-word;
}

@media (max-width: 768px) {
    body{
        font-size: 16px;
        padding: 10px;
    }
    .navbar {
        padding: 8px 0;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    nav ul li {
        margin: 10px 0;
    }

    .container {
        width: 100%;
    }
    .content {
        
        padding: 10px; font-size: 14px;
    }
    .projects {
        max-width: 100%;
        padding: 10px;
        margin: 20px 0;
    }
    .hero {
        padding: 60px 10px;
    }
    .profile-pic {
        width: 110px;
        height: 110px;
    }
    .project-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .content,
    .projects {
        padding: 5px;
        margin: 10px 0;
    }
    .hero {
        padding: 40px 5px;
    }
    .profile-pic {
        width: 80px;
        height: 80px;
    }
    .projects {
        padding: 30px 5px;
    }
}
