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

body {
    font-family: Arial, sans-serif;
    background-color: #0d1117;
    color: #fff;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #161b22;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}
.logo span {
    color: #3b82f6;
}

.nav-links {
    list-style: none;
    display: flex;
}
.nav-links li {
    margin-left: 1.5rem;
}
.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-links a:hover {
    color: #3b82f6;
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}
.hero h1 {
    font-size: 2.5rem;
}
.hero h2 {
    color: #3b82f6;
    margin: 0.5rem 0;
}
.hero p {
    max-width: 600px;
    margin-bottom: 1rem;
}
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #3b82f6;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}
.btn:hover {
    background: #2563eb;
}

/* Sections */
section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: auto;
}
h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #3b82f6;
}

/* Skills */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.skills-list li {
    background: #161b22;
    padding: 10px 15px;
    margin: 8px;
    border-radius: 8px;
    border: 1px solid #3b82f6;
    transition: transform 0.3s ease;
}
.skills-list li:hover {
    transform: scale(1.05);
}

/* Projects */
.project-card {
    background: #161b22;
    padding: 20px;
    margin: 10px 0;
    border-radius: 10px;
    border: 1px solid #3b82f6;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.project-card:hover {
    transform: translateY(-5px);
    border-color: #2563eb;
}

/* Contact */
#contact p {
    text-align: center;
    margin: 0.5rem 0;
}
#contact a {
    color: #3b82f6;
    text-decoration: none;
}
#contact a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #161b22;
    font-size: 0.9rem;
}

/* Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .nav-links { display: none; } /* simple mobile handling */
    .hero h1 { font-size: 2rem; }
}
