/* Reset & basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html {
    scroll-behavior: smooth; /* smooth scroll for navbar */
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* prevent horizontal scrollbar */
}

body {
    line-height: 1.6;
    color: #fff;                
    background-color: #1f1f1f; /* soft dark gray */
    padding-top: 60px; /* space for fixed navbar */
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* prevent horizontal scrollbar */
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #2c2c2c;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 1000;
}

#navbar a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

#navbar a:hover {
    color: #6a11cb;
}

/* Hero Section / Welcome Section */
#welcome-section {
    max-width: 100%;           /* override the global section max-width */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: #fff;
    margin: 0;
    padding: 0;
}




#welcome-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

#welcome-section p {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Social links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    color: white;
    transition: opacity 0.3s;
}

.github { background-color: #24292f; }
.linkedin { background-color: #0077b5; }

.social-link:hover { opacity: 0.8; }

/* Sections */
section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: auto;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

/* Projects */
.project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.project-card {
    background: #2c2c2c;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 250px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.project-card a {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    color: #2575fc;
}

/* Skills */
.skills ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    list-style: none;
}

.skills li {
    background: #2575fc;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
}

/* Contact */
.contact form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: auto;
    gap: 10px;
}

.contact input, .contact textarea {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #2c2c2c;  
    color: #fff;                
}

.contact button {
    padding: 10px;
    background: #2575fc;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact button:hover {
    background: #6a11cb;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #2c2c2c;
    color: #fff;
}

/* Responsive */
@media(max-width:768px){
    .project-list {
        flex-direction: column;
        align-items: center;
    }
}

