/* General Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 2rem 0;
}

h1, h2, h3 {
    text-align: center;
    color: #333;
}

/* Header & Navigation */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

header nav ul li a {
    color: #555;
    text-decoration: none;
    padding: 1.5rem;
    display: block;
    transition: all 0.3s ease;
}

header nav ul li a:hover {
    color: #007BFF;
    background-color: #f8f9fa;
}

/* Hero Section */
#hero {
    background-color: #007BFF;
    color: #fff;
    text-align: center;
    padding: 5rem 1rem;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
}

/* Skills Section */
#skills .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.skill-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-10px);
}

.skill-item i {
    font-size: 3rem;
    color: #007BFF;
    margin-bottom: 1rem;
}

/* Projects Section */
#projects .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: scale(1.05);
}

.project-item img {
    width: 100%;
    display: block;
}

.project-item h3 {
    margin: 1rem 0 0.5rem;
}

.project-item p {
    padding: 0 1rem 1rem;
    text-align: center;
}

.project-item a {
    display: block;
    text-align: center;
    padding: 1rem;
    background-color: #007BFF;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.project-item a:hover {
    background-color: #0056b3;
}

/* Contact Section */
#contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

#contact form input, #contact form textarea {
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#contact form button {
    padding: 1rem;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#contact form button:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
}