anycoder-coffee / assets /css /styles.css
akhaliq's picture
akhaliq HF Staff
Upload folder using huggingface_hub
ed083eb verified
Raw
History Blame Contribute Delete
10 kB
/* Reset and Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
font-family: 'Roboto', sans-serif;
font-weight: 300;
line-height: 1.6;
color: #333;
background-color: #f8f8f8;
}
.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
h1, h2, h3, h4, h5, h6 {
font-family: 'Montserrat', sans-serif;
font-weight: 600;
line-height: 1.2;
margin-bottom: 1rem;
}
p {
margin-bottom: 1rem;
}
a {
text-decoration: none;
color: #3f51b5;
transition: color 0.3s ease;
}
a:hover {
color: #303f9f;
}
ul {
list-style: none;
}
img {
max-width: 100%;
height: auto;
display: block;
}
section {
padding: 80px 0;
}
@media (max-width: 768px) {
section {
padding: 60px 0;
}
}
/* Buttons */
.btn {
display: inline-block;
padding: 12px 28px;
font-family: 'Montserrat', sans-serif;
font-weight: 500;
font-size: 16px;
border-radius: 30px;
cursor: pointer;
text-align: center;
transition: all 0.3s ease;
border: none;
}
.btn-primary {
background-color: #ff5722;
color: white;
}
.btn-primary:hover {
background-color: #e64a19;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(255, 87, 34, 0.3);
}
.btn-secondary {
background-color: #3f51b5;
color: white;
}
.btn-secondary:hover {
background-color: #303f9f;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(63, 81, 181, 0.3);
}
.btn-outline {
background-color: transparent;
color: #3f51b5;
border: 2px solid #3f51b5;
}
.btn-outline:hover {
background-color: #3f51b5;
color: white;
}
/* Header */
.site-header {
background-color: white;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
position: sticky;
top: 0;
z-index: 100;
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 0;
}
.logo h1 {
font-size: 24px;
color: #3f51b5;
font-weight: 700;
}
.main-nav {
position: relative;
}
.menu-toggle {
display: none;
background: none;
border: none;
cursor: pointer;
padding: 5px;
}
.menu-toggle .bar {
display: block;
width: 25px;
height: 3px;
margin: 5px 0;
background-color: #333;
transition: all 0.3s ease;
}
.nav-list {
display: flex;
gap: 30px;
}
.nav-list a {
font-family: 'Montserrat', sans-serif;
font-weight: 500;
color: #555;
position: relative;
padding-bottom: 5px;
}
.nav-list a.active,
.nav-list a:hover {
color: #3f51b5;
}
.nav-list a.active::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 2px;
background-color: #3f51b5;
}
@media (max-width: 768px) {
.menu-toggle {
display: block;
}
.nav-list {
position: absolute;
top: 100%;
left: 0;
right: 0;
flex-direction: column;
background-color: white;
padding: 20px;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease;
}
.nav-list.active {
max-height: 300px;
}
.nav-list li {
margin: 10px 0;
}
}
/* Hero Section */
.hero {
background: linear-gradient(135deg, #3f51b5 0%, #1a237e 100%);
padding: 120px 0;
text-align: center;
color: white;
}
.hero-content {
max-width: 800px;
margin: 0 auto;
}
.hero h2 {
font-size: 48px;
font-weight: 700;
margin-bottom: 20px;
}
.hero p {
font-size: 20px;
margin-bottom: 30px;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
@media (max-width: 768px) {
.hero {
padding: 80px 0;
}
.hero h2 {
font-size: 36px;
}
.hero p {
font-size: 18px;
}
}
/* Features Section */
.features {
background-color: white;
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 40px;
}
.feature-card {
text-align: center;
padding: 30px 20px;
border-radius: 10px;
background-color: #f8f8f8;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.feature-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 70px;
height: 70px;
border-radius: 50%;
background-color: #e8eaf6;
color: #3f51b5;
margin-bottom: 20px;
}
.feature-icon svg {
width: 32px;
height: 32px;
}
.feature-card h3 {
color: #333;
margin-bottom: 15px;
font-size: 22px;
}
/* Featured Blends Section */
.featured-blends {
background-color: #f5f5f5;
}
.section-title {
text-align: center;
margin-bottom: 50px;
font-size: 36px;
color: #333;
}
.blends-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 30px;
margin-bottom: 50px;
}
.blend-card {
background-color: white;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blend-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.blend-img {
height: 200px;
overflow: hidden;
}
.blend-img img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}
.blend-card:hover .blend-img img {
transform: scale(1.1);
}
.blend-info {
padding: 25px;
}
.blend-info h3 {
font-size: 22px;
margin-bottom: 10px;
color: #333;
}
.blend-info p {
margin-bottom: 20px;
color: #666;
}
.blend-price {
font-size: 24px;
font-weight: 600;
color: #ff5722;
margin-bottom: 15px;
}
.text-center {
text-align: center;
}
/* Brewing Tips Section */
.brew-content {
display: flex;
align-items: center;
gap: 60px;
}
.brew-text {
flex: 1;
}
.brew-image {
flex: 1;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.brew-image img {
width: 100%;
height: auto;
}
.brew-text h2 {
font-size: 36px;
margin-bottom: 20px;
}
@media (max-width: 992px) {
.brew-content {
flex-direction: column;
gap: 40px;
}
.brew-image {
width: 100%;
}
}
/* Testimonials Section */
.testimonials {
background-color: white;
}
.testimonials-slider {
position: relative;
max-width: 800px;
margin: 0 auto;
}
.testimonial-card {
background-color: #f8f8f8;
border-radius: 10px;
padding: 40px;
text-align: center;
display: none;
}
.testimonial-card.active {
display: block;
}
.testimonial-content {
font-size: 20px;
font-style: italic;
color: #555;
margin-bottom: 30px;
position: relative;
}
.testimonial-content::before {
content: '"';
font-size: 80px;
color: #e0e0e0;
position: absolute;
top: -40px;
left: -20px;
font-family: Georgia, serif;
}
.testimonial-author {
display: flex;
flex-direction: column;
align-items: center;
}
.author-name {
font-weight: 600;
font-size: 18px;
color: #333;
}
.author-title {
color: #666;
font-size: 16px;
}
.slider-controls {
display: flex;
justify-content: center;
gap: 20px;
margin-top: 30px;
}
.slider-btn {
background-color: #f0f0f0;
border: none;
border-radius: 50%;
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background-color 0.3s ease;
}
.slider-btn:hover {
background-color: #e0e0e0;
}
.slider-btn svg {
width: 24px;
height: 24px;
color: #555;
}
/* Footer */
.site-footer {
background-color: #263238;
color: #b0bec5;
padding: 80px 0 30px;
}
.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 40px;
margin-bottom: 60px;
}
.footer-col h3 {
color: white;
font-size: 22px;
margin-bottom: 25px;
position: relative;
padding-bottom: 15px;
}
.footer-col h3::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 40px;
height: 2px;
background-color: #ff5722;
}
.footer-about p {
margin-bottom: 20px;
}
.social-links {
display: flex;
gap: 15px;
}
.social-links a {
background-color: #37474f;
color: #b0bec5;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.3s ease, color 0.3s ease;
}
.social-links a:hover {
background-color: #ff5722;
color: white;
}
.footer-links ul li {
margin-bottom: 12px;
}
.footer-links ul li a {
color: #b0bec5;
transition: color 0.3s ease;
}
.footer-links ul li a:hover {
color: #ff5722;
}
.footer-contact address {
font-style: normal;
}
.contact-item {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 15px;
}
.contact-item svg {
color: #ff5722;
flex-shrink: 0;
}
.contact-item a {
color: #b0bec5;
transition: color 0.3s ease;
}
.contact-item a:hover {
color: white;
}
.footer-bottom {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 30px;
border-top: 1px solid #37474f;
}
.footer-bottom-links {
display: flex;
gap: 20px;
}
.footer-bottom-links a {
color: #90a4ae;
transition: color 0.3s ease;
}
.footer-bottom-links a:hover {
color: white;
}
@media (max-width: 768px) {
.footer-bottom {
flex-direction: column;
gap: 20px;
}
.footer-bottom-links {
flex-direction: column;
align-items: center;
gap: 10px;
}
}