0% found this document useful (0 votes)
3 views2 pages

CSS Styling for Modern Web Design

The document provides a CSS stylesheet for a web design, defining various styles for elements such as the body, navbar, buttons, and sections. It includes responsive design features for different screen sizes and utilizes CSS variables for color management. Key components include a hero section, service cards, testimonials, and a footer with social icons.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

CSS Styling for Modern Web Design

The document provides a CSS stylesheet for a web design, defining various styles for elements such as the body, navbar, buttons, and sections. It includes responsive design features for different screen sizes and utilizes CSS variables for color management. Key components include a hero section, service cards, testimonials, and a footer with social icons.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

:root { --primary: #0d6efd; --primary-dark: #0b5ed7; --secondary: #6c757d; --light: #f8f9fa;

--dark: #212529; --accent: #ffc107; } * { margin: 0; padding: 0; box-sizing: border-box; }


body { font-family: 'Open Sans', sans-serif; color: var(--dark); line-height: 1.6; overflow-x:
hidden; background-color: #f9f9f9; } h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-
serif; font-weight: 700; } .navbar { background: linear-gradient(135deg, var(--primary) 0%,
var(--primary-dark) 100%); box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1); padding: 15px
0; } .navbar-brand { font-weight: 700; font-size: 1.8rem; display: flex; align-items:
center; } .navbar-brand i { margin-right: 10px; font-size: 1.5rem; } .nav-link { font-weight:
500; margin: 0 8px; position: relative; transition: all 0.3s ease; } .nav-link:hover { color:
var(--accent); } .nav-link:after { content: ''; position: absolute; bottom: 0; left: 0; width: 0;
height: 2px; background: var(--accent); transition: width 0.3s ease; } .nav-link:hover:after
{ width: 100%; } .hero { background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
url('[Link]
4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat; height: 85vh; display:
flex; align-items: center; color: white; position: relative; } .hero-content { max-width:
700px; } .hero h1 { font-size: 3.5rem; margin-bottom: 20px; text-shadow: 0 2px 5px rgba(0,
0, 0, 0.5); } .hero p { font-size: 1.3rem; margin-bottom: 30px; text-shadow: 0 1px 3px rgba(0,
0, 0, 0.5); } .btn-primary { background: var(--primary); border: none; padding: 12px 30px;
font-weight: 600; transition: all 0.3s ease; border-radius: 50px; box-shadow: 0 4px 10px
rgba(13, 110, 253, 0.3); } .btn-primary:hover { background: var(--primary-dark); transform:
translateY(-3px); box-shadow: 0 6px 15px rgba(13, 110, 253, 0.4); } .btn-outline-light { border:
2px solid white; border-radius: 50px; padding: 10px 25px; font-weight: 600; transition: all
0.3s ease; } .btn-outline-light:hover { background: white; color: var(--primary); transform:
translateY(-3px); } .section-title { position: relative; margin-bottom: 40px; padding-bottom:
15px; } .section-title:after { content: ''; position: absolute; bottom: 0; left: 0; width: 80px;
height: 4px; background: var(--primary); border-radius: 2px; } .[Link]-center:after {
left: 50%; transform: translateX(-50%); } .about-content { background: white; border-radius:
10px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); padding: 40px; transition: transform 0.3s
ease; } .about-content:hover { transform: translateY(-10px); } .service-card { background:
white; border: none; border-radius: 10px; overflow: hidden; transition: all 0.3s ease;
height: 100%; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); } .service-card:hover { transform:
translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); } .service-icon { width: 80px;
height: 80px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark)
100%); border-radius: 50%; display: flex; align-items: center; justify-content: center;
margin: 0 auto 25px; color: white; font-size: 2rem; } .service-card h5 { color: var(--primary); }
.portfolio-item { position: relative; overflow: hidden; border-radius: 10px; margin-bottom:
25px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); } .portfolio-img { transition: all 0.5s ease;
height: 250px; object-fit: cover; width: 100%; } .portfolio-overlay { position: absolute;
bottom: -100%; left: 0; width: 100%; background: rgba(13, 110, 253, 0.9); color: white;
padding: 20px; transition: bottom 0.5s ease; } .portfolio-item:hover .portfolio-overlay
{ bottom: 0; } .portfolio-item:hover .portfolio-img { transform: scale(1.1); } .testimonial-card {
background: white; border-radius: 10px; padding: 30px; box-shadow: 0 5px 15px rgba(0, 0, 0,
0.05); position: relative; margin-top: 40px; } .testimonial-card:before { content: '\201C';
position: absolute; top: -30px; left: 20px; font-size: 5rem; color: var(--primary); opacity:
0.2; font-family: Georgia, serif; } .client-img { width: 70px; height: 70px; border-radius: 50%;
border: 4px solid var(--primary); object-fit: cover; margin-right: 20px; } .stars { color: var(--
accent); margin-bottom: 15px; } .contact-form { background: white; border-radius: 10px;
padding: 30px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); } .contact-info { background:
linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; border-
radius: 10px; padding: 30px; height: 100%; } .contact-info i { width: 40px; height: 40px;
background: rgba(255, 255, 255, 0.2); border-radius: 50%; display: flex; align-items: center;
justify-content: center; margin-right: 15px; } .contact-item { display: flex; align-items: center;
margin-bottom: 25px; } .map-container { border-radius: 10px; overflow: hidden; box-
shadow: 0 5px 20px rgba(0, 0, 0, 0.1); height: 300px; } footer { background: linear-
gradient(135deg, var(--dark) 0%, #343a40 100%); color: white; padding: 60px 0 30px; } .social-
icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.1);
display: flex; align-items: center; justify-content: center; margin: 0 8px; transition: all 0.3s
ease; } .social-icon:hover { background: var(--primary); transform: translateY(-5px); } .footer-
links a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: all 0.3s ease;
margin: 0 15px; margin-bottom: 10px; display: inline-block; } .footer-links a:hover { color:
white; } .copyright { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px;
margin-top: 30px; } @media (max-width: 768px) { .hero { height: 70vh; } .hero h1 { font-
size: 2.5rem; } .hero p { font-size: 1.1rem; } .section-title { text-align:
center; } .section-title:after { left: 50%; transform: translateX(-50%); } .contact-item
{ flex-direction: column; align-items: flex-start; } .contact-item i { margin-bottom: 10px;
} .footer-links a { margin: 5px 10px; } }

You might also like