<style> /* Navigation styles */ background: #333; }
.fade-in-element { nav { color: #f0f0f0;
opacity: 0; /* Start as invisible */ background: rgba(0, 0, 0, 0.7); padding: 20px 0; /* Paragraph styling */
/* Optional: slight upward movement */ padding: 10px 0; } p{
transition: opacity 1s ease, transform 1s } font-size: 1.2em; /* Adjust text size */
ease; /* Transition for fade and movement */
footer ul { color: #f0f0f0; /* Paragraph color */
}
nav ul { list-style: none; margin: 15px 0;
.fade-in-element.show {
list-style: none; padding: 10px 0; }
opacity: 1; /* Fully visible */
} }
transform: translateY(0); /* Move to original
/* Links styling */
position */
nav ul li { footer ul li { a{
}
display: inline; display: inline; color: # cc00; /* Link color */
</style>
margin: 0 15px; margin: 0 10px; text-decoration: none; /* Remove underline */
<script>
} } transition: color 0.3s ease; /* Smooth
window.onload = function() {
transition for hover */
const elements =
}
document.querySelectorAll('.fade-in-element'); nav a { body {
elements.forEach(element => { color: # cc00; font-family: 'Arial', sans-serif; /* Change to
desired font */ a:hover {
element.classList.add('show'); // Start text-decoration: none;
the animation color: #333; /* Default text color */ color: # ; /* Color on hover */
}
}); background: linear-gradient(135deg, #6a11cb, }
#2575fc); /* Gradient background */
};
/* Hero section styling */
line-height: 1.6;
</script> /* Button styling */
.hero {
text-align: center; /* Center-align text */
Index button {
padding: 60px 0;
}
<!DOCTY /* Reset some basic styles */ background-color: # cc00; /* Button
background: rgba(0, 0, 0, 0.5); /* Dark overlay
background */
*{ for better text visibility */
/* Styling headings */ color: #333; /* Button text color */
margin: 0; }
h1, h2, h3, h4, h5, h6 { border: none;
padding: 0;
color: # ; /* Headings color */ border-radius: 5px;
box-sizing: border-box; /* Footer styling */
margin: 20px 0; padding: 10px 20px;
} footer {
font-size: 1em; ::-webkit-scrollbar { <meta name="viewport" <section class="content" id="about">
content="width=device-width, initial-
cursor: pointer; width: 12px; <div class="container">
scale=1.0">
transition: background-color 0.3s ease; } <h2>About Us</h2>
<title>Professional Website</title>
} <p>We are a dedicated team of
<link rel="stylesheet" href="styles.css"> <!--
professionals committed to delivering top-notch
::-webkit-scrollbar-thumb { Link to the CSS file -->
services.</p>
button:hover { background: #888; /* Scrollbar color */ </head>
<p>With years of experience in the
background-color: # ; /* Button border-radius: 10px; <body> industry, we strive to exceed your
background on hover */ expectations.</p>
}
} </div>
<header>
</section>
::-webkit-scrollbar-thumb:hover { <nav>
/* Centering any container */
background: #555; /* Scrollbar hover color */ <ul>
.container { <section class="content" id="services">
} <li><a href="#home">Home</a></li>
max-width: 1200px; /* Max width of the <div class="container">
<li><a href="#about">About</a></li>
container */
<h2>Our Services</h2>
/* Media queries for responsiveness */ <li><a
margin: 0 auto; /* Center the container */
href="#services">Services</a></li> <ul>
@media (max-width: 768px) {
padding: 20px; /* Add some padding */
<li><a href="#contact">Contact</a></li> <li>Consulting</li>
body {
}
</ul> <li>Project Management</li>
font-size: 0.9em; /* Smaller font size for
smaller screens */ </nav> <li>Design and Development</li>
/* Additional styling for lists */
} </header> <li>Support and Maintenance</li>
ul, ol {
</ul>
list-style-position: inside; /* Position of bullet
h1 { <section class="hero" id="home"> </div>
points */
font-size: 2em; /* Adjust heading size */ <div class="container"> </section>
padding: 10px;
} <h1>Welcome to Our Professional
}
Service</h1>
} <section class="content" id="contact">
<p>Your success is our priority. We provide
zzsPE html> <div class="container">
li { the best solutions for your needs.</p>
<html lang="en"> <h2>Contact Us</h2>
margin: 10px 0; /* Space between list items */ <button>Get Started</button>
<head> <p>If you have any questions or would like
} </div>
to work with us, feel free to reach out!</p>
<meta charset="UTF-8">
</section>
/* Custom scrollbar for Webkit browsers */