/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
}

header {
    background: #007BFF;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffdd57;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #007BFF, #00BFFF);
    color: #fff;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

.btn {
    background: #ffdd57;
    color: #333;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
    animation: fadeInUp 1.2s ease;
}

.btn:hover {
    background: #ffcc00;
}

/* Sections */
.about,
.skills,
.contact {
    padding: 4rem 2rem;
    text-align: center;
}

.about h2,
.skills h2,
.contact h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #007BFF;
}

.about-content p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Skills */
.skills-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    gap: 1.5rem;
}

.skill-card {
    background: #fff;
    padding: 1.5rem;
    width: 22%;
    min-width: 200px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}

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

.skill-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.skill-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* Contact */
.contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact form label {
    margin: 0.5rem 0 0.2rem;
    font-weight: bold;
    color: #333;
}

.contact form input,
.contact form textarea {
    width: 80%;
    max-width: 600px;
    padding: 0.6rem 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact form input:focus,
.contact form textarea:focus {
    border-color: #007BFF;
    outline: none;
}

.contact form textarea {
    height: 140px;
    resize: vertical;
}

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

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

/* Footer */
footer {
    background: #007BFF;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

footer p {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
}

.social-links {
    margin-top: 0.5rem;
}

.social-links a {
    color: #fff;
    margin: 0 0.6rem;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ffdd57;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

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

    .skill-card {
        width: 80%;
    }

    .contact form input,
    .contact form textarea {
        width: 95%;
    }
}
