fruits-veggies-ui / varity-css.css
Baskar2005's picture
Upload 143 files
44b5a6f verified
/* Base Styles */
:root {
--primary-color: #4a7c59;
--secondary-color: #8cb369;
--accent-color: #f4e285;
--text-color: #333;
--light-text: #f9f9f9;
--background-color: #f9f9f9;
--card-background: #ffffff;
--shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
--transition: all 0.3s ease;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Poppins", sans-serif;
color: var(--text-color);
background-color: var(--background-color);
line-height: 1.6;
transition: var(--transition);
}
a {
text-decoration: none;
color: inherit;
}
ul {
list-style: none;
}
/* Header & Navigation */
header {
position: fixed;
width: 100%;
z-index: 1000;
background-color: rgba(255, 255, 255, 0.95);
box-shadow: var(--shadow);
transition: var(--transition);
}
nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 5%;
max-width: 1400px;
margin: 0 auto;
}
.logo a {
font-size: 1.5rem;
font-weight: 700;
color: var(--primary-color);
}
.nav-links {
display: flex;
gap: 2rem;
}
.nav-links a {
font-weight: 500;
transition: var(--transition);
position: relative;
}
.nav-links a:hover,
.nav-links a.active {
color: var(--primary-color);
}
.nav-links a::after {
content: "";
position: absolute;
width: 0;
height: 2px;
bottom: -5px;
left: 0;
background-color: var(--primary-color);
transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
width: 100%;
}
/* Hamburger Menu */
.hamburger {
display: none;
flex-direction: column;
cursor: pointer;
gap: 5px;
}
.hamburger span {
width: 25px;
height: 3px;
background: var(--text-color);
transition: var(--transition);
}
/* Hero Section */
.hero {
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.hero::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(74, 124, 89, 0.4);
}
.hero-content {
position: relative;
text-align: center;
color: var(--light-text);
z-index: 1;
}
.hero-content h1 {
font-size: 3rem;
margin-bottom: 1rem;
}
.btn {
display: inline-block;
padding: 0.75rem 1.5rem;
background-color: var(--primary-color);
color: var(--light-text);
border-radius: 5px;
transition: var(--transition);
margin-top: 1rem;
}
.btn:hover {
background-color: var(--secondary-color);
}
/* Apple Page Header */
.variety-header {
text-align: center;
padding: 3rem 5%;
background-color: var(--card-background);
}
/* Apple Comparison / Card Section */
.variety-comparison {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
padding: 2rem 5%;
gap: 2rem;
}
.variety-category {
flex: 1;
max-width: 48%;
background-color: var(--card-background);
box-shadow: var(--shadow);
padding: 1.5rem;
border-radius: 10px;
}
.variety-category h2 {
text-align: center;
margin-bottom: 1rem;
}
.variety-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
}
/* Updated Apple Card Style for a WOW Factor */
.variety-item {
position: relative;
overflow: hidden;
background-color: var(--card-background);
border-radius: 12px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
padding: 1.5rem;
transition: transform 0.3s ease, box-shadow 0.3s ease;
text-align: center;
cursor: pointer;
}
.variety-item:hover {
transform: translateY(-8px);
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}
.variety-item::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(45deg, rgba(255,255,255,0.15), rgba(255,255,255,0));
opacity: 0;
transition: opacity 0.3s ease;
}
.variety-item:hover::before {
opacity: 1;
}
.variety-item p {
font-size: 0.95rem;
margin: 0;
color: var(--text-color);
}
/* Footer */
footer {
background-color: var(--card-background);
padding: 2rem 5%;
margin-top: 2rem;
}
.footer-content {
display: flex;
flex-wrap: wrap;
gap: 2rem;
justify-content: space-between;
align-items: center;
}
.footer-logo h3 {
margin-bottom: 0.5rem;
}
/* Responsive Design */
@media (max-width: 768px) {
.nav-links {
position: fixed;
top: 70px;
right: -100%;
background-color: var(--card-background);
flex-direction: column;
gap: 1rem;
padding: 2rem;
width: 200px;
height: calc(100% - 70px);
transition: var(--transition);
}
.nav-links.active {
right: 0;
}
.hamburger {
display: flex;
}
.variety-comparison {
flex-direction: column;
}
.variety-category {
max-width: 100%;
}
}
* Footer Styles */
.footer {
background-color: white;
border-radius: 0.5rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
margin: 1rem;
padding: 1.5rem;
transition: background-color 0.3s ease, color 0.3s ease;
}
.footer-content {
width: 100%;
max-width: 1200px;
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.footer-links {
display: flex;
flex-wrap: wrap;
justify-content: center;
font-size: 0.875rem;
color: #4a5568;
margin: 0;
padding: 0;
list-style-type: none;
}
.footer-links li {
margin-right: 1rem;
}
.footer-links a {
text-decoration: none;
color: inherit;
transition: color 0.3s ease;
}
.footer-divider {
margin-top: 1.5rem;
margin-bottom: 1.5rem;
border-color: #e2e8f0;
}
.footer-credit {
text-align: center;
font-size: 0.875rem;
color: #6b7280;
}
.footer-credit a {
text-decoration: none;
color: #4a5568;
}
/* Dark Mode Footer Styles */
body.dark .footer {
background-color: #333;
color: #f1f1f1;
}
body.dark .footer-links a {
color: #f1f1f1;
}
body.dark .footer-divider {
border-color: #555;
}
body.dark .footer-credit a {
color: #f1f1f1;
}
body.dark {
--text-color: #f1f1f1;
--background-color: #222;
--card-background: #333;
}
body.dark header {
background-color: rgba(34, 34, 34, 0.95);
}
#theme-toggle {
background: none;
border: none;
font-size: 1.2rem;
cursor: pointer;
margin-left: 1rem;
}
/* Responsive Design */
@media (max-width: 768px) {
.nav-links {
position: fixed;
top: 70px;
right: -100%;
background-color: var(--card-background);
flex-direction: column;
gap: 1rem;
padding: 2rem;
width: 200px;
height: calc(100% - 70px);
transition: var(--transition);
}
.nav-links.active {
right: 0;
}
.hamburger {
display: flex;
}
.produce-item {
flex-direction: column;
}
}