Assignment-123/css/styles.css

590 lines
10 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
html {
scroll-behavior: smooth;
}
body {
font-family: 'Roboto', sans-serif;
color: #333;
}
header {
background: rgba(255, 255, 255, 0.8);
color: #333;
position: fixed;
top: 0;
width: 100%;
z-index: 1000;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
min-width: 100%;
}
.container {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
}
.logo {
font-size: 1.5rem;
font-weight: bold;
text-transform: uppercase;
}
.nav-links {
display: flex;
gap: 1.5rem;
}
.nav-links a {
color: #333;
text-decoration: none;
font-size: 1.2rem;
transition: color 0.3s;
}
.nav-links a:hover {
color: #ff9800;
}
.hamburger {
display: none;
flex-direction: column;
cursor: pointer;
}
.hamburger div {
width: 25px;
height: 3px;
background: #333;
margin: 4px 0;
}
.hero {
height: 100vh;
background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../assets/dm.jpg') center/cover no-repeat;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
text-align: center;
padding: 2rem;
}
.hero h1 {
font-size: 3rem;
margin-bottom: 1rem;
}
.hero p {
font-size: 1.2rem;
margin-bottom: 2rem;
}
.cta-button {
background: #ff9800;
color: #fff;
padding: 0.75rem 1.5rem;
border: none;
border-radius: 5px;
font-size: 1rem;
cursor: pointer;
transition: 0.3s;
}
.cta-button:hover {
background: #e68900;
}
/*
services */
.services {
padding: 4rem 2rem;
text-align: center;
background: #f9f9f9;
}
.services h2 {
font-size: 2rem;
margin-bottom: 1rem;
}
.services p{
color: gray;
font-size: 1.5rem;
}
.cards {
display: grid;
/* grid-template-columns: repeat(4, 1fr); */
gap: 2rem;
margin-left: 4rem;
margin-right: 4rem;
margin-top: 2rem;
}
.card {
background: #fff;
padding: 2rem;
border-radius: 10px;
box-shadow: 0px 4px 6px #e68900;
transition: transform 0.3s;
}
.card:hover {
transform: translateY(-10px);
}
.card i {
font-size: 2rem;
color: #ff9800;
margin-bottom: 1rem;
}
.card h3 {
margin-bottom: 1rem;
font-size: 1.5rem;
}
.card p {
font-size: 1rem;
}
/* pricing */
#pricing {
/* margin-top: 10px; */
/* Adjust this value to clear the navbar */
/* padding: 20px; */
text-align: center;
/* align-items: center; */
/* margin-bottom: 2rem; */
}
#pricing p{
margin-top: 4rem;
margin-bottom: 1.5rem;
text-align: center;
font-weight: bold;
font-size: 2.5rem;
}
.desc {
color: #6b7280;
font-size: 1.2rem;
}
.pricing-table {
display: flex;
gap: 20px;
max-width: 100%;
justify-content: center;
align-items: center;
flex-wrap: wrap;
margin-top: 4rem;
margin-bottom: 4rem;
}
.pricing-plan {
background: linear-gradient(145deg, #ffffff, #e6e6e6);
border: 1px solid #d1d5db;
border-radius: 12px;
padding: 20px;
text-align: center;
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
width: 300px;
transition: transform 0.3s, box-shadow 0.3s;
position: relative;
}
.pricing-plan:hover {
transform: translateY(-10px);
box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}
.plan-title {
font-size: 1.8em;
font-weight: bold;
margin-bottom: 15px;
color: #1f2937;
}
.plan-price {
font-size: 2.2em;
font-weight: bold;
margin: 20px 0;
color: #3b82f6;
}
.plan-description {
color: #6b7280;
margin-bottom: 20px;
}
.features {
list-style: none;
padding: 0;
margin: 0;
color: #4b5563;
text-align: left;
margin-top: 2rem;
}
.features li {
margin: 10px 0;
display: flex;
align-items: center;
gap: 10px;
}
.features li::before {
content: '\2713';
color: #10b981;
font-weight: bold;
}
.btn {
display: inline-block;
padding: 12px 24px;
font-size: 1em;
color: #ffffff;
background-color: #3b82f6;
border: none;
border-radius: 6px;
text-decoration: none;
transition: background-color 0.3s, transform 0.3s;
}
.btn:hover {
background-color: #2563eb;
transform: scale(1.05);
}
.badge {
position: absolute;
top: -10px;
right: -10px;
background: #f59e0b;
color: #ffffff;
font-size: 0.9em;
font-weight: bold;
padding: 5px 10px;
border-radius: 50px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.secondary-badge {
position: absolute;
bottom: -10px;
right: -10px;
background: #10b981;
color: #ffffff;
font-size: 0.8em;
font-weight: bold;
padding: 4px 8px;
border-radius: 50px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
/* team */
.team {
padding: 4rem 2rem;
text-align: center;
background: #f9f9f9;
box-shadow: 0 4px 6px #e68900;
}
.team h2 {
font-size: 2.5rem;
margin-bottom: 3rem;
}
.team .team-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
margin-left: 6rem;
margin-bottom: 1.5rem;
margin-right: 6rem;
}
.team .team-member {
margin-left: 4rem;
width: 70%;
text-align: center;
}
.team-member img{
height: 300px;
box-shadow: 0 4px 6px #e68900;
}
.team img {
width: 100%;
border-radius: 10px;
transition: transform 0.4s;
}
.team img:hover {
transform: scale(1.05);
}
.team .team-name {
margin-top: 0.5rem;
font-size: 1.2rem;
font-weight: bold;
color: #333;
}
.contact {
padding: 4rem 2rem;
text-align: center;
background: #fff;
}
.contact h2 {
font-size: 2.5rem;
margin-bottom: 2rem;
}
.contact form {
display: flex;
flex-direction: column;
align-items: center;
max-width: 600px;
margin: 0 auto;
}
.contact input, .contact textarea {
width: 100%;
padding: 1rem;
margin: 0.5rem 0;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 1rem;
transition: border-color 0.3s;
}
.contact input:focus, .contact textarea:focus {
border-color: #ff9800;
outline: none;
}
.cta-button {
background: #ff9800;
color: #fff;
padding: 0.75rem 1.5rem;
border: none;
border-radius: 5px;
font-size: 1rem;
cursor: pointer;
transition: 0.3s;
margin-top: 1rem;
}
.cta-button:hover {
background: #e68900;
}
/* Footer */
.footer {
background-color: #000000;
padding: 3rem;
box-shadow: 0 4px 6px #e68900;
color: white;
text-align: left;
position: relative;
padding-bottom: 0rem;
}
.footer-content {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
margin-bottom: 2rem;
}
.footer-copyright {
text-align: center;
padding: 1rem 0;
background-color: #000000;
font-size: 0.9rem;
color: #555;
width: 100%;
border-top: 1px solid #ffffff;
}
.footer-copyright p {
color: white;
font-size: 1rem;
}
/* Tab (768px - 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
.cards {
grid-template-columns: repeat(2, 1fr);
}
.hero h1 {
font-size: 3rem;
}
.hero p {
font-size: 1.2rem;
}
.cta-button {
padding: 0.75rem 1.5rem;
font-size: 1rem;
}
.contact input, .contact textarea {
padding: 1rem;
}
/* .price-container {
justify-content: space-around;
} */
}
.contact-info h4, .sitemap h4, .social-media h4 {
font-size: 1.5rem;
margin-bottom: 1rem;
}
.contact-info p, .sitemap ul li {
font-size: 1rem;
color: #777;
margin-bottom: 0.5rem;
}
.contact-info a, .sitemap a, .social-icons a {
color: #ff9800;
text-decoration: none;
transition: color 0.3s;
}
.contact-info a:hover, .sitemap a:hover, .social-icons a:hover {
text-decoration: underline;
color: #e68900;
}
.sitemap ul {
list-style: none;
padding: 0;
}
.social-icons a {
font-size: 1.5rem;
margin-right: 1rem;
}
/* Responsiveness */
/* pc (1200px+) */
@media (min-width: 1200px) {
.cards {
grid-template-columns: repeat(4, 1fr);
}
.card {
padding: 2rem;
}
.hero h1 {
font-size: 4rem;
}
.hero p {
font-size: 1.5rem;
}
.cta-button {
padding: 1rem 2rem;
font-size: 1.2rem;
}
.contact input, .contact textarea {
padding: 1.25rem;
}
/* .price-container {
justify-content: space-around;
} */
}
/* Tab (768px - 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
.cards {
grid-template-columns: repeat(2, 1fr);
}
.hero h1 {
font-size: 3rem;
}
.hero p {
font-size: 1.2rem;
}
.cta-button {
padding: 0.75rem 1.5rem;
font-size: 1rem;
}
.contact input, .contact textarea {
padding: 1rem;
}
/* .price-container {
gap: 1rem;
}
.price-card {
width: 45%;
} */
}
/* Mobile (320px - 767px) */
@media (max-width: 767px) {
.cards {
grid-template-columns: 1fr;
}
.nav-links {
display: none;
flex-direction: column;
background: #fff;
position: absolute;
top: 60px;
right: 0;
width: 100%;
padding: 1rem 0;
}
.nav-links.active {
display: flex;
}
.hamburger {
display: flex;
}
.hero h1 {
font-size: 2rem;
}
.hero p {
font-size: 1rem;
}
.cta-button {
padding: 0.5rem 1rem;
font-size: 0.9rem;
}
.contact input, .contact textarea {
padding: 1rem;
}
.pricing-plan {
max-width: 100%;
display: flex;
flex-direction: column;
align-items: center;
flex-wrap: wrap;
}
/* .price-card {
width: 90%;
} */
}