/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Style */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-image: linear-gradient(to top, #feada6 0%, #f5efef 100%);
    color: #333;
    padding: 20px;
}

/* Header Style */
header#head {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.9);
}

header#head button {
    background: #fff;
    color: #ff7e5f;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

header#head button:hover {
    background: #feb47b;
    color: white;
}

/* Navigation Bar Style */
nav {
    background: #2c3e50;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.9);
}
nav li a{
    justify-content: center;
}
nav h1#dhanu {
    font-size: 24px;
    font-weight: bold;
    color: #ecf0f1;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav ul li {
    display: inline;
justify-content: center;
}

nav ul li a {
    color: #ecf0f1;
   
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

nav ul li a:hover {
    background: #3498db;
    color: white;
}

/* Main Content Style */
h1 {
    color: #333;
    margin-top: 20px;
    font-size: 2em;
}

p {
    margin-top: 10px;
    line-height: 1.6;
}

p span {
    color: #ff7e5f;
}

/* Image Background Gradient */
img {
    display: block;
    margin: 20px auto;
    width: 300px;
    height: 300px;
    
    border-radius: 50%;
    background: linear-gradient(to bottom, rgba(255, 126, 95, 0.5), rgba(254, 180, 123, 0.5)), url('dhanu1.jpg');
    background-size: cover;
    background-blend-mode: overlay;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Skills Section Style */
h1 + ul {
    background: linear-gradient(to right, #e0944c, #e0b66e);
    color: white;
    padding: 20px;
    border-radius: 10px;
    list-style: none;
    margin: 20px 0;
}

h1 + ul li {
    margin-bottom: 10px;
    font-size: 1.2em;
}

/* About Us Section Style */
h1 ~ p {
    background: linear-gradient(to right, #d78614, #f09819);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

h1 ~ p span {
    color: #fff5e1;
}

/* Form Style */
form {
    background: #df851d;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form table {
    width: 100%;
}

form table tr td {
    padding: 10px;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form input[type="name"], form input[type="number"], form input[type="email"], form textarea {
    margin-bottom: 20px;
}

/* Welcome Sir Section Style */
h1:contains('Welcome sir!') {
    background: linear-gradient(to right, #00c6ff, #0072ff);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

h1:contains('Welcome sir!') + p {
    color: #333;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Footer Style */
footer {
    text-align: center;
    margin-top: 20px;
}

footer p, footer a {
    color: #333;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Icons Style */
.fa-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

/* Anchor Tag Style */
a {
    color: #3498db;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s;
    position: absolute;
    bottom: -2px;
    left: 0;
}

a:hover {
    color: #2980b9;
}

a:hover::after {
    width: 100%;
}

/* Icon Tag Style */
i {
    font-size: 24px;
    margin: 0 10px;
    color: #3498db;
    transition: transform 0.3s ease, color 0.3s ease;
}

i:hover {
    transform: rotate(20deg);
    color: #2980b9;
}

/* Media Queries */
@media (max-width: 768px) {
    header#head {
        padding: 10px;
    }

    nav {
        flex-direction: row;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    img {
        width: 200px;
        height: 200px;
    }

    h1 + ul, h1 ~ p, h1:contains('Welcome sir!'), h1:contains('Welcome sir!') + p {
        padding: 10px;
        font-size: 1em;
    }

    i {
        font-size: 20px;
        margin: 0 5px;
    }
}

/* Webkit Prefixes */
@-webkit-keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        -webkit-transform: translateY(0);
    }
    40% {
        -webkit-transform: translateY(-30px);
    }
    60% {
        -webkit-transform: translateY(-15px);
    }
}

@-webkit-keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    -webkit-animation: fadeIn 1s ease-in-out;
    animation: fadeIn 1s ease-in-out;
}
