/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}

/* Navbar */
nav {
    background-color: #222;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 25px;
}

nav a {
    cursor: pointer;
}

nav a:hover {
    color: #00bfff;
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    height: 90vh;
    background: linear-gradient(to right, #007bff, #00d4ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 25px;
}

.hero button {
    background-color: white;
    color: #007bff;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.hero button:hover {
    background-color: #007bff;
    color: white;
}

/* About Section */
.about {
    padding: 60px 20px;
    background-color: #f8f9fa;
    text-align: center;
}

.about h2 {
    color: #007bff;
    margin-bottom: 50px;
    font-size: 2em;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.about-content img {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.about-content img:hover {
    transform: scale(1.05);
}

.about-text {
    max-width: 600px;
    color: #333;
    font-size: 1.1em;
    line-height: 1.6;
    text-align: left;
}

/* Projects Section */
.projects {
    background-color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.projects h2 {
    color: #007bff;
    margin-bottom: 40px;
    font-size: 2em;
}

.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.project-card h3 {
    color: #007bff;
    margin-bottom: 12px;
}

.project-card p {
    color: #555;
    margin-bottom: 15px;
}

.project-card .project-button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    transition: background 0.3s;
}

.project-card .project-button:hover {
    background-color: #0056b3;
}

/* Contact Section */
.contact {
    background-color: #f8f9fa;
    padding: 60px 20px;
    text-align: center;
}

.contact h2 {
    color: #007bff;
    margin-bottom: 20px;
    font-size: 2em;
}

.contact p {
    color: #555;
    margin-bottom: 40px;
}

form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1em;
    outline: none;
}

input:focus, textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0,123,255,0.4);
}

form button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

form button:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 20px;
}

footer a {
    color: #00bfff;
    text-decoration: none;
    margin: 0 10px;
    transition: 0.3s;
}

footer a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 1em;
        padding: 0 10px;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text {
        text-align: center;
    }

    .about img {
        width: 150px;
        height: 150px;
    }

    .project-container {
        grid-template-columns: 1fr;
    }

    form {
        width: 90%;
    }
}
