/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

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

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar ul li {
    margin-left: 20px;
}

.navbar a {
    color: white;
    text-decoration: none;
}

#darkModeToggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: white;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 2rem;
}

.hero-text {
    max-width: 50%;
}

.hero-text h1 {
    font-size: 2.5rem;
    color: #222;
}

.hero-img img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 4px solid #444;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    margin-top: 1rem;
    background: #444;
    color: white;
    border: none;
    cursor: pointer;
    text-decoration: none;
    border-radius: 5px;
}

.btn.outline {
    background: transparent;
    border: 2px solid #444;
    color: #444;
}

/* About Section */
.about, .projects, .contact {
    padding: 2rem;
    text-align: center;
}

/* Projects */
.project-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.project-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1rem;
    margin: 1rem;
    width: 250px;
}

/* Contact Form */
form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: auto;
}

form input, form textarea {
    padding: 0.7rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
}

form button {
    background: #222;
    color: white;
    padding: 0.7rem;
    border: none;
    cursor: pointer;
}

/* Social Links */
.social-links a {
    display: inline-block;
    margin: 0.5rem;
    color: #444;
    text-decoration: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background: #222;
    color: white;
}

/* Scroll to Top */
#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 0.6rem;
    border: none;
    background: #444;
    color: white;
    cursor: pointer;
    display: none;
}

/* Dark Mode */
body.dark {
    background: #222;
    color: white;
}

body.dark .navbar, body.dark footer {
    background: #000;
}

body.dark .btn.outline {
    border-color: white;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-img {
        margin-top: 1rem;
    }
}
